/* ==========================================================================
   Expert Q&A: hub, topic and article pages.
   Loaded only by pages under /expert-qa/ (and the homepage strip), on top of
   style.css. Uses the site's tokens: --color-red, --color-black, fonts.
   ========================================================================== */

.eqa-narrow {
  max-width: 760px;
}

/* ---------- Breadcrumb ---------- */
.eqa-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
}

.eqa-breadcrumb li + li::before {
  content: '>';
  margin: 0 10px;
  opacity: 0.6;
}

.eqa-breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.eqa-breadcrumb a:hover {
  color: var(--color-white);
}

.eqa-page-header .eqa-breadcrumb ol {
  justify-content: center;
}

/* ---------- Topic chips and search ---------- */
.eqa-list {
  padding: 56px 0 80px;
}

.eqa-chips ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}

.eqa-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 18px;
  border: 1.5px solid #d6d6d6;
  border-radius: var(--radius-pill, 999px);
  background: var(--color-white);
  color: var(--color-black);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.3;
}

.eqa-chip:hover {
  border-color: var(--color-red);
  color: var(--color-black);
}

.eqa-chip--active {
  background: var(--color-black);
  border-color: var(--color-black);
  color: var(--color-white);
}

.eqa-chip--active:hover {
  color: var(--color-white);
}

.eqa-chip__count {
  font-weight: 600;
  opacity: 0.6;
}

.eqa-search {
  margin: 0 0 32px;
  max-width: 480px;
}

.eqa-search label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.eqa-search input {
  width: 100%;
  min-height: 48px;
  padding: 10px 16px;
  border: 1.5px solid #cfcfcf;
  border-radius: 8px;
  font: inherit;
  background: var(--color-white);
}

.eqa-search input:focus {
  outline: 3px solid var(--color-red);
  outline-offset: 1px;
  border-color: var(--color-red);
}

.eqa-search__status {
  margin: 8px 0 0;
  font-size: 0.9375rem;
  min-height: 1.5em;
}

.eqa-empty {
  font-size: 1.125rem;
}

/* ---------- Cards ---------- */
.eqa-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.eqa-grid--three {
  grid-template-columns: repeat(auto-fit, minmax(300px, 380px));
  justify-content: center;
}

.eqa-card {
  position: relative;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 28px;
  background: var(--color-white);
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.eqa-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.eqa-card[hidden] {
  display: none;
}

.eqa-card__body {
  min-width: 0;
}

.eqa-card__topic {
  margin: 0 0 6px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-red-dark);
}

.eqa-card__topic a {
  position: relative;
  z-index: 2;
  color: inherit;
}

.eqa-card__title {
  font-size: 1.3125rem;
  line-height: 1.3;
  margin: 0 0 10px;
}

.eqa-card__title a {
  color: var(--color-black);
}

/* The whole card is clickable, through the title link. */
.eqa-card__title a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

.eqa-card__title a:hover {
  color: var(--color-red-dark);
}

.eqa-card__expert {
  margin: 0 0 8px;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.eqa-card__text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: #444;
}

/* ---------- Headshots: circular with a red ring ---------- */
.eqa-headshot {
  flex: none;
  display: block;
  border-radius: 50%;
  padding: 3px;
  background: var(--color-red);
}

.eqa-headshot img {
  border-radius: 50%;
  background: #ddd;
}

/* ---------- Article header ---------- */
.eqa-draft {
  position: relative;
  z-index: 5;
  margin-top: var(--nav-height);
  padding: 10px 24px;
  background: #fff4c2;
  color: #4a3b00;
  text-align: center;
  font-weight: 600;
}

.eqa-hero {
  background: var(--gradient-dark, var(--color-black));
  color: var(--color-white);
  padding: 140px 0 56px;
}

.eqa-draft + .eqa-hero {
  padding-top: 72px;
}

.eqa-label {
  margin: 0 0 12px;
  color: var(--color-red-light);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eqa-hero h1 {
  color: var(--color-white);
  font-size: clamp(2rem, 4.6vw, 3.25rem);
  line-height: 1.12;
  margin-bottom: 32px;
}

.eqa-expert {
  display: flex;
  align-items: center;
  gap: 18px;
}

.eqa-expert p {
  margin: 0;
}

.eqa-expert__name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.125rem;
}

.eqa-expert__role {
  opacity: 0.85;
  line-height: 1.45;
}

.eqa-expert__links {
  font-size: 0.9375rem;
}

.eqa-hero .eqa-expert__links a {
  color: var(--color-white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.eqa-hero .eqa-expert__links a:hover {
  color: var(--color-red-light);
}

.eqa-meta {
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.9375rem;
  opacity: 0.8;
}

/* ---------- Reading column ---------- */
.eqa-article {
  padding: 56px 0 72px;
  background: var(--color-white);
}

.eqa-prose {
  font-size: 1.1875rem;
  line-height: 1.7;
}

.eqa-prose h2 {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  line-height: 1.25;
  margin: 56px 0 18px;
}

.eqa-prose h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  margin-top: 14px;
  border-radius: var(--radius-pill, 999px);
  background: var(--gradient-red, var(--color-red));
}

.eqa-prose h3 {
  font-size: 1.25rem;
  margin: 32px 0 10px;
}

.eqa-prose p,
.eqa-prose ul,
.eqa-prose ol {
  margin: 0 0 1.25em;
}

.eqa-prose li {
  margin-bottom: 10px;
}

.eqa-prose a {
  color: var(--color-red-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.eqa-prose ol {
  padding-left: 1.6em;
}

.eqa-prose ol li::marker {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--color-red);
}

.eqa-prose ul li::marker {
  color: var(--color-red);
}

/* The short answer: the passage answer engines quote */
.eqa-answer {
  margin: 0 0 8px;
  padding: 28px 32px;
  background: #fdf1f1;
  border: 1px solid #f6cfd1;
  border-left: 6px solid var(--color-red);
  border-radius: 12px;
}

.eqa-answer h2 {
  margin: 0 0 10px;
  font-size: 0.9375rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-red-dark);
}

.eqa-answer h2::after {
  display: none;
}

.eqa-answer p {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.6;
}

/* Pull quotes in the expert's own words */
.eqa-quote {
  margin: 28px 0;
  padding: 4px 0 4px 24px;
  border-left: 4px solid var(--color-red);
  font-size: 1.25rem;
  line-height: 1.6;
  color: #222;
}

.eqa-quote p {
  margin: 0;
}

/* Tables keep their HTML; scroll sideways on narrow screens */
.eqa-table {
  margin: 28px 0;
  overflow-x: auto;
  border: 1px solid #e3e3e3;
  border-radius: 10px;
}

.eqa-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  line-height: 1.5;
}

