/* WJW Homepage v0.3 - scoped to the shortcode only. */
.wjw-home {
  --wjw-border: #d8dee4;
  --wjw-text-soft: #5f6b73;
  --wjw-surface: #ffffff;
  --wjw-interest: #f4f7f5;
  display: grid;
  gap: 1.5rem;
  margin: 0;
}

.wjw-home * {
  box-sizing: border-box;
}

.wjw-home h2,
.wjw-home h3,
.wjw-home p {
  margin-top: 0;
}

.wjw-home h2 {
  margin-bottom: 0.35rem;
}

.wjw-home h3 {
  margin-bottom: 0.35rem;
}

.wjw-home p {
  line-height: 1.5;
}

.wjw-home-eyebrow {
  margin-bottom: 0.45rem !important;
  color: var(--wjw-text-soft);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.wjw-home-link,
.wjw-home-interest a {
  font-weight: 700;
  text-decoration: none;
}

.wjw-home-link:hover,
.wjw-home-link:focus,
.wjw-home-interest a:hover,
.wjw-home-interest a:focus {
  text-decoration: underline;
}

/* Compact prospective-family CTA. Different from the operational card. */
.wjw-home-interest {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.2rem 1.25rem;
  border: 1px solid var(--wjw-border);
  background: #fff;
}

.wjw-home-interest p {
  margin-bottom: 0;
}

.wjw-home-interest strong {
  margin-right: 0.4rem;
}

/* Manually managed temporary announcement. */
.wjw-home-announcement {
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--wjw-border);
  background: var(--wjw-surface);
}

.wjw-home-announcement > *:last-child {
  margin-bottom: 0;
}

/* Main operational card. */
.wjw-home-meet-card,
.wjw-home-results-card {
  padding: 1.25rem;
  border: 1px solid var(--wjw-border);
  background: var(--wjw-surface);
}

.wjw-home-meet-card h2 {
  margin-bottom: 0.3rem;
}

.wjw-home-date {
  margin-bottom: 0 !important;
  color: var(--wjw-text-soft);
  font-weight: 600;
}

.wjw-home-status {
  display: grid;
  gap: 0.25rem;
  margin: 0.85rem 0 1rem;
}

.wjw-home-status span {
  display: block;
}

.wjw-home-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  align-items: center;
}

.wjw-home-results-card p:last-of-type {
  margin-bottom: 0.8rem;
}


.wjw-home-interest h2 {
  margin-bottom: 0.35rem;
  font-size: 1.25em;
}

.wjw-home-interest p {
  margin-bottom: 0;
  color: var(--wjw-text-soft);
}

.wjw-home-interest .wjw-home-button {
  white-space: nowrap;
}

.wjw-home-volunteer-count {
  margin: 0.65rem 0 0 !important;
  color: var(--wjw-text-soft);
  font-size: 0.95rem;
}

@media (max-width: 720px) {
  .wjw-home-interest {
    grid-template-columns: 1fr;
    align-items: start;
  }
}


/* v0.5 action treatment: independent peer actions, not workflow links */
.wjw-home-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  margin-top: 1rem;
}

.wjw-home-action-button,
.wjw-home-interest .wjw-home-button {
  display: inline-block;
  padding: 0.65rem 0.95rem;
  border: 1px solid #3f3f3f;
  background: #3f3f3f;
  color: #fff !important;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
}

.wjw-home-action-button:hover,
.wjw-home-action-button:focus,
.wjw-home-interest .wjw-home-button:hover,
.wjw-home-interest .wjw-home-button:focus {
  background: #2f2f2f;
  border-color: #2f2f2f;
  color: #fff !important;
  text-decoration: none !important;
}

.wjw-home-volunteer-count {
  margin-top: 0.55rem !important;
  color: var(--wjw-text-soft);
  font-size: 0.9rem;
}


/* v0.6 shared WJW card language */
.wjw-home-meet-card,
.wjw-home-results-card,
.wjw-home-announcement,
.wjw-home-interest {
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.wjw-home-meet-card,
.wjw-home-results-card,
.wjw-home-announcement {
  position: relative;
}

/* Create the same light header-strip feel used by Lobby Monitor cards */
.wjw-home-meet-card > .wjw-home-eyebrow,
.wjw-home-results-card > .wjw-home-eyebrow,
.wjw-home-announcement > .wjw-home-eyebrow {
  display: block;
  margin: -1.25rem -1.25rem 1rem !important;
  padding: 0.7rem 1.25rem;
  background: #f3f3f3;
  border-bottom: 1px solid #e4e4e4;
}

/* Keep the prospective-family CTA quieter, but visually related */
.wjw-home-interest {
  padding: 1.2rem 1.25rem;
}

.wjw-home-interest h2 {
  margin-top: 0;
}

/* Match the current site buttons with orange as the primary action */
.wjw-home-action-button {
  border-color: #f36f12;
  background: #f36f12;
  color: #fff !important;
}

.wjw-home-action-button:hover,
.wjw-home-action-button:focus {
  border-color: #d95d00;
  background: #d95d00;
}

/* Volunteer is a peer action, but visually secondary */
.wjw-home-card-links .wjw-home-action-button + .wjw-home-action-button {
  border-color: #f36f12;
  background: #fff;
  color: #f36f12 !important;
}

.wjw-home-card-links .wjw-home-action-button + .wjw-home-action-button:hover,
.wjw-home-card-links .wjw-home-action-button + .wjw-home-action-button:focus {
  background: #fff7f1;
  color: #d95d00 !important;
}

/* Contact Jeanne stays secondary */
.wjw-home-interest .wjw-home-button {
  border-color: #f36f12;
  background: #fff;
  color: #f36f12 !important;
}

.wjw-home-interest .wjw-home-button:hover,
.wjw-home-interest .wjw-home-button:focus {
  background: #fff7f1;
  color: #d95d00 !important;
}


/* v0.7: one shared outline-button hover treatment */
.wjw-home-card-links .wjw-home-action-button + .wjw-home-action-button,
.wjw-home-interest .wjw-home-button {
  border-color: #f36f12 !important;
  background: #fff !important;
  color: #f36f12 !important;
}

.wjw-home-card-links .wjw-home-action-button + .wjw-home-action-button:hover,
.wjw-home-card-links .wjw-home-action-button + .wjw-home-action-button:focus,
.wjw-home-interest .wjw-home-button:hover,
.wjw-home-interest .wjw-home-button:focus {
  border-color: #d95d00 !important;
  background: #fff7f1 !important;
  color: #d95d00 !important;
}


/* v0.8 announcement accent */
.wjw-home-announcement > .wjw-home-eyebrow {
  background: #f36f12 !important;
  border-bottom-color: #f36f12 !important;
  color: #fff !important;
}


/* v0.10 readability: volunteer availability is secondary, not tiny */
.wjw-home .wjw-home-volunteer-count {
  margin: 0.75rem 0 0 !important;
  color: #555 !important;
  font-size: 1rem !important;
  font-weight: 500;
  line-height: 1.4;
}


/* v0.11: stack Interested in WJW CTA beneath the copy */
.wjw-home .wjw-home-interest {
  display: block !important;
}

.wjw-home .wjw-home-interest-action {
  margin-top: 0.9rem;
}

.wjw-home .wjw-home-interest .wjw-home-button {
  display: inline-block;
}

