/* CBC Era Picks Layout (homepage + car pages) */

/* Scope targets */
#cbcHomeEraPicks,
#cbcEraRelated{
  margin:0;
}

#cbcHomeEraPicks .cbc-era-block,
#cbcEraRelated .cbc-era-block{
  margin:26px 0;
}

/* Header row */
#cbcHomeEraPicks .cbc-era-head,
#cbcEraRelated .cbc-era-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:0 0 12px 0;
}

/* Era label (no pill bg) */
#cbcHomeEraPicks .cbc-era-head .pill,
#cbcEraRelated .cbc-era-head .pill{
  background:transparent;
  padding:0;
  border-radius:0;
  font-size:14px;
  color:#b7b6b2;
  user-select:none;
}

/* Shuffle pill */
#cbcHomeEraPicks .cbc-era-head .pill.cbc-shuffle,
#cbcEraRelated .cbc-era-head .pill.cbc-shuffle{
  background:rgba(255,255,255,.06);
  border-radius:999px;
  padding:6px 10px;
  font-size:12px;
  cursor:pointer;
}
#cbcHomeEraPicks .cbc-era-head .pill.cbc-shuffle:hover,
#cbcEraRelated .cbc-era-head .pill.cbc-shuffle:hover{
  background:rgba(255,255,255,.09);
}

/* Grid default */
#cbcHomeEraPicks .cbc-era-grid,
#cbcEraRelated .cbc-era-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:12px;
}

/* Breakpoints */
@media (max-width:980px){
  #cbcHomeEraPicks .cbc-era-grid,
  #cbcEraRelated .cbc-era-grid{
    grid-template-columns:repeat(3, minmax(0, 1fr));
  }
}

@media (max-width:720px){
  #cbcHomeEraPicks .cbc-era-grid,
  #cbcEraRelated .cbc-era-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width:480px){
  #cbcHomeEraPicks .cbc-era-grid,
  #cbcEraRelated .cbc-era-grid{
    grid-template-columns:1fr;
  }
}


/* =========================
   Home: Advanced Search pill
   ========================= */

.cbc-home-search-head{
  display:flex;
  justify-content:flex-end;
  margin:0 0 10px 0; /* space before the search bar */
}

/* Make it look like the Shuffle pill */
.cbc-home-search-head .pill.cbc-adv-search{
  background:rgba(255,255,255,.06);
  border-radius:999px;
  padding:6px 10px;
  font-size:12px;
  cursor:pointer;
  color:#b7b6b2;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
}

.cbc-home-search-head .pill.cbc-adv-search:hover{
  background:rgba(255,255,255,.09);
  color:#f2f2f0;
}