/* =========================================================
   SOFTKARD — core card
========================================================= */

.softkard {
  background: var(--soft-cream, #eae3d1);
  border-radius: 14px;
  border: 1px solid rgba(26,59,46,0.15);
  box-shadow:
    0 3px 10px rgba(0,0,0,0.12),
    0 6px 20px rgba(0,0,0,0.08);

  overflow: hidden;
  display: flex;
  flex-direction: column;

  color: var(--soft-green, #1a3b2e);
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease;
}


.softkard-lower {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;   /* REQUIRED for Chrome */
  min-height: 0;    /* REQUIRED for Chrome */
  background: var(--softkard-lower-bg, #000082);

}
.softkard--car_album {
  --softkard-lower-bg: linear-gradient(
  to bottom,
  #1a3b2e 0%,
  #3f5d2a 35%,
  #e8efe9 100%
);
}
.softkard--member_gallery {
  --softkard-lower-bg: #eae3d1; /* warm cream */
}

.softkard--event {
  --softkard-lower-bg: #ece6ef; /* subtle lavender-grey */
}
.softkard--member_leaflet {
  --softkard-lower-bg: linear-gradient(
    to bottom,
    #e6e3dc 0%,
    #e6e3dc 18%,
            #ebe7df 32%,
                #f2efe7 100%
  );
    border-left: 4px solid #1a3b2e;
}



.softkard:hover {
  transform: translateY(-2px);
  box-shadow:
    0 6px 16px rgba(0,0,0,0.18),
    0 10px 28px rgba(0,0,0,0.12);
}
/* =========================================================
   SOFTKARD — grid
========================================================= */

.softkard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
  align-items: stretch;
  max-width: 1400px;
  margin-inline: auto;
}
/* =========================================================
   SOFTKARD — image
========================================================= */

.softkard-img {
  display: block;
  aspect-ratio: 16 / 9;
  background: #d8d2bf;
  overflow: hidden;
}








.softkard--gallery .softkard-img {
  background: #f6f1e6;


}
/* =========================================================
   SOFTKARD — body
========================================================= */

.softkard-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 18px 18px;
}

.softkard-title {
  text-align: center;
  margin-top: 12px;      /* ceiling space from image */
  margin-bottom: 6px;  /* space before identity row */
  padding-inline: 6px;  /* avoids edge kiss on narrow cards */

  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.25;
}


.softkard-title a {
  color: inherit;
  text-decoration: none;
}
.softkard--car_album .softkard-title a {
  color: #f3eedf;;
  text-decoration: none;
}
/* =========================================================
   SOFTKARD — identity
========================================================= */

.softkard-identity {
  margin-top: auto;

  padding-left: 8px;     /* pulls away from left edge */
  padding-bottom: 4px;   /* a touch of lift from bottom */

  display: flex;
  align-items: center;
  gap: 10px;
}

.softkard-album-meta {
  margin-top: auto;

  padding-left: 18px;     /* pulls away from left edge */
  padding-bottom: 8px;   /* a touch of lift from bottom */

  display: flex;
  align-items: center;
  gap: 10px;
}

.softkard-identity img {
  width: 22px;
  height: auto;
  flex: 0 0 22px;
  opacity: .85;
}

.softkard-meta-text {
  font-size: .9rem;
  line-height: 1.3;
}


/* =========================================================
   Softkard – contextual messages (owner-only)
========================================================= */

.softkard-message {
  max-width: 1400px;
  margin: 18px auto 28px;
  padding: 0 4px;
}

/* Base message panel */
.softkard-message {
    background: #e3efe9;              /* soft Aston green tint */
    color: #1a3b2e;
    border-left: 5px solid #1a3b2e;   /* heritage accent */
    border-radius: 6px;
    padding: 10px 16px;
    margin: 14px auto 20px;
    max-width: 820px;
    text-align: center;
    font-size: 15px;
    line-height: 1.4;
}
.softkard-message-exists {
  background: #f6f1e6; /* lighter than card cream */
  border-left: 4px solid rgba(26, 59, 46, 0.35);
  border-radius: 6px;
  padding: 14px 18px 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  color: #1a3b2e;
}
/* Empty vs exists tone tweaks */
.softkard-message-empty {
  font-size: 0.95rem;
  line-height: 1.5;
}

.softkard-message-empty strong {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}

.softkard-message-exists {
  font-size: 0.95rem;
  font-weight: 500;
}

/* Spacing harmony with grids */
.softkard-message + .softcards-grid {
  margin-top: 10px;
}

/* Mobile breathing room */
@media (max-width: 640px) {
  .softkard-message {
    padding: 14px 14px 15px;
  }
}
/* ======================================================
   SoftKards – explicit column control (overrides auto-fill)
   ====================================================== */

.softkards .softkard-grid[data-columns="1"] {
  grid-template-columns: repeat(1, 1fr);
}

.softkards .softkard-grid[data-columns="2"] {
  grid-template-columns: repeat(2, 1fr);
}

.softkards .softkard-grid[data-columns="3"] {
  grid-template-columns: repeat(3, 1fr);
}

.softkards .softkard-grid[data-columns="4"] {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 640px) {
  .softkard-grid {
    grid-template-columns: 1fr !important;
  }
}
@media (min-width: 641px) and (max-width: 1024px) {
  .softkard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* ===============================
   Album icon + year overlay
================================ */

.softkard--car_album .softkard-album-icon {
  position: relative;
  display: flex;
  justify-content: center;
  margin: 12px 0 1px;
}

.softkard--car_album .softkard-album-icon img {
  width: 120px;              /* adjust once happy */
  height: auto;
  display: block;
  opacity: 0.92;
}

/* Year overlay */
.softkard--car_album .softkard-album-year {
  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  font-family: var(--soft-serif, Georgia, serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.09em;

  color: #f6f1e6;            /* soft cream */
  text-shadow:
    0 1px 1px rgba(0,0,0,0.4),
    0 0 6px rgba(0,0,0,0.25);

  pointer-events: none;      /* important */
}



/**/



.softkard--member_leaflet .softkard-identity,
.softkard-member_leaflet-snippet {
    margin-left: 30px;
    margin-right: 30px;
}

.softkard--member_leaflet .softkard-img {
  height: 180px;                 /* fixed editorial height */
  display: flex;
  align-items: center;
  justify-content: center;

  background:    #e6e3dc;
  overflow: hidden;

  padding-top: 16px;
/*  border-left: 4px solid #1a3b2e;*/
  border-radius: 12px 12px 0 0;
}

.softkard--member_leaflet .softkard-img img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  border: 2px !important;
  border-color:black !important;

  object-fit: contain;
}
.softkard--member_leaflet .softkard-title {
  font-weight: 600;
}


.softkard--member_leaflet  .softkard-identity img {
  width: 50px;
  margin-top:16px;
  height: auto;
  flex: 0 0 22px;
  opacity: .85;
}
/* ================================
   Member Leaflet — identity layout
   extract
   icon | date
================================ */
.softkard-identity-stacked {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
}

.softkard-meta-extract {
  max-width: 40ch;
  margin: 0 auto;
  line-height: 1.45;
}

.softkard-meta-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  opacity: 0.75;
}

.softkard-meta-row img {
  width: 20px;
  height: auto;
}

