/* Full-page background for the Cards subpage */
body.bg-cards {
  background: #114267;      /* fills the entire viewport/gutters */
}

/* Default text colors on this page */
body.bg-cards .cards-page,
body.bg-cards .cards-page p,
body.bg-cards .cards-page li,
body.bg-cards .cards-page h1,
body.bg-cards .cards-page h2,
body.bg-cards .cards-page h3 {
  color: #fff;
}

body.bg-cards .text-muted { color: rgba(255,255,255,.72) !important; }
body.bg-cards .text-highlighted {
    color: #00dec9;
    font-family: Farro, serif;
    font-weight: 300;
}


.cards-page h1 {
    text-align: center;
    margin-bottom: 30px !important;
    font-weight: 400;
    font-family: Farro, serif;
}

/* Instruction block: stacked layout (image then text) */
.card-instruction {
  max-width: 980px;
  margin: 0 auto;
}
/* Card image sizing on the Cards page */
.instruction-image {
  display: block;
  margin: 0 auto 50px;            /* center horizontally */
  max-height: 500px;         /* cap height */
  width: auto !important;    /* override .img-fluid width:100% */
  height: auto;              /* keep aspect ratio */
  max-width: 100%;           /* don’t overflow its column */
  object-fit: contain;       /* just in case */
}

/* On small screens, let it be fluid again */
@media (max-width: 991.98px) {
  .instruction-image {
    width: 100% !important;
    max-height: none;
  }
}

/* Legend */
.legend { display: flex; flex-direction: column; gap: 18px; }
.legend-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px;
  align-items: start;
}

.label-dot {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgb(0, 208, 16);
    color: #fff;
    font-weight: 400;
    font-family: Farro, serif;
    letter-spacing: .04em;
    user-select: none;
        position: relative;
    top: -5px;
}

.legend-text { line-height: 1.5; }

.legend-text li.categ {
        margin: 10px 0;
}

/* Table-like aligned lists for C & D */
.legend-ul { list-style: none; padding-left: 0; margin: 20px 0 0 0; }
.legend-ul li {
  display: flex; align-items: flex-start; gap: 10px;
  line-height: 1.5;
}
.legend-ul li.categ img,
.legend-ul li.rar img {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  object-fit: contain;
  margin-top: 2px;
  position: relative;
  top: -10px;
}

.legend-ul li.desc {
    margin: 15px 0;
}

.legend-ul li.attr img {
  flex: 0 0 20px;
  width: 24px;
  height: 24px;
  object-fit: contain;
  margin-top: 2px;
  position: relative;
  top: -5px;
  min-width: 24px;
}
/* fixed label column to align descriptions */
.legend-ul li .label-col {
  display: inline-block;
  min-width: 230px;           /* tweak this value to change alignment width */
  margin-right: 8px;
  color: #00dec9; font-weight: 300; font-size: 14px;
}

/* Highlight helper (also used in headings) */
.text-highlighted { color: #00dec9; font-weight: 400; }

/* Context paragraph card */
.cards-note {
  background: #0f344f;
  border: 1px solid rgba(255,255,255,0.12);
  padding: 14px 18px;
  border-radius: 12px;
}

/* Spot thumbnails */
.spot-thumb {
  max-height: 220px; width: auto;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(0,0,0,.25);
}
.thumb-fallback {
  height: 200px; display:flex; align-items:center; justify-content:center;
  border-radius: 10px; background: #0f344f;
}

/* Cards on this page use darker tiles */
.feature-card,
.card {
  background: #0f344f;
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
}

/* Responsive tweaks */
@media (max-width: 575.98px) {
  .legend { gap: 14px; }
  .cards-note { font-size: .95rem; }
  .legend-ul li .label-col { min-width: 180px; }
}

/* --- Mobile stacking for legend lists (C & D) --- */
@media (max-width: 575.98px) {
  /* Let items wrap to multiple rows */
  .legend-ul li {
    flex-wrap: wrap;
    gap: 8px;                 /* slightly tighter on mobile */
    align-items: flex-start;
  }

  /* Label column: no fixed width on mobile */
  .legend-ul li .label-col {
    min-width: 0;             /* <-- remove 230px constraint */
    flex: 1 1 auto;           /* occupy the remaining row width */
    display: block;
    margin-right: 0;
  }

  /* Description spans: force to next line (under the label) */
  .legend-ul li > span:not(.label-col) {
    flex: 1 1 100%;
    display: block;
    margin-left: 0;
  }

  /* Icon sizing/alignment on mobile */
  .legend-ul li.categ img,
  .legend-ul li.rar img {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    top: 0;
    margin-top: 2px;
  }
  .legend-ul li.attr {
      padding-top: 20px !important;
  }
  .legend-ul li.attr img {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    top: 0;
    margin-top: 2px;
  }

  /* Slightly reduce the grid gap for A–E rows */
  .legend-item {
    gap: 16px;
    grid-template-columns: 34px 1fr; /* dot + content */
  }
}

/* Two-up images on wide screens, stacked on mobile */
.instruction-visuals {
  display: grid;
  gap: 24px;
  max-width: 980px;
  margin: 0 auto 70px;
}

/* ≥992px: two columns side by side */
@media (min-width: 992px) {
  .instruction-visuals {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

/* Ensure images fill their grid cell and remove the old bottom margin */
.instruction-visuals .instruction-image {
  margin: 0;
  width: 100% !important;
  height: auto;
  max-height: 500px;
  object-fit: contain;
}

/* Titles above instruction images */
.instruction-title {
  font-family: Farro, serif;
  font-weight: 400;
  font-size: 21px;
  line-height: 1.2;
  margin: 50px 0 30px;
  text-align: center;
  color: inherit; /* stays white on this page */
}

/* Layout for each visual item */
.instruction-visuals .visual-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

ul.card-awarded li,
.card-awarded ul li {
  margin: 15px 0;
}

.invite-button {
    background: #04ac9c;
    color: #fff;
    border: 0;
    padding: 6px 12px;
    border-radius: 6px;
    margin: 10px 0;
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
}
.invite-button:hover {
    background: #07cdba;
    color: #fff;
    text-decoration: none;
}

.grp-item a {
    color: #000 !important;
}




