/* ######################################################################################################################################################## #
# INDEXED SEARCH
# ######################################################################################################################################################## */

/* Search box on the result page */
.tx-indexedsearch-searchbox{}

.tx-indexedsearch-searchbox fieldset{
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tx-indexedsearch-searchbox fieldset + p{
  display: none;
}

.tx-indexedsearch-searchbox{
  background-color: #fafafa;
  padding: var(--padding);
}

.tx-indexedsearch-searchbox legend{
  display: none;
}

.tx-indexedsearch-form{
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 700px;
}

.tx-indexedsearch-form label{
  display: none;
}

.tx-indexedsearch-searchbox-sword{
  flex: 1;
  font-family: inherit;
  font-size: 1rem;
  padding: 14px 20px;
  border: 1.5px solid #cecece;
  border-radius: 320px;
  outline: none;
  transition: border-color .2s;
  width: 100%;
}

.tx-indexedsearch-searchbox-sword:focus{
  border-color: var(--rouge);
}

.tx-indexedsearch-search-submit input{
  height: 51px;
}

.tx-indexedsearch-searchbox-button{
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 12px 32px;
  background: var(--rouge);
  color: #FFFFFF;
  border: none;
  border-radius: 320px;
  cursor: pointer;
  transition: opacity .2s;
}

.tx-indexedsearch-searchbox-button:hover{
  opacity: .85;
}

/* Hidden fields */
.tx-indexedsearch-hidden-fields{
  display: none;
}

/* Info bar: "Rechercher: mot" */
.tx-indexedsearch-info-sword{
  font-size: 30px;
  color: #666;
  margin-bottom: var(--padding);
  text-align: center;
  margin: 50px 0;
}

.tx-indexedsearch-info-sword-word{
  font-weight: 700;
  color: var(--rouge);
}

/* Browse box: "Résultats 1 à 10 sur 42" */
.tx-indexedsearch-browsebox{
  font-size: 0.875rem;
  color: #666;
  margin: var(--padding) 0;
}

/* Section links */
.tx-indexedsearch-sectionlinks{
  margin: var(--padding) 0;
}

.tx-indexedsearch-sectionlinks table{
  border-collapse: collapse;
}

.tx-indexedsearch-sectionlinks td{
  padding: 4px 0;
  font-size: 0.875rem;
}

.tx-indexedsearch-sectionlinks a{
  color: var(--rouge);
  text-decoration: none;
}

.tx-indexedsearch-sectionlinks a:hover{
  text-decoration: underline;
}

/* Section header */
.tx-indexedsearch-sectionhead{
  margin: var(--margin) 0 var(--padding);
  padding-bottom: var(--padding);
  border-bottom: 1px solid #cecece;
}

.tx-indexedsearch-sectionhead h2{
  font-size: 1.25rem;
  font-weight: 700;
}

.tx-indexedsearch-result-count{
  font-size: 0.875rem;
  font-weight: 400;
  color: #666;
}

/* Result item */
.tx-indexedsearch-res{
  padding: var(--padding) 0;
  border-bottom: 1px solid #f0f0f0;
}

.tx-indexedsearch-res h3{
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 8px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.tx-indexedsearch-res h3 a{
  color: inherit;
  text-decoration: none;
}

.tx-indexedsearch-res h3 a:hover{
  color: var(--rouge);
}

.tx-indexedsearch-result-number{
  font-size: 0.75rem;
  font-weight: 400;
  color: #999;
}

.tx-indexedsearch-percent{
  font-size: 0.75rem;
  font-weight: 400;
  color: #999;
}

.tx-indexedsearch-description{
  font-size: 0.875rem;
  line-height: 1.6;
  color: #444;
  margin: 0 0 8px;
}

/* Metadata (size, date, path) */
.tx-indexedsearch-info{
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 0.75rem;
  color: #999;
  margin: 0;
}

.tx-indexedsearch-info dt{
  font-weight: 600;
}

.tx-indexedsearch-info dd{
  margin: 0;
}

.tx-indexedsearch-info dd a{
  color: var(--rouge);
  text-decoration: none;
}

.tx-indexedsearch-info dd a:hover{
  text-decoration: underline;
}

/* Pagination */
.tx-indexedsearch-browsebox ul{
  display: flex;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: var(--padding) 0;
}

.tx-indexedsearch-browsebox li a,
.tx-indexedsearch-browsebox li span{
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 320px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background .2s, color .2s;
}

.tx-indexedsearch-browsebox li a{
  color: #222;
  border: 1px solid #cecece;
}

.tx-indexedsearch-browsebox li a:hover{
  background: var(--rouge);
  border-color: var(--rouge);
  color: #FFFFFF;
}

.tx-indexedsearch-browsebox li.tx-indexedsearch-browselist-currentPage span,
.tx-indexedsearch-browsebox li span[aria-current]{
  background: var(--rouge);
  color: #FFFFFF;
  border: 1px solid var(--rouge);
}

/* No result */
.tx-indexedsearch-info-noresult{
  font-size: 1rem;
  color: #666;
  padding: var(--margin) 0;
  text-align: center;
}

/* Category title */
.tx-indexedsearch-category{
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: var(--padding);
}
