:root {
  /* Same palette as .rescue-widget below, exposed at :root too since a
     couple of widgets (user-nav.js, admin-badge.js) render their markup
     straight onto <body> rather than inside a .rescue-widget container,
     so they can't see variables scoped only to that class. */
  --rw-canopy: #4f7358;
  --rw-canopy-dark: #1f3a2c;
  --rw-coral: #d98872;
  --rw-danger: #c1554a;
  --rw-line: #dde3d6;
}

.rescue-widget {
  /* Matched to the live site: sage forest green + dusty coral + warm cream, pill buttons */
  --rw-canopy: #4f7358;
  --rw-canopy-dark: #1f3a2c;
  --rw-coral: #d98872;
  --rw-danger: #c1554a;
  --rw-line: #dde3d6;
  font-family: inherit;
  max-width: 560px;
  margin: 0 auto;
}

.rescue-widget * { box-sizing: border-box; }

.rescue-widget h3 {
  font-family: 'Fraunces', Georgia, serif;
  color: var(--rw-canopy-dark);
}

.rescue-widget label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin: 0.9rem 0 0.3rem;
}

.rescue-widget input,
.rescue-widget textarea,
.rescue-widget select {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--rw-line);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
}

.rescue-widget input:focus,
.rescue-widget textarea:focus,
.rescue-widget select:focus {
  outline: 2px solid var(--rw-canopy);
  outline-offset: 1px;
}

.rescue-widget button[type="submit"] {
  margin-top: 1.1rem;
  background: var(--rw-canopy);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
}

.rescue-widget button[type="submit"]:hover { background: var(--rw-canopy-dark); }
.rescue-widget button[disabled] { opacity: 0.6; cursor: not-allowed; }

.rescue-widget .rw-error { color: var(--rw-danger); font-size: 0.85rem; margin-top: 0.6rem; }
.rescue-widget .rw-success {
  background: rgba(31,58,44,0.06);
  border: 1px solid rgba(79,115,88,0.35);
  color: var(--rw-canopy-dark);
  padding: 0.9rem 1.1rem;
  border-radius: 18px;
  font-size: 0.95rem;
}

.rescue-widget .rw-event-card {
  border: 1px solid var(--rw-line);
  border-radius: 20px;
  padding: 1.1rem 1.3rem;
  margin-bottom: 0.9rem;
  overflow: hidden;
}
.rescue-widget .rw-event-image {
  display: block;
  width: calc(100% + 2.6rem);
  margin: -1.1rem -1.3rem 0.9rem;
  max-height: 220px;
  object-fit: cover;
}
.rescue-widget .rw-event-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--rw-canopy-dark);
  margin-bottom: 0.2rem;
}
.rescue-widget .rw-event-meta { color: #6b6b6b; font-size: 0.85rem; margin-bottom: 0.5rem; }
.rescue-widget .rw-event-desc { font-size: 0.92rem; margin-bottom: 0.7rem; }
.rescue-widget .rw-rsvp-btn {
  background: #fff;
  color: var(--rw-canopy);
  border: 1px solid var(--rw-canopy);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.88rem;
}
.rescue-widget .rw-rsvp-btn:hover { background: rgba(79,115,88,0.08); }

/* --- Announcement banner: bold and eye-catching, still a single slim line --- */
.rescue-widget.rw-announcement-wrap {
  max-width: none;
  width: 100%;
}
.rw-announcement {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  max-width: 760px;
  margin: 0 auto 1.75rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  background: var(--rw-coral, #d98872);
  box-shadow: 0 6px 18px rgba(217, 136, 114, 0.35);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
}
.rw-announcement .rw-a-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #fff;
  flex-shrink: 0;
  animation: rw-pulse 1.8s ease-in-out infinite;
}
@keyframes rw-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.rw-announcement .rw-a-thumb {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.6);
}
.rw-announcement .rw-a-title { font-weight: 800; font-size: 1.05rem; }
.rw-announcement .rw-a-message { color: inherit; opacity: 0.97; font-weight: 500; }
.rw-announcement .rw-a-link {
  font-weight: 700;
  color: #fff;
  text-decoration: underline;
  white-space: nowrap;
  margin-left: auto;
  padding-left: 0.75rem;
}
.rw-announcement .rw-a-link:hover { opacity: 0.85; }

