/* ==========================================================================
   GAV Infotabula - Modern Fact Bar
   Clean, full-text layout with toned-down secondary button
   Supports dynamic bottom docking when no announcements are present
   ========================================================================== */

.fact-widget-wrapper {
  margin: 16px auto 14px auto;
  max-width: 860px;
  width: calc(100% - 40px);
  position: static;
  box-sizing: border-box;
  -ms-user-select: none;
  user-select: none;
  z-index: 1;
  transition: bottom 0.3s ease, transform 0.3s ease;
}

/* Positioned at the bottom when no announcements are displayed */
.fact-widget-wrapper.docked-bottom {
  position: fixed;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  width: calc(100% - 40px);
  max-width: 860px;
  z-index: 1;
}


.fact-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 18px;
  padding: 14px 22px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.08),
              0 2px 6px -1px rgba(15, 23, 42, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.fact-card:hover {
  border-color: rgba(203, 213, 225, 0.9);
  box-shadow: 0 10px 28px -4px rgba(15, 23, 42, 0.11),
              0 3px 8px -1px rgba(15, 23, 42, 0.05);
}

.fact-content-area {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.fact-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #d1fae5;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 20px;
  margin-bottom: 5px;
}

.fact-pill i {
  color: #059669;
  font-size: 11px;
}

.fact-content-box {
  transition: opacity 0.18s ease;
  text-align: left;
}

.fact-content-box.fade-out {
  opacity: 0;
}

/* Full fact text without any clamp truncation or 3 dots */
.fact-text {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-size: 14.5px;
  font-weight: 500;
  color: #1e293b;
  line-height: 1.55;
  margin: 0;
  text-align: left;
}

/* Toned-down, understated button that does not fight for visual attention */
.fact-btn {
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 7px 14px;
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
  user-select: none;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.fact-btn:hover {
  background: #f1f5f9;
  color: #1e293b;
  border-color: #cbd5e1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.fact-btn:active {
  background: #e2e8f0;
  transform: scale(0.97);
}

.fact-btn i {
  color: #94a3b8;
  font-size: 11px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}

.fact-btn:hover i {
  color: #475569;
}

.fact-btn.spinning i {
  transform: rotate(360deg);
}

@media (max-width: 768px) {
  .fact-widget-wrapper {
    width: calc(100% - 24px);
    margin: 10px auto;
  }
  .fact-widget-wrapper.docked-bottom {
    bottom: 105px;
    width: calc(100% - 24px);
  }
  .fact-card {
    padding: 12px 14px;
    gap: 12px;
  }
  .fact-text {
    font-size: 13px;
    line-height: 1.45;
  }
  .fact-btn {
    padding: 6px 11px;
    font-size: 11.5px;
  }
}
