/* L2q: Expertise archive "The Legal Index": finder (on the dark hero), results bar, empty state, heads of practice. */
.abd-xfinder { margin-top: 40px; }
.abd-xfinder__label { display: block; font-family: "Cormorant Garamond", serif; font-size: 26px; font-weight: 600; line-height: 1.25; color: #FFFFFF; }
.abd-xfinder__box { position: relative; margin-top: 14px; }
.abd-xfinder__box .abd-icon { position: absolute; top: 50%; inset-inline-start: 20px; transform: translateY(-50%); display: flex; color: #8A5E00; pointer-events: none; }
.abd-xfinder__box .abd-icon svg { width: 22px; height: 22px; }
.abd-xfinder input[type="search"] {
  display: block; box-sizing: border-box; width: 100%; height: 62px; margin: 0; padding: 0 22px; padding-inline-start: 58px;
  border: 1px solid #BB8100; border-radius: 0; background: #FFFFFF; color: #121110;
  font-family: "IBM Plex Sans", sans-serif; font-size: 17px; outline: none; box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .8);
}
.abd-xfinder input[type="search"]::placeholder { color: #6B665E; opacity: 1; }
.abd-xfinder input[type="search"]:focus { box-shadow: 0 0 0 3px rgba(187, 129, 0, .45); }
.abd-xfinder__chips-label { margin: 26px 0 12px; font-family: "IBM Plex Sans", sans-serif; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #BDB6A8; }
.abd-xfinder__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.abd-xfinder .abd-xfinder__chip {
  min-height: 40px; margin: 0; padding: 8px 16px; border: 1px solid rgba(255, 255, 255, .24); border-radius: 0;
  background: transparent; color: #EDE7DB; box-shadow: none; text-shadow: none; text-transform: none; letter-spacing: 0;
  font-family: "IBM Plex Sans", sans-serif; font-size: 14.5px; font-weight: 400; line-height: 1.3; cursor: pointer;
  transition: border-color .2s, background-color .2s, color .2s;
}
.abd-xfinder .abd-xfinder__chip:hover { border-color: #BB8100; background: transparent; color: #FFFFFF; }
.abd-xfinder .abd-xfinder__chip[aria-pressed="true"] { background: #BB8100; border-color: #BB8100; color: #FFFFFF; }
.abd-xfinder .abd-xfinder__chip:focus-visible { outline: 2px solid #BB8100; outline-offset: 3px; }

.abd-xfind-status {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; padding: 14px 20px;
  background: #FBF9F5; border: 1px solid #E6DED0; font-family: "IBM Plex Sans", sans-serif; font-size: 15px; color: #3A3733;
}
.abd-xfind-status[hidden], .abd-xfind-empty[hidden], .abd-xfind-none[hidden] { display: none; }
.abd-xfind-status b { color: #121110; }
.abd-xfind-status .abd-xfind-clear {
  min-height: 40px; margin: 0; padding: 6px 16px; border: 1px solid #BB8100; border-radius: 0; background: #FFFFFF; color: #8A5E00;
  box-shadow: none; text-transform: none; letter-spacing: 0; font-family: "IBM Plex Sans", sans-serif; font-size: 14px; font-weight: 600; cursor: pointer;
}
.abd-xfind-status .abd-xfind-clear:hover { background: #BB8100; color: #FFFFFF; }
.abd-xfind-empty { max-width: 760px; margin: 56px auto 0; padding: 56px 40px; text-align: center; background: #FBF9F5; border: 1px solid #E6DED0; }
.abd-xfind-empty h2 { margin: 0; font-family: "Cormorant Garamond", serif; font-size: 36px; font-weight: 600; line-height: 1.2; color: #121110; }
.abd-xfind-empty p { margin: 12px 0 26px; font-family: "IBM Plex Sans", sans-serif; font-size: 16px; line-height: 1.6; color: #5F5A52; }
.abd-xfind-none { margin: 0; padding: 28px 18px; border-bottom: 1px solid #E6DED0; font-family: "IBM Plex Sans", sans-serif; font-size: 15px; color: #5F5A52; }

/* heads of practice (left panel) */
.abd-heads { margin-top: 4px; padding-top: 24px; border-top: 1px solid #E2D9C9; }
.abd-heads__title { margin: 0 0 8px; font-family: "Cormorant Garamond", serif; font-size: 22px; font-weight: 600; color: #121110; }
.abd-heads__item { display: flex; align-items: center; gap: 14px; padding: 10px 0; color: #121110; text-decoration: none; }
.abd-heads__item img { flex: none; width: 56px; height: 70px; object-fit: cover; object-position: top; }
.abd-heads__item b { display: block; font-family: "Cormorant Garamond", serif; font-size: 20px; font-weight: 600; line-height: 1.2; color: #121110; }
.abd-heads__item small { display: block; margin-top: 2px; font-family: "IBM Plex Sans", sans-serif; font-size: 13px; line-height: 1.45; color: #5F5A52; }
.abd-heads__item:hover b, .abd-heads__item:focus-visible b { color: #8A5E00; }

/* head of practice inside a practice row */
.abd-xhead { display: flex; align-items: center; gap: 12px; }
.abd-xhead img { flex: none; width: 44px; height: 55px; object-fit: cover; object-position: top; }
.abd-xhead small { display: block; font-family: "IBM Plex Sans", sans-serif; font-size: 12px; line-height: 1.4; color: #6B665E; }
.abd-xhead b { display: block; font-family: "Cormorant Garamond", serif; font-size: 18px; font-weight: 600; line-height: 1.2; color: #121110; white-space: nowrap; }

/* Arabic: the Arabic cuts of the same families */
html[lang^="ar"] .abd-xfinder__label, html[lang^="ar"] .abd-xfind-empty h2, html[lang^="ar"] .abd-heads__title,
html[lang^="ar"] .abd-heads__item b, html[lang^="ar"] .abd-xhead b { font-family: "Amiri", serif; }
html[lang^="ar"] .abd-xfinder__label { font-size: 23px; }
html[lang^="ar"] .abd-xfinder input[type="search"], html[lang^="ar"] .abd-xfinder__chips-label, html[lang^="ar"] .abd-xfinder .abd-xfinder__chip,
html[lang^="ar"] .abd-xfind-status, html[lang^="ar"] .abd-xfind-status .abd-xfind-clear, html[lang^="ar"] .abd-xfind-empty p, html[lang^="ar"] .abd-xfind-none,
html[lang^="ar"] .abd-heads__item small, html[lang^="ar"] .abd-xhead small { font-family: "IBM Plex Sans Arabic", sans-serif; letter-spacing: 0; text-transform: none; }
html[lang^="ar"] .abd-xfinder__chips-label { font-size: 14px; }

@media (max-width: 767px) {
  .abd-xfinder { margin-top: 28px; }
  .abd-xfinder__label { font-size: 22px; }
  .abd-xfinder input[type="search"] { height: 56px; font-size: 15px; }
  .abd-xfinder__chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none; }
  .abd-xfinder .abd-xfinder__chip { flex: none; white-space: nowrap; }
  .abd-xfind-status { margin-top: 20px; }
  .abd-xfind-empty { padding: 40px 22px; }
  /* room for the fixed "Book a consultation" bar */
  body.post-type-archive-expertise { padding-bottom: 76px; }
}
@media (prefers-reduced-motion: reduce) { .abd-xfinder * { transition: none !important; } }

/* L2t: "Show all" under a folded list */
.abd-xfold { display: flex; justify-content: center; margin-top: 32px; }
.abd-xfold[hidden] { display: none; }
.abd-xfold .abd-xfold__btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; margin: 0; padding: 10px 26px;
  border: 1px solid #BB8100 !important; border-radius: 0 !important; background: #FFFFFF !important; color: #8A5E00 !important;
  box-shadow: none !important; text-shadow: none; text-transform: none; letter-spacing: 0;
  font-family: "IBM Plex Sans", sans-serif !important; font-size: 15px !important; font-weight: 600 !important; line-height: 1.3; cursor: pointer;
  transition: background-color .25s, color .25s;
}
.abd-xfold .abd-xfold__btn::after {
  content: ""; flex: none; width: 16px; height: 16px; background: currentColor; transition: transform .3s;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M6 13l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M6 13l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.abd-xfold .abd-xfold__btn[aria-expanded="true"]::after { transform: rotate(180deg); }
.abd-xfold .abd-xfold__btn:hover, .abd-xfold .abd-xfold__btn:focus { background: #BB8100 !important; color: #FFFFFF !important; }
.abd-xfold .abd-xfold__btn:focus:not(:focus-visible) { background: #FFFFFF !important; color: #8A5E00 !important; }
.abd-xfold .abd-xfold__btn:focus-visible { outline: 2px solid #BB8100; outline-offset: 3px; }
html[lang^="ar"] .abd-xfold .abd-xfold__btn { font-family: "IBM Plex Sans Arabic", sans-serif !important; }
@media (max-width: 767px) { .abd-xfold { margin-top: 22px; } .abd-xfold .abd-xfold__btn { width: 100%; justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .abd-xfold .abd-xfold__btn, .abd-xfold .abd-xfold__btn::after { transition: none; } }
