/* =========================================================
   BERGMANN – Glossary (A–Z + accordion)
   ========================================================= */

#berg-glossary.et_pb_section.et_pb_section_2.et_section_regular,
#berg-glossary .et_pb_row.et_pb_row_1{
  padding: 0px 0px !important;
}  
.berg-glossary{
  max-width: 980px;
  margin: 0 auto;
  padding: 0 18px 64px 18px;
}

/* Full-width A–Z bar */
.berg-glossary-az-wrap{
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: var(--berg-bg-sage);
  border-bottom: 1px solid rgba(0,0,0,.08);
}

/* Keep the letters aligned to your content width */
.berg-glossary-az{
  max-width: 980px;
  margin: 0 auto;
  padding: 18px 18px 26px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.berg-az-link{
  font-family: var(--berg-font-primary);
  font-size: var(--berg-text-xl);
  color: var(--berg-text-primary);
  text-decoration: none;
  padding: 2px 0px;
  position: relative;
}

.berg-az-link:hover{
  opacity: .75;
}

.berg-az-link.is-disabled{
  opacity: .25;
  pointer-events: none;
}

/* Letter header */
.berg-glossary-letter{
  margin: 42px 0 16px;
  font-size: 28px;
  font-weight: var(--berg-weight-normal);
  color: var(--berg-text-primary);
}

/* Accordion items */
.berg-acc-item{
  background: rgba(223, 228, 219, 0.3) !important;
  border: 0;
  margin: 0 0 16px 0;
}

.berg-acc-title{
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: var(--berg-weight-semibold);
}

.berg-acc-title::-webkit-details-marker{ display:none; }

/* Chevron icon */
.berg-acc-icon{
  width: 22px;
  height: 22px;
  display: inline-block;
  position: relative;
}
.berg-acc-icon::before{
  content:"";
  position:absolute;
  inset: 0;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center / 22px 22px no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center / 22px 22px no-repeat;
  opacity: .7;
}

.berg-acc-item[open] .berg-acc-icon{
  transform: rotate(180deg);
}

.berg-acc-body{
  width:95%;
  padding: 18px 24px;
  color: var(--berg-text-primary);
  font-size: var(--berg-text-base);
}

/* Mobile tuning */
@media (max-width: 1024px){
 .berg-glossary{
    max-width: 100%;
    margin: 0 auto;
    padding: 0 18px 64px 18px;
  }
  #berg-glossary .et_pb_row{
    width:95%;
  }
  
}