/* Daily Updates floating CTA — only loaded on /blog + the 5 hub pages.
   Small dismissible pill bottom-right; click slides up an inline form.
   Sits well clear of the Raptive sticky footer ad zone (~80px). */

.hg-du-floater {
  position: fixed;
  right: 20px;
  bottom: 100px;
  z-index: 1040;
  display: none;
  font-family: inherit;
}
.hg-du-floater.is-visible { display: block; }

/* Collapsed pill */
.hg-du-floater-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 100%);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 11px 18px 11px 14px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(27, 67, 50, 0.32);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.hg-du-floater-pill:hover,
.hg-du-floater-pill:focus {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(27, 67, 50, 0.4);
  outline: none;
}
.hg-du-floater-pill i.fa {
  font-size: 16px;
}
.hg-du-floater-pill-close {
  background: rgba(255, 255, 255, 0.18);
  border: none;
  color: #fff;
  font-size: 16px;
  line-height: 1;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  margin-left: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.hg-du-floater-pill-close:hover { background: rgba(255, 255, 255, 0.32); }

/* Expanded card */
.hg-du-floater-card {
  display: none;
  width: 320px;
  max-width: calc(100vw - 32px);
  background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 100%);
  color: #fff;
  border-radius: 18px;
  padding: 18px 18px 16px;
  box-shadow: 0 8px 28px rgba(27, 67, 50, 0.42);
  position: relative;
}
.hg-du-floater.is-expanded .hg-du-floater-pill { display: none; }
.hg-du-floater.is-expanded .hg-du-floater-card { display: block; }

.hg-du-floater-card-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  border: none;
  color: #95d5b2;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.hg-du-floater-card-close:hover { color: #fff; }

.hg-du-floater-card h3 {
  color: #fff;
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 700;
}
.hg-du-floater-card p {
  color: #d8f3dc;
  font-size: 13px;
  line-height: 1.45;
  margin: 0 0 12px;
}
.hg-du-floater-card .hg-du-floater-form {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.hg-du-floater-card input[type="email"] {
  flex: 1 1 100%;
  padding: 10px 12px;
  border: 2px solid #52b788;
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  background: #fff;
  color: #333;
  box-sizing: border-box;
}
.hg-du-floater-card button.hg-du-floater-submit {
  width: 100%;
  padding: 10px 16px;
  background: #52b788;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.hg-du-floater-success {
  display: none;
  padding: 6px 0 0;
  color: #fff;
  font-size: 14px;
}
.hg-du-floater-success i.fa { color: #95d5b2; margin-right: 4px; }

@media (max-width: 480px) {
  .hg-du-floater { right: 12px; bottom: 90px; }
  .hg-du-floater-pill { padding: 10px 14px 10px 12px; font-size: 13px; }
}

@media print {
  .hg-du-floater { display: none !important; }
}
