/* Hero */
.csb-hero {
  /* min-height: 100vh; */
  padding: 80px 20px;
  /* background: linear-gradient(135deg, #c471f5, #fa71cd); */
  color: #000;
  box-sizing: border-box;
}
.csb-blurb {
  max-width: 52rem;
  margin: 0.5rem auto 1.5rem;
  text-align: center;
  color: #333;
  line-height: 1.5;
}
ul.ui-autocomplete {
    border-radius: 8px;
    overflow: scroll;
    height: 300px !important;
    max-width: 300px;
}

.csb-hero__inner { text-align: center; margin-bottom: 24px; }
.csb-title { font-size: 30px; font-weight: 800; margin: 0 0 18px; }
.csb-search { display: inline-flex; gap: 10px; align-items: center; }
#csb-q {
  width: min(720px, 80vw);
  border: 1px solid #d3d3d3;
    width: 100%;
    border-radius: 5px;
    padding: 10px 15px;
    background: #fff;
    margin-bottom: 15px;
}
#csb-go {
  padding: 14px 18px; border: 0; border-radius: 8px;
  background: #111; color: #fff; font-weight: 700; cursor: pointer;
}
.csb-hint { opacity: .9; margin-top: 10px; }

/* Results */
.csb-results { margin: 28px auto 0; max-width: 1200px; }
.csb-loading, .csb-empty, .csb-error {
  background: rgba(255,255,255,.15); padding: 14px 16px; border-radius: 8px; text-align: center;
}

/* Grid */
.csb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

/* Card */
.csb-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  text-decoration: none;
  color: #111;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  transition: transform .08s ease, box-shadow .12s ease;
}
.csb-card:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0,0,0,.12); }

/* Head (black strip with pips) */
.csb-card__head { background: #111; padding: 8px 10px; }
.csb-pips { display: flex; gap: 6px; }
.csb-pip { width: 16px; height: 16px; border-radius: 50%; display: inline-block; }
.csb-pip--white { background: #f3f1e8; border: 1px solid #d4d0c4; }
.csb-pip--blue  { background: #7fb6f7; }
.csb-pip--black { background: #333; }
.csb-pip--red   { background: #f58b7c; }
.csb-pip--green { background: #80c58c; }

/* Body lists */
.csb-card__body { padding: 10px 0 0; }
.csb-list { list-style: none; margin: 0; padding: 0; }
.csb-list--uses li, .csb-list--produces li {
  padding: 8px 12px; border-bottom: 1px solid #eee; font-size: 14px; color: #222;
}
.csb-list--uses li:last-child { border-bottom: 1px solid #ddd; }
.csb-list--produces { background: #fafafa; }
.csb-list--produces li { color: #444; }

/* Foot */
.csb-card__foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px; background: #111; color: #fff; font-size: 13px;
}
.csb-variants {
  background: #f498c2; color: #111; font-weight: 700;
  padding: 2px 8px; border-radius: 6px;
}

/* Small tweaks */
@media (max-width: 480px) {
  .csb-title { font-size: 30px; }
  #csb-q { width: 70vw; }
}


/* Bootstrap expects the modal to be visible when .show is present */
.modal.show { 
  visibility: visible !important; 
  opacity: 1 !important; 
      top: 1px !important;
    padding-left: 0px;
    background: none;
     max-height: calc(100dvh - 12rem) !important; /* header+footer allowance */
  overflow: auto  !important;
      box-shadow: none !important;
}

/* Keep hidden only when not shown */
.modal:not(.show) { 
  visibility: hidden; 
  opacity: 0; 
}

/* If your theme has a global .fade { visibility:hidden; } */
.fade.modal { 
  visibility: visible !important; 
}

/* Safety: ensure correct stacking */
.modal { z-index: 1060 !important; position: fixed !important; }
.modal-backdrop { z-index: 1050 !important; }


