/* Biodata archive Sort By (v19). Scoped: no changes to filtering, card styling or other pages. */
body.bdh-theme .bdh-archive-sortbar{
  display:flex;justify-content:flex-end;align-items:center;
  margin:0 0 18px;min-width:0;
}
body.bdh-theme .bdh-archive-sortform{
  display:flex;align-items:center;gap:9px;max-width:100%;
  margin:0;padding:7px 9px;border:1px solid #eedbe4;
  border-radius:13px;background:#fff6fa;box-shadow:0 4px 15px rgba(100,24,55,.045);
}
body.bdh-theme .bdh-archive-sortform label{
  display:inline-flex;align-items:center;gap:7px;margin:0;padding:0 4px;
  color:#80224a;font-size:12px;line-height:1.4;font-weight:800;white-space:nowrap;
}
body.bdh-theme .bdh-archive-sortform label i{font-size:16px;line-height:1}
body.bdh-theme .bdh-archive-sortform select{
  appearance:auto;display:block;min-width:188px;max-width:100%;height:40px;
  margin:0;padding:7px 11px;border:1px solid #e5dae1;border-radius:9px;
  background:#fff;color:#30222d;font-size:13px;font-weight:650;line-height:1.4;
  cursor:pointer;box-shadow:none;
}
body.bdh-theme .bdh-archive-sortform select:focus-visible{
  outline:2px solid #aa3576;outline-offset:2px;
}
@media(max-width:767.98px){
  body.bdh-theme .bdh-archive-sortbar{justify-content:stretch;margin:0 0 14px}
  body.bdh-theme .bdh-archive-sortform{width:100%;min-width:0;padding:7px}
  body.bdh-theme .bdh-archive-sortform select{flex:1;min-width:0;width:100%}
}

/* v24: readable archive empty state, scoped to the biodata results grid. */
body.bdh-theme .bdh-archive-card-grid > .bdh-empty{
  grid-column:1/-1;
  display:flex!important;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-width:0;
  min-height:150px;
  padding:28px 22px;
  text-align:center;
  line-height:1.8!important;
}
body.bdh-theme .bdh-archive-card-grid > .bdh-empty > p{
  display:block!important;
  position:static!important;
  width:100%;
  max-width:540px;
  margin:0!important;
  padding:0!important;
  height:auto!important;
  min-height:0!important;
  font-size:15px!important;
  font-weight:600;
  letter-spacing:normal!important;
  line-height:1.9!important;
  white-space:normal!important;
  text-wrap:pretty;
  overflow-wrap:break-word;
}