.eqa-table th,
.eqa-table td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #e3e3e3;
}

.eqa-table th {
  background: var(--color-black);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
}

.eqa-table tbody tr:nth-child(even) td {
  background: var(--color-grey-light);
}

.eqa-table tbody tr:last-child td {
  border-bottom: 0;
}

.eqa-figure {
  margin: 32px 0;
}

.eqa-figure img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #e3e3e3;
}

.eqa-figure figcaption {
  margin-top: 10px;
  font-size: 0.9375rem;
  color: #555;
}

.eqa-takeaways {
  margin-top: 56px;
  padding: 8px 32px 20px;
  background: var(--color-grey-light);
  border-radius: 12px;
}

.eqa-takeaways h2 {
  margin-top: 28px;
}

/* FAQ accordion: answers stay in the HTML */
.eqa-faq details {
  border-bottom: 1px solid #e3e3e3;
}

.eqa-faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
}

.eqa-faq summary::-webkit-details-marker {
  display: none;
}

.eqa-faq summary::after {
  content: '+';
  flex: none;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--color-red);
}

.eqa-faq details[open] summary::after {
  content: '\2212';
}

.eqa-faq summary h3 {
  margin: 0;
  font-size: 1.125rem;
}

.eqa-faq summary:focus-visible {
  outline: 3px solid var(--color-red);
  outline-offset: 2px;
}

.eqa-faq details p {
  margin: 0 0 20px;
}

/* About the expert card */
.eqa-about-expert__card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 28px;
  border: 1px solid #e3e3e3;
  border-radius: 14px;
}

.eqa-about-expert__card p {
  margin: 0 0 8px;
}

.eqa-about-expert__card .eqa-expert__role {
  opacity: 1;
  color: #555;
}

/* About Marketing Technology Live: shared block */
.eqa-about-mtl {
  padding: 64px 0;
  background: var(--gradient-dark, var(--color-black));
  color: var(--color-white);
}

.eqa-about-mtl h2 {
  color: var(--color-white);
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.eqa-about-mtl p {
  font-size: 1.1875rem;
  opacity: 0.9;
  margin-bottom: 28px;
}

/* Related */
.eqa-related {
  padding: 64px 0;
}

.eqa-related h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 28px;
}

.eqa-related__more {
  margin: 24px 0 0;
}

.eqa-related__more a {
  font-weight: 700;
  color: var(--color-red-dark);
}

/* Share */
.eqa-share {
  padding: 40px 0 56px;
}

.eqa-share h2 {
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eqa-share ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.eqa-share a,
.eqa-share button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 20px;
  border: 1.5px solid var(--color-black);
  border-radius: var(--radius-pill, 999px);
  background: transparent;
  color: var(--color-black);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
}

.eqa-share a:hover,
.eqa-share button:hover {
  background: var(--color-black);
  color: var(--color-white);
}

/* CTA band */
.eqa-cta .btn {
  margin-top: 4px;
}

/* Homepage strip */
.eqa-home__more {
  margin: 40px 0 0;
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .eqa-grid--three {
    grid-template-columns: minmax(0, 640px);
  }
}

@media (max-width: 768px) {
  .eqa-grid {
    grid-template-columns: 1fr;
  }

  /* One row of chips that scrolls sideways, so the articles stay near the top */
  .eqa-chips {
    margin: 0 -24px;
  }

  .eqa-chips ul {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0 24px 6px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .eqa-chips ul::-webkit-scrollbar {
    display: none;
  }

  .eqa-chip {
    white-space: nowrap;
  }

  .eqa-list {
    padding-top: 36px;
  }

  .eqa-card {
    padding: 22px;
    gap: 14px;
  }

  .eqa-card .eqa-headshot img {
    width: 56px;
    height: 56px;
  }

  .eqa-hero {
    padding: 112px 0 40px;
  }

  .eqa-prose {
    font-size: 1.125rem;
  }

  .eqa-answer {
    padding: 22px 20px;
  }

  .eqa-answer p,
  .eqa-quote {
    font-size: 1.125rem;
  }

  .eqa-takeaways {
    padding: 4px 20px 12px;
  }

  .eqa-about-expert__card {
    flex-direction: column;
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .eqa-card,
  .eqa-card:hover {
    transition: none;
    transform: none;
  }
}

/* The footer logo has width/height attributes from the shared footer; keep
   its proportions on these pages. (The same fix is needed site-wide.) */
.eqa .footer__brand img {
  width: auto;
}
