/* ============================================================
   E-E-A-T ADDITIONS — v3
   All values use existing CSS variables — no new design tokens
============================================================ */

/* ── Publish / Update date strip ── */
.vp-publish-date {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--muted);
  padding: 6px 0 2px;
  flex-wrap: wrap;
  font-family: var(--font-b);
  font-weight: 500;
}
.vp-publish-date span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.vp-publish-date svg { flex-shrink: 0; }

/* ── Last Tested badge ── */
.tested-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(22, 163, 74, 0.08);
  border: 1px solid rgba(22, 163, 74, 0.22);
  border-radius: 99px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #15803d;
  margin-bottom: 22px;
  font-family: var(--font-b);
}

/* FIX 1: pulse animation on tested-dot, matching .badge-dot in main CSS */
@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.2); }
  50%       { box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.08); }
}
.tested-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16a34a;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.2);
  animation: pulse-green 2s ease-in-out infinite;
}

/* ── Author Card ── */

/* FIX 2: margin-top reduced from 40px to 16px.
   .author-card always follows an .article-divider (margin: 36px 0).
   40px on top of 36px created ~76px gap. 16px gives a reasonable 52px total. */
.author-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin-top: 16px;
}
.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-b);
  border: 2px solid rgba(255, 0, 0, 0.2);
}
.author-info { flex: 1; min-width: 0; }
.author-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
  margin-bottom: 4px;
  font-family: var(--font-b);
}

/* FIX 3: author-name as a link — moves text-decoration and color
   out of inline style in HTML and into CSS where it belongs */
.author-name {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  margin-bottom: 2px;
  font-family: var(--font-b);
}
.author-name:hover { color: var(--red); }

.author-role {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
  font-weight: 500;
}
.author-bio {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.7;
  margin: 0;
}

/* ── FAQ Section ── */

/* FIX 4: margin-top reduced from 40px to 16px (same reason as author-card above) */
.faq-section { margin-top: 16px; }

.faq-section-title {
  font-family: var(--font-b);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  /* FIX 5: .vp-body h2 applies margin-top: 40px — override it here
     so .faq-section handles all spacing above the FAQ block */
  margin-top: 0;
  margin-bottom: 20px;
  padding-left: 16px;
  border-left: 4px solid var(--red);
  line-height: 1.3;
}

.faq-list { display: flex; flex-direction: column; gap: 10px; }

.faq-item {
  border: 1px solid var(--border2);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s;
}
.faq-item:hover  { box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08); }
.faq-item[open]  { border-color: rgba(255, 0, 0, 0.2); }

.faq-item summary {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transition: background 0.15s, color 0.15s;
  user-select: none;
  font-family: var(--font-b);
  line-height: 1.4;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--surface); }
.faq-item[open] summary {
  background: var(--surface);
  color: var(--red);
  border-bottom: 1px solid var(--border2);
}

/* FIX 6: keyboard focus style for FAQ accordion */
.faq-item summary:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: -2px;
}

.faq-chevron {
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 0.25s ease, color 0.15s;
}
.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--red);
}

.faq-answer {
  padding: 16px 20px 20px;
  font-size: 15px;
  color: var(--text2);
  line-height: 1.8;
  font-family: var(--font-b);
}
.faq-answer p { margin: 0; }

/* ── Video Transcript ── */
.vp-transcript {
  margin: 12px 0 20px;
  border: 1px solid var(--border2);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.vp-transcript-summary {
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-b);
  color: var(--text2);
  background: var(--bg2);
  transition: background 0.15s, color 0.15s;
  user-select: none;
}
.vp-transcript-summary::-webkit-details-marker { display: none; }
.vp-transcript-summary:hover { background: var(--surface); color: var(--text); }
.vp-transcript[open] .vp-transcript-summary { border-bottom: 1px solid var(--border2); }
.vp-transcript[open] .vp-transcript-summary svg { transform: rotate(180deg); }
.vp-transcript-summary svg { transition: transform 0.25s ease; flex-shrink: 0; }
.vp-transcript-body {
  padding: 18px 20px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--text2);
  font-family: var(--font-b);
}
.vp-transcript-body p { margin: 0 0 14px; }
.vp-transcript-body p:last-child { margin-bottom: 0; }

/* ── Responsive ── */
@media (max-width: 640px) {
  .author-card      { flex-direction: column; gap: 14px; padding: 18px; }
  .author-avatar    { width: 48px; height: 48px; font-size: 17px; }
  .author-name      { font-size: 14px; }
  /* FIX 7: author-role was missing from mobile responsive block */
  .author-role      { font-size: 11px; margin-bottom: 8px; }
  .author-bio       { font-size: 13px; }
  .faq-section-title  { font-size: 19px; }
  .faq-item summary   { font-size: 14px; padding: 14px 16px; }
  .faq-answer         { font-size: 14px; padding: 14px 16px 18px; }
  .tested-badge       { font-size: 11px; }
  .vp-publish-date    { font-size: 11px; gap: 12px; }
  .vp-transcript-summary { font-size: 13px; padding: 12px 16px; }
  .vp-transcript-body    { font-size: 13px; padding: 14px 16px; }
}