@media (max-width: 560px) {
  .rw-announcement { flex-wrap: wrap; border-radius: 20px; text-align: left; }
  .rw-announcement .rw-a-link { margin-left: 0; }
}

/* --- Adoptable birds grid --- */
.rescue-widget.rw-birds-wrap { max-width: none; width: 100%; margin: 0; }

.rw-birds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.rw-bird-card {
  border: 1px solid var(--rw-line);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.rw-bird-photo {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.rw-bird-photo-placeholder {
  background: rgba(79,115,88,0.08);
}

.rw-bird-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; flex: 1; }

.rw-bird-name-row { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.15rem; }
.rw-bird-name {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--rw-canopy-dark);
}
.rw-bird-status {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}
.rw-bird-status-pending { background: rgba(217,136,114,0.18); color: #a15239; }
.rw-bird-status-adopted { background: rgba(124,143,134,0.18); color: #5c6b64; }

.rw-bird-meta { color: #6b6b6b; font-size: 0.85rem; margin-bottom: 0.5rem; }
.rw-bird-desc {
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rw-bird-apply-btn {
  display: inline-block;
  text-align: center;
  background: var(--rw-canopy);
  color: #fff;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  margin-top: auto;
}
.rw-bird-apply-btn:hover { background: var(--rw-canopy-dark); }

.rw-bird-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: auto; }
.rw-bird-waitlist-btn,
.rw-bird-sponsor-btn {
  display: inline-block;
  text-align: center;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--rw-canopy, #4f7358);
  background: #fff;
  color: var(--rw-canopy, #4f7358);
}
.rw-bird-waitlist-btn:hover,
.rw-bird-sponsor-btn:hover { background: rgba(79,115,88,0.08); }

/* --- Wishlist --- */
.rw-wishlist-list { list-style: none; padding: 0; margin: 0; }
.rw-wishlist-item {
  border: 1px solid var(--rw-line, #dde3d6);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.75rem;
}
.rw-wishlist-qty {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--rw-coral, #d98872);
  text-transform: uppercase;
}
.rw-wishlist-desc { font-size: 0.9rem; color: #6b6b6b; margin-top: 0.3rem; }

/* --- Testimonials --- */
.rescue-widget.rw-testimonial-wrap { max-width: none; width: 100%; margin: 0; }
.rw-testimonial-share-btn {
  background: #ffffff;
  color: var(--rw-canopy-dark, #1f3a2c);
  border: 1px solid var(--rw-line, #dde3d6);
  border-radius: 999px;
  padding: 0.65rem 1.4rem;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
  box-shadow: 0 0 10px rgba(255,255,255,0.9), 0 0 22px rgba(255,255,255,0.55);
  transition: box-shadow 0.25s ease, transform 0.2s ease;
}
.rw-testimonial-share-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 14px rgba(255,255,255,1), 0 0 32px rgba(255,255,255,0.75);
}
.rw-testimonial-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.25rem;
}
.rw-testimonial-header h3 {
  font-size: 1.9rem;
  margin: 0 0 0.5rem;
}
.rw-testimonial-subhead {
  color: #6b6b6b;
  font-size: 1rem;
  margin: 0 0 1.25rem;
}
.rw-testimonial-empty {
  text-align: center;
  color: #6b6b6b;
}
.rw-testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
  max-width: 1080px;
  margin: 0 auto;
}
.rw-testimonial-card {
  position: relative;
  text-align: center;
  background: #fff;
  border: 1px solid var(--rw-line, #dde3d6);
  border-radius: 18px;
  padding: 2rem 1.5rem 1.5rem;
  box-shadow: 0 4px 18px rgba(31, 58, 44, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.rw-testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(31, 58, 44, 0.12);
}
.rw-testimonial-quote-mark {
  position: absolute;
  top: -0.6rem;
  left: 50%;
  transform: translateX(-50%);
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--rw-canopy, #4f7358);
  color: #fff;
  font-family: Georgia, serif;
  font-size: 1.7rem;
  line-height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(31, 58, 44, 0.25);
}
.rw-testimonial-photo {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0.5rem auto 1rem;
  display: block;
  border: 3px solid var(--rw-line, #dde3d6);
}
.rw-testimonial-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--rw-canopy, #4f7358);
  color: #fff;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 600;
}
.rw-testimonial-story {
  font-style: italic;
  margin: 0 0 1rem;
  line-height: 1.6;
  color: #333;
}
.rw-testimonial-meta { font-size: 0.9rem; color: var(--rw-canopy-dark, #1f3a2c); font-weight: 600; }
.rw-testimonial-bird { color: #6b6b6b; font-weight: 500; }
.rw-testimonial-date { font-size: 0.78rem; color: #999; margin-top: 0.2rem; }
#rw-story-form-slot .rw-blog-inline-form { max-width: 480px; margin: 0 auto 2rem; text-align: left; }
.rw-testimonial-photo-status { font-size: 0.82rem; color: var(--rw-canopy, #4f7358); margin-top: 0.3rem; }

/* --- FAQ --- */
.rw-faq-item {
  border-bottom: 1px solid var(--rw-line, #dde3d6);
  padding: 1rem 0;
}
.rw-faq-question {
  font-weight: 700;
  cursor: pointer;
  font-family: 'Fraunces', Georgia, serif;
  color: var(--rw-canopy-dark, #1f3a2c);
  list-style: none;
}
.rw-faq-question::-webkit-details-marker { display: none; }
.rw-faq-question::before { content: '+ '; color: var(--rw-coral, #d98872); }
.rw-faq-item[open] .rw-faq-question::before { content: '– '; }
.rw-faq-answer { margin-top: 0.6rem; line-height: 1.6; color: #444; }

/* --- Store --- */
.rescue-widget.rw-store-wrap { max-width: none; width: 100%; margin: 0; }
.rw-store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}
.rw-store-card {
  border: 1px solid var(--rw-line, #dde3d6);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.rw-store-photo { width: 100%; height: 180px; object-fit: cover; display: block; }
.rw-store-photo-placeholder { background: rgba(79,115,88,0.08); }
.rw-store-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.rw-store-badges { display: flex; gap: 0.35rem; margin-bottom: 0.4rem; min-height: 1.4rem; }
.rw-store-badge {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}
.rw-store-badge-clearance { background: rgba(193,85,74,0.15); color: #a13f34; }
.rw-store-badge-sale { background: rgba(217,136,114,0.18); color: #a15239; }
.rw-store-badge-soldout { background: rgba(124,143,134,0.18); color: #5c6b64; }
.rw-store-name {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--rw-canopy-dark, #1f3a2c);
  margin-bottom: 0.25rem;
}
.rw-store-desc { font-size: 0.88rem; color: #6b6b6b; margin-bottom: 0.6rem; flex: 1; }
.rw-store-price { margin-bottom: 0.8rem; }
.rw-store-price-was { text-decoration: line-through; color: #999; font-size: 0.9rem; margin-right: 0.4rem; }
.rw-store-price-now { font-weight: 700; font-size: 1.1rem; color: var(--rw-canopy-dark, #1f3a2c); }
.rw-store-buy-btn {
  display: block;
  text-align: center;
  background: var(--rw-canopy, #4f7358);
  color: #fff;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  margin-top: auto;
}
.rw-store-buy-btn:hover { background: var(--rw-canopy-dark, #1f3a2c); }
.rw-store-buy-btn-disabled {
  background: #ccc;
  color: #666;
  cursor: not-allowed;
}

/* --- Impact --- */
.rescue-widget.rw-impact-wrap { max-width: none; width: 100%; margin: 0; }
.rw-impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1.5rem;
  text-align: center;
}
.rw-impact-number {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--rw-canopy, #4f7358);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.rw-impact-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #6b6b6b;
}

/* --- My Applications: status badges/blocks --- */
.rw-ma-status-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
}
.rw-ma-status-block {
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  margin: 0.75rem 0 1.5rem;
  font-size: 0.95rem;
}

.rw-ma-status-new,
.rw-ma-status-in_review { background: rgba(143,180,214,0.18); color: #4e7291; }
.rw-ma-status-needs_info { background: rgba(224,177,74,0.2); color: #8a6a1a; }
.rw-ma-status-approved { background: rgba(79,115,88,0.18); color: var(--rw-canopy-dark, #1f3a2c); }
.rw-ma-status-declined { background: rgba(193,85,74,0.15); color: #a13f34; }
.rw-ma-status-archived { background: rgba(124,143,134,0.18); color: #5c6b64; }

.rw-ma-status-block.rw-ma-status-new,
.rw-ma-status-block.rw-ma-status-in_review { background: rgba(143,180,214,0.1); }
.rw-ma-status-block.rw-ma-status-needs_info { background: rgba(224,177,74,0.12); }
.rw-ma-status-block.rw-ma-status-approved { background: rgba(79,115,88,0.1); }
.rw-ma-status-block.rw-ma-status-declined { background: rgba(193,85,74,0.08); }
.rw-ma-status-block.rw-ma-status-archived { background: rgba(124,143,134,0.1); }

/* --- In-page popup modal (used by the birds grid's Apply to Adopt button) --- */
.rw-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 20, 18, 0.55);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 5vh 1rem;
  overflow-y: auto;
  z-index: 9999;
}
.rw-modal {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 560px;
  padding: 1.75rem;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.rw-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0,0,0,0.06);
  border: none;
  border-radius: 999px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-size: 0.9rem;
  color: #444;
}
.rw-modal-close:hover { background: rgba(0,0,0,0.12); }

/* --- Floating "you're logged in as admin" badge --- */
.rw-admin-badge {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  background: #1f3a2c;
  color: #fff;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  z-index: 9998;
}
.rw-admin-badge:hover { background: #4f7358; }

@media (max-width: 560px) {
  .rw-admin-badge { bottom: 0.85rem; right: 0.85rem; font-size: 0.8rem; padding: 0.55rem 0.9rem; }
}

/* --- Top-right account nav: sign up/log in for guests, name + menu for signed-in users --- */
.rw-nav-badge {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9997;
  font-family: 'Inter', sans-serif;
}

.rw-nav-guest { display: flex; gap: 0.5rem; }

.rw-nav-link-btn,
.rw-nav-signup-btn {
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}
.rw-nav-link-btn {
  background: #fff;
  border: 1px solid var(--rw-line);
  color: var(--rw-canopy-dark);
}
.rw-nav-link-btn:hover { background: rgba(79,115,88,0.07); }
.rw-nav-signup-btn {
  background: var(--rw-canopy);
  border: 1px solid var(--rw-canopy);
  color: #fff;
}
.rw-nav-signup-btn:hover { background: var(--rw-canopy-dark); }

.rw-nav-account { position: relative; }
.rw-nav-account-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid var(--rw-line);
  border-radius: 999px;
  padding: 0.35rem 0.9rem 0.35rem 0.35rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  font-family: inherit;
}
.rw-nav-account-btn:hover { background: rgba(79,115,88,0.07); }

.rw-nav-avatar { border-radius: 50%; object-fit: cover; display: inline-block; }
.rw-nav-avatar-fallback {
  background: var(--rw-canopy);
  color: #fff;
  text-align: center;
  font-weight: 700;
}

.rw-nav-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--rw-canopy-dark);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rw-nav-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: #fff;
  border: 1px solid var(--rw-line);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
  min-width: 220px;
  padding: 0.4rem;
  z-index: 9998;
}

.rw-nav-dropdown-item {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-radius: 6px;
  padding: 0.55rem 0.7rem;
  font-size: 0.88rem;
  font-family: inherit;
  color: var(--rw-canopy-dark);
  text-decoration: none;
  cursor: pointer;
}
.rw-nav-dropdown-item:hover { background: rgba(79,115,88,0.08); text-decoration: none; }
.rw-nav-dropdown-item.rw-nav-logout { color: var(--rw-danger); }
.rw-nav-dropdown-item.rw-nav-logout:hover { background: rgba(193,85,74,0.08); }

.rw-nav-auth-dropdown { padding: 1rem 1.1rem; min-width: 260px; }
.rw-nav-inline-form { display: flex; flex-direction: column; gap: 0.35rem; }
.rw-nav-inline-form label { font-size: 0.78rem; font-weight: 600; color: #6b6b6b; margin-top: 0.35rem; }
.rw-nav-inline-form input {
  border: 1px solid var(--rw-line);
  border-radius: 6px;
  padding: 0.5rem 0.6rem;
  font-size: 0.9rem;
  font-family: inherit;
}
.rw-nav-inline-form button[type="submit"] {
  margin-top: 0.75rem;
  background: var(--rw-canopy);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-weight: 600;
  cursor: pointer;
}
.rw-nav-inline-form button[type="submit"]:hover { background: var(--rw-canopy-dark); }

@media (max-width: 560px) {
  .rw-nav-badge { top: 0.7rem; right: 0.7rem; }
  .rw-nav-name { max-width: 90px; }
  .rw-nav-link-btn, .rw-nav-signup-btn { padding: 0.45rem 0.8rem; font-size: 0.8rem; }
  .rw-nav-dropdown { min-width: 190px; }
  .rw-nav-auth-dropdown { min-width: 230px; }
}

/* --- Community blog: forum-style, boxed and centered --- */
.rescue-widget.rw-blog-wrap {
  max-width: 720px;
  border: 1px solid var(--rw-line);
  border-radius: 10px;
  background: #fff;
  padding: 1.5rem 1.75rem;
}

.rw-blog-authbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0 0 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 2px solid var(--rw-canopy);
  font-size: 0.9rem;
}

.rw-blog-link-btn {
  background: #fff;
  border: 1px solid var(--rw-line);
  border-radius: 6px;
  color: var(--rw-canopy);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.35rem 0.7rem;
}
.rw-blog-link-btn:hover { background: rgba(79,115,88,0.07); border-color: var(--rw-canopy); text-decoration: none; }
.rw-blog-danger { color: var(--rw-danger); }
.rw-blog-danger:hover { background: rgba(193,85,74,0.07); border-color: var(--rw-danger); }

.rw-blog-inline-form {
  background: #fbfaf7;
  border: 1px solid var(--rw-line);
  border-radius: 8px;
  padding: 1rem 1.1rem;
  margin-top: 0.75rem;
}

.rw-blog-post-card {
  border: 1px solid var(--rw-line);
  border-radius: 8px;
  background: #fbfaf7;
  padding: 1.1rem 1.25rem;
  margin-bottom: 1rem;
}
.rw-blog-post-card:last-child { margin-bottom: 0; }

.rw-blog-post-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--rw-canopy-dark);
  text-decoration: none;
  display: block;
  margin-bottom: 0.3rem;
}
.rw-blog-post-title:hover { text-decoration: underline; }

.rw-blog-post-meta { color: #6b6b6b; font-size: 0.85rem; margin-bottom: 0.6rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--rw-line); }
.rw-blog-post-excerpt { font-size: 0.94rem; margin-bottom: 0.5rem; }
.rw-blog-readmore {
  display: inline-block;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--rw-canopy);
  background: #fff;
  border: 1px solid var(--rw-line);
  border-radius: 6px;
  padding: 0.3rem 0.7rem;
  text-decoration: none;
}
.rw-blog-readmore:hover { border-color: var(--rw-canopy); text-decoration: none; }

.rw-blog-back {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--rw-canopy);
  background: #fff;
  border: 1px solid var(--rw-line);
  border-radius: 6px;
  padding: 0.35rem 0.7rem;
  text-decoration: none;
  margin-bottom: 1.25rem;
}
.rw-blog-back:hover { border-color: var(--rw-canopy); text-decoration: none; }

.rw-blog-post-title-full {
  font-family: 'Fraunces', Georgia, serif;
  color: var(--rw-canopy-dark);
  margin: 0 0 0.4rem;
}
.rw-blog-post-body {
  white-space: pre-wrap;
  font-size: 0.97rem;
  line-height: 1.6;
  margin: 0 0 1rem;
  border: 1px solid var(--rw-line);
  border-radius: 8px;
  background: #fbfaf7;
  padding: 1.1rem 1.25rem;
}

.rw-blog-comments { margin-top: 1.5rem; }
.rw-blog-comments h4 {
  font-family: 'Fraunces', Georgia, serif;
  color: var(--rw-canopy-dark);
  margin: 0 0 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--rw-canopy);
}
.rw-blog-comment {
  border: 1px solid var(--rw-line);
  border-radius: 8px;
  background: #fbfaf7;
  padding: 0.85rem 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.92rem;
}
.rw-blog-comment-meta { font-size: 0.82rem; color: #6b6b6b; margin-bottom: 0.35rem; }

.rw-blog-avatar {
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
  display: inline-block;
}
.rw-blog-avatar-fallback {
  background: var(--rw-canopy, #4f7358);
  color: #fff;
  text-align: center;
  font-weight: 700;
}
.rw-blog-role-badge {
  display: inline-block;
  background: rgba(217, 136, 114, 0.16);
  color: #a15239;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  margin-left: 0.4rem;
  vertical-align: middle;
}

/* --- Dark mode --- */
/* The colors above assume a light/cream background. On a dark background,
   the same values (dark green, dark gray) read as near-black and become
   hard to see, so this swaps them for neutral light tones instead. */
@media (prefers-color-scheme: dark) {
  .rescue-widget h3 { color: #f2efe6; }

  .rescue-widget input,
  .rescue-widget textarea,
  .rescue-widget select {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.2);
    color: #f2efe6;
  }

  .rescue-widget .rw-success {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.25);
    color: #f2efe6;
  }

  .rescue-widget .rw-event-card { border-color: rgba(255,255,255,0.18); }
  .rescue-widget .rw-event-title { color: #f2efe6; }
  .rescue-widget .rw-event-meta { color: #c9c9c9; }
  .rescue-widget .rw-event-desc { color: #ddd8ca; }

  .rescue-widget .rw-rsvp-btn {
    background: transparent;
    color: #f2efe6;
    border-color: rgba(255,255,255,0.4);
  }
  .rescue-widget .rw-rsvp-btn:hover { background: rgba(255,255,255,0.08); }

  .rescue-widget .rw-bird-card { border-color: rgba(255,255,255,0.18); }
  .rescue-widget .rw-bird-photo-placeholder { background: rgba(255,255,255,0.06); }
  .rescue-widget .rw-bird-name { color: #f2efe6; }
  .rescue-widget .rw-bird-meta { color: #c9c9c9; }
  .rescue-widget .rw-bird-desc { color: #ddd8ca; }

  .rescue-widget .rw-bird-waitlist-btn,
  .rescue-widget .rw-bird-sponsor-btn {
    background: transparent;
    color: #9fd1ac;
    border-color: rgba(255,255,255,0.25);
  }
  .rescue-widget .rw-bird-waitlist-btn:hover,
  .rescue-widget .rw-bird-sponsor-btn:hover { background: rgba(255,255,255,0.06); }

  .rescue-widget .rw-wishlist-item { border-color: rgba(255,255,255,0.15); }
  .rescue-widget .rw-wishlist-desc { color: #c9c9c9; }

  .rescue-widget .rw-testimonial-card { background: linear-gradient(160deg, rgba(255,255,255,0.14) 0%, rgba(0,0,0,0.55) 100%); border-color: rgba(255,255,255,0.15); box-shadow: 0 4px 18px rgba(0,0,0,0.25); }
  .rescue-widget .rw-testimonial-story { color: #ddd8ca; }
  .rescue-widget .rw-testimonial-meta { color: #9fd1ac; }
  .rescue-widget .rw-testimonial-subhead,
  .rescue-widget .rw-testimonial-empty,
  .rescue-widget .rw-testimonial-bird { color: #c9c9c9; }
  .rescue-widget .rw-testimonial-date { color: #8a8a8a; }
  .rescue-widget .rw-testimonial-photo { border-color: rgba(255,255,255,0.18); }
  .rescue-widget .rw-testimonial-share-btn { border-color: rgba(255,255,255,0.35); }

  .rescue-widget .rw-faq-item { border-color: rgba(255,255,255,0.15); }
  .rescue-widget .rw-faq-question { color: #f2efe6; }
  .rescue-widget .rw-faq-answer { color: #ddd8ca; }

  .rescue-widget .rw-store-card { border-color: rgba(255,255,255,0.15); }
  .rescue-widget .rw-store-photo-placeholder { background: rgba(255,255,255,0.06); }
  .rescue-widget .rw-store-name { color: #f2efe6; }
  .rescue-widget .rw-store-desc { color: #c9c9c9; }
  .rescue-widget .rw-store-price-now { color: #f2efe6; }
  .rescue-widget .rw-store-price-was { color: #999; }

  .rescue-widget .rw-impact-number { color: #9fd1ac; }
  .rescue-widget .rw-impact-label { color: #c9c9c9; }

  .rescue-widget .rw-ma-status-new,
  .rescue-widget .rw-ma-status-in_review { background: rgba(143,180,214,0.22); color: #aecfe8; }
  .rescue-widget .rw-ma-status-needs_info { background: rgba(224,177,74,0.22); color: #f0d19c; }
  .rescue-widget .rw-ma-status-approved { background: rgba(107,150,120,0.25); color: #a8dab6; }
  .rescue-widget .rw-ma-status-declined { background: rgba(224,114,104,0.2); color: #f0aca4; }
  .rescue-widget .rw-ma-status-archived { background: rgba(154,167,159,0.18); color: #c7d1cb; }
  .rescue-widget .rw-ma-status-block { color: #ece7da; }

  .rescue-widget.rw-blog-wrap { background: #1c2420; border-color: rgba(255,255,255,0.15); }
  .rescue-widget .rw-blog-authbar { border-color: var(--rw-canopy); }
  .rescue-widget .rw-blog-link-btn { background: transparent; color: #9fd1ac; border-color: rgba(255,255,255,0.18); }
  .rescue-widget .rw-blog-link-btn:hover { background: rgba(255,255,255,0.06); }
  .rescue-widget .rw-blog-inline-form { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.15); }
  .rescue-widget .rw-blog-post-card,
  .rescue-widget .rw-blog-post-body,
  .rescue-widget .rw-blog-comment { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.15); }
  .rescue-widget .rw-blog-post-title,
  .rescue-widget .rw-blog-post-title-full,
  .rescue-widget .rw-blog-comments h4 { color: #f2efe6; }
  .rescue-widget .rw-blog-post-meta,
  .rescue-widget .rw-blog-comment-meta { color: #c9c9c9; }
  .rescue-widget .rw-blog-post-meta { border-color: rgba(255,255,255,0.15); }
  .rescue-widget .rw-blog-comments h4 { border-color: var(--rw-canopy); }
  .rescue-widget .rw-blog-back,
  .rescue-widget .rw-blog-readmore { color: #9fd1ac; background: transparent; border-color: rgba(255,255,255,0.18); }
  .rescue-widget .rw-blog-back:hover,
  .rescue-widget .rw-blog-readmore:hover { background: rgba(255,255,255,0.06); }
  .rescue-widget .rw-blog-role-badge { background: rgba(217, 136, 114, 0.22); color: #f0b9a8; }

  .rw-modal { background: #1c2420; }
  .rw-modal-close { background: rgba(255,255,255,0.08); color: #ece7da; }
  .rw-modal-close:hover { background: rgba(255,255,255,0.16); }

  /* --- Site-wide account nav (login/signup badge) --- */
  .rw-nav-link-btn {
    background: #1c2420;
    border-color: rgba(255,255,255,0.2);
    color: #f2efe6;
  }
  .rw-nav-link-btn:hover { background: rgba(255,255,255,0.08); }
  .rw-nav-signup-btn:hover { background: #6d9679; }

  .rw-nav-account-btn {
    background: #1c2420;
    border-color: rgba(255,255,255,0.2);
  }
  .rw-nav-account-btn:hover { background: rgba(255,255,255,0.08); }
  .rw-nav-name { color: #f2efe6; }

  .rw-nav-dropdown {
    background: #1c2420;
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  }
  .rw-nav-dropdown-item { color: #f2efe6; }
  .rw-nav-dropdown-item:hover { background: rgba(255,255,255,0.08); }
  .rw-nav-dropdown-item.rw-nav-logout { color: #f0aca4; }
  .rw-nav-dropdown-item.rw-nav-logout:hover { background: rgba(224,114,104,0.15); }

  .rw-nav-inline-form label { color: #c9c9c9; }
  .rw-nav-inline-form input {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.2);
    color: #f2efe6;
  }
  .rw-nav-inline-form button[type="submit"]:hover { background: #6d9679; }
}
