/* ----------------------------
   Author Section
---------------------------- */
.review-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: #fff;
  position: relative;
}

.review-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.review-meta-divider {
  width: 1px;
  height: 18px;
  background: rgba(255,255,255,0.35);
}

.review-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.review-meta-updated {
  position: relative;
  top: -2px;
}

.review-meta-kicker {
  font-size: 12px;
  text-transform: uppercase;
  opacity: 0.85;
  line-height: 1.1;
}

.review-meta-value {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}

.review-meta-chevron {
  font-size: 12px;
  transform: translateY(1px);
}

/* Icons */
.review-meta-icon img,
.review-meta-icon svg {
  width: 18px;
  display: block;
}

.review-meta-icon-author img {
  border-radius: 50% !important;
  min-width: 50px !important;
}

/* =========================
   Popover Base
========================= */
.popover {
  position: relative;
}

.popover-target {
  appearance: none;
  background: transparent !important;
  height: unset !important;
  border: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.popover-content {
  position: absolute;
  top: calc(100% + 10px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  width: min(420px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  box-sizing: border-box;
  left: 0;
  right: auto;
}

.popover.popover-fact .popover-content {
  left: auto;
  right: 0;
}

.popover-card {
  position: relative;
  width: min(420px, calc(100vw - 24px));
  background: #fff;
  color: #111;
  border-radius: 12px;
  padding: 20px;
  box-shadow:
    0 4px 12px rgba(16,24,40,0.08),
    0 2px 4px rgba(16,24,40,0.06);
}

.how-we-review {
  margin-top: 10px;
}

.how-we-review a {
  color: #3086dd !important;
  font-weight: 800;
}

/* =========================
   Fact Check Card
========================= */
.fact-checked-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

img.fact-checked-badge {
  max-width: 30px !important;
}

.fact-checked-card-text {
  padding-top: 8px;
}

/* =========================
   Interactive Elements
========================= */
.popover-close {
  z-index: 1000;
  background-color: transparent !important;
  position: absolute;
  right: 10px;
  display: none;
  appearance: none;
  border: 0;
  padding: 6px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: #475569;
  border-radius: 6px;
}

.popover-close:hover,
.popover-close:focus-visible {
  background: #f1f5f9;
  color: #111;
}

.popover-close:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .popover:hover .popover-content,
  .popover:focus-within .popover-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .popover:hover .review-author-name,
  .popover:hover .fact-checked-label {
    text-decoration: underline;
  }
}

.popover.is-open .popover-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* =========================
   Mobile Adjustments
========================= */
@media (max-width: 618px) {
  .popover-close { display: block; }
  .review-meta-icon { display: none; }

  .popover-content {
    position: absolute;    
    top: calc(100% + 10px);
    left: 0;
    right: auto;
    width: min(420px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
  }

  .popover-card { width: 100%; }
}

@media (max-width: 595px) {
  .popover.popover-fact .popover-content {
    left: 0;
    right: auto;
  }
}

@media (max-width: 443px) {
  .popover.popover-fact .popover-content {
    right: 0;
    left: auto;
  }
  .popover-content {
    width: min(320px, calc(100vw - 24px));
  }
}



/* =========================
   Author Card Layout
========================= */

.ti-author-card {
  display: flex !important;
  gap: 16px; 
  align-items: flex-start;
  padding: 20px !important; /* Forces the better breathing room */
}

.ti-author-avatar img {
  width: 64px !important;
  height: 64px !important;
  border-radius: 50% !important;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid #f0f0f0;
}

.ti-author-info {
  flex: 1;
}

.ti-author-card-name {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 4px;
  line-height: 1.2;
}

.ti-author-card-name a {
  color: #111;
  text-decoration: none;
}

.ti-author-card-bio {
  font-size: 14px;
  line-height: 1.5;
  color: #475569;
}

.ti-author-social {
  margin-top: 10px;
  display: flex;
  align-items: center;
}

.ti-author-linkedin {
  color: #0077b5;
  transition: transform 0.2s ease, opacity 0.2s ease;
  display: inline-flex;
}

.ti-author-linkedin:hover {
  transform: scale(1.1);
  opacity: 0.8;
}


/* =========================
   Jump Tabs
========================= */
.jump-tabs {
  display: flex;
  gap: 7px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  width: 100%;
}

.jump-tab {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  margin-bottom: 4px;
  border-radius: 10px;
  border: 1px solid #eef1f4;
  background: #f2f7fb;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  color: #2f6fa3;
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.jump-tabs-wrapper {
  overflow-x: visible;
  padding-top: 10px;
}

.jump-tab:hover {
  text-decoration: none !important;
  background-color: #dfe2e4;
  color: #1e4a6d;
}

.jump-tab.is-active {
  background: #ff5d01;
  color: #ffffff;
  border-color: #ff5d01;
}

@media (max-width: 768px) {
  .jump-tabs {
    flex-wrap: nowrap;
    width: max-content;
    gap: 8px;
  }
  .jump-tabs-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}