
/* Coalition Advanced Search UI */
.search-page{
  padding:18px 18px 26px;
}
.search-breadcrumb{
  display:flex;
  align-items:center;
  gap:12px;
  color:#e5e5e5;
  margin:8px 0 14px;
  font-size:15px;
}
.search-breadcrumb a{
  color:#e5e5e5;
  text-decoration:none;
}
.search-breadcrumb b{
  color:#ffc21c;
}
.search-hero-title h1{
  margin:0 0 4px;
  color:#fff;
  font-size:34px;
  line-height:1;
}
.search-hero-title p{
  margin:0 0 20px;
  color:#c8c8c8;
  font-size:16px;
}
.search-grid{
  display:grid;
  grid-template-columns:minmax(0,1.72fr) minmax(360px,1fr);
  gap:22px;
}
.search-panel{
  border:1px solid rgba(255,255,255,.13);
  border-radius:6px;
  background:
    linear-gradient(180deg,rgba(19,23,26,.86),rgba(7,10,12,.94));
  box-shadow:inset 0 0 24px rgba(255,255,255,.018);
  overflow:hidden;
}
.search-panel-title{
  min-height:64px;
  padding:0 22px;
  border-bottom:1px solid rgba(255,255,255,.09);
  display:flex;
  align-items:center;
  gap:12px;
}
.search-panel-title span{
  color:#ffc21c;
  font-size:24px;
}
.search-panel-title h2{
  margin:0;
  color:#ffc21c;
  text-transform:uppercase;
  font-size:18px;
  letter-spacing:.02em;
}
.search-panel-title a{
  margin-left:auto;
  color:#ffc21c;
  font-size:13px;
}
.search-panel-title em{
  margin-left:auto;
  color:#c8c8c8;
  font-style:normal;
  font-size:13px;
}
.advanced-search-form{
  padding:22px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px 28px;
}
.field-group{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.field-group.full{
  grid-column:1/-1;
}
.field-group label{
  color:#fff;
  font-size:15px;
}
.help-dot{
  display:inline-grid;
  place-items:center;
  width:15px;
  height:15px;
  margin-left:5px;
  border:1px solid rgba(255,255,255,.35);
  border-radius:50%;
  color:#aeb3bb;
  font-size:10px;
}
.field-group input,
.field-group select{
  width:100%;
  min-height:46px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:4px;
  background:linear-gradient(180deg,rgba(26,29,32,.9),rgba(15,17,19,.96));
  color:#fff;
  padding:0 14px;
  font-size:15px;
}
.field-group input::placeholder{
  color:#9a9ea6;
}
.toggle-group{
  position:relative;
}
.toggle-group p{
  color:#a7abb2;
  margin:0;
  font-size:14px;
}
.switch{
  position:absolute;
  right:0;
  top:29px;
}
.switch input{
  display:none;
}
.switch span{
  display:block;
  width:56px;
  height:21px;
  border-radius:999px;
  background:#22272b;
  border:1px solid rgba(255,255,255,.09);
  position:relative;
}
.switch span:before{
  content:"";
  width:15px;
  height:15px;
  border-radius:50%;
  background:#f1f1f1;
  position:absolute;
  left:3px;
  top:2px;
  transition:.18s;
}
.switch input:checked + span{
  background:#9b710f;
}
.switch input:checked + span:before{
  transform:translateX(34px);
}
.tag-input-shell{
  min-height:48px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:4px;
  background:linear-gradient(180deg,rgba(26,29,32,.9),rgba(15,17,19,.96));
  display:flex;
  align-items:center;
  gap:8px;
  padding:7px 10px;
}
.tag-input-shell input{
  border:0;
  background:transparent;
  min-height:30px;
  flex:1;
  padding:0 4px;
}
.tag-chip{
  background:linear-gradient(180deg,#24364a,#182536);
  border:1px solid rgba(88,154,220,.22);
  color:#fff;
  border-radius:4px;
  padding:8px 12px;
  font-size:14px;
}
.scope-row{
  display:grid;
  grid-template-columns:repeat(4,max-content);
  gap:32px;
  align-items:center;
}
.check-pill{
  display:flex!important;
  align-items:center;
  gap:10px;
  color:#fff;
}
.check-pill input{
  display:none;
}
.check-pill span{
  width:20px;
  height:20px;
  border-radius:4px;
  border:1px solid rgba(255,255,255,.25);
  background:#111;
  display:inline-block;
  position:relative;
}
.check-pill input:checked + span{
  background:linear-gradient(#d2a63b,#9b710f);
  border-color:#d2a63b;
}
.check-pill input:checked + span:after{
  content:"✓";
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  color:#fff;
  font-size:12px;
}
.search-actions{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:4px;
}
.clear-btn,
.search-submit{
  min-width:144px;
  height:44px;
  border-radius:4px;
  border:1px solid rgba(255,255,255,.12);
  background:transparent;
  color:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  font-size:15px;
}
.search-submit{
  border:0;
  background:linear-gradient(#c89119,#987018);
  font-weight:800;
  cursor:pointer;
}
.popular-searches{
  margin-top:14px;
}
.popular-chip-row{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  padding:18px 22px;
}
.popular-chip{
  border:1px solid rgba(255,255,255,.10);
  border-radius:5px;
  padding:8px 13px;
  background:linear-gradient(180deg,#1f2328,#14171a);
  color:#fff;
  text-decoration:none;
  font-size:13px;
}
.popular-chip:hover{
  color:#ffc21c;
  border-color:rgba(255,194,28,.35);
}
.search-aside{
  display:flex;
  flex-direction:column;
  gap:14px;
}
.tip-row{
  display:grid;
  grid-template-columns:35px 1fr;
  gap:14px;
  padding:18px 22px 4px;
}
.tip-row:last-child{
  padding-bottom:22px;
}
.tip-icon{
  color:#fff!important;
  font-size:28px!important;
  margin-top:4px;
}
.tip-row b{
  color:#fff;
  font-size:16px;
}
.tip-row p{
  margin:7px 0 0;
  color:#c2c5ca;
  font-size:14px;
  line-height:1.45;
}
.recent-row{
  min-height:45px;
  margin:0 22px;
  border-bottom:1px solid rgba(255,255,255,.09);
  display:grid;
  grid-template-columns:28px 1fr 85px;
  align-items:center;
  gap:10px;
  color:#fff;
  text-decoration:none;
}
.recent-row:first-of-type{
  margin-top:10px;
}
.recent-row:last-child{
  margin-bottom:22px;
}
.recent-row span{
  color:#d6d6d6;
}
.recent-row b{
  font-weight:500;
}
.recent-row em{
  color:#b9bdc4;
  font-style:normal;
  text-align:right;
  font-size:13px;
}
.search-results{
  margin-top:14px;
}
.result-row{
  display:grid;
  grid-template-columns:44px 1fr;
  gap:15px;
  padding:18px 22px;
  border-bottom:1px solid rgba(255,255,255,.09);
}
.result-row:last-child{
  border-bottom:0;
}
.result-icon{
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,194,28,.35);
  border-radius:6px;
  color:#ffc21c;
}
.result-row h3{
  margin:0 0 7px;
}
.result-row h3 a{
  color:#fff;
  text-decoration:none;
}
.result-row h3 a:hover{
  color:#ffc21c;
}
.result-row p{
  margin:0 0 10px;
  color:#c2c5ca;
  line-height:1.5;
}
.result-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  color:#aeb3bb;
  font-size:12px;
}
.result-tags{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-top:10px;
}
.result-tags a{
  background:#1c3045;
  border:1px solid rgba(88,154,220,.20);
  color:#d8ecff;
  border-radius:4px;
  padding:4px 8px;
  text-decoration:none;
  font-size:12px;
}
.search-empty{
  padding:22px;
  color:#c2c5ca;
}
@media(max-width:1150px){
  .search-grid{
    grid-template-columns:1fr;
  }
}
@media(max-width:760px){
  .advanced-search-form{
    grid-template-columns:1fr;
  }
  .scope-row{
    grid-template-columns:1fr 1fr;
    gap:14px;
  }
  .search-actions{
    flex-direction:column;
    gap:12px;
    align-items:stretch;
  }
  .clear-btn,
  .search-submit{
    width:100%;
  }
}
