/* Offices A-Z — compiled from sass/pages/offices (Figma node 2276:9602) */

.offices-az {
  overflow-x: clip;
  background-color: #FBFAF7;
}

.offices-az__body {
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 60px;
  padding-bottom: 80px;
}

.offices-az__title-band {
  margin-left: auto;
  margin-right: auto;
  padding: 48px 0 40px;
}

.offices-az__page-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  text-align: center;
}

.offices-az__page-title {
  margin: 0;
  padding: 0;
  width: 100%;
  font-family: "Trajan Pro", serif;
  font-size: 62px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 0.62px;
  color: #313132;
  text-align: center;
  text-transform: uppercase;
  -webkit-font-smoothing: antialiased;
}

.offices-az__intro {
  margin-bottom: 48px;
  font-family: "museo-sans", sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: #313132;
}

.offices-az__intro p:last-child {
  margin-bottom: 0;
}

.offices-az__empty {
  margin-top: 48px;
  font-family: "museo-sans", sans-serif;
  font-size: 18px;
  color: #575758;
}

.offices-az__search-empty {
  margin: 32px 0 0;
  font-family: "museo-sans", sans-serif;
  font-size: 18px;
  line-height: 1.5;
  color: #575758;
  text-align: center;
}

.offices-az__toolbar {
  padding-top: 50px;
  background-color: #F7F4EC;
  width: 100% !important;
  max-width: 1800px;
  margin-left: auto;
  margin-right: auto;
  padding: 48px 10% 40px 10%;  
}

.offices-az__letter-nav {
  width: 100%;
}

.offices-az__letter-nav-list {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.offices-az__letter-nav-item {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.offices-az__letter-nav-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 18px;
  background-color: #BCBCBC;
}

.offices-az__letter-nav-item--disabled .offices-az__letter-nav-link {
  color: #9A9A9B;
  cursor: default;
  pointer-events: none;
}

.offices-az__letter-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 4px 2px;
  font-family: "museo-sans", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  color: #313132;
  text-decoration: none;
}

.offices-az__letter-nav-link:hover,
.offices-az__letter-nav-link:focus-visible {
  color: #ae122a;
}

.offices-az__search-area {
  width: 100%;
  margin-top: 28px;
}

.offices-az__search {
  width: 100%;
}

.offices-az__search-label {
  display: block;
  margin: 0 0 8px;
  font-family: "museo-sans", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: #313132;
}

.offices-az__search-field {
  position: relative;
  width: 100%;
}

.offices-az__search-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #BCBCBC;
  background-color: #FFFFFF;
  font-family: "museo-sans", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #313132;
  padding: 12px 48px 12px 16px;
}

.offices-az__search-input:focus {
  outline: 2px solid #ffd619;
  outline-offset: 0;
}

.offices-az__search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.offices-az__search-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #575758;
  pointer-events: none;
}

.offices-az__filter-status {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  margin-top: 12px;
  font-family: "museo-sans", sans-serif;
  font-size: 14px;
  line-height: 1.4;
  color: #313132;
}

.offices-az__filter-text {
  margin: 0;
}

.offices-az__filter-text strong {
  font-weight: 700;
}

.offices-az__filter-clear {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: inherit;
  font-weight: 400;
  line-height: inherit;
  color: inherit;
  text-decoration: underline;
  text-decoration-color: #ffd619;
  text-underline-offset: 3px;
  cursor: pointer;
}

.offices-az__filter-clear:hover,
.offices-az__filter-clear:focus-visible {
  color: #ae122a;
}

.offices-az__filter-clear-icon {
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
}

.offices-az__directory {
  margin-top: 64px;
}

.offices-az__letter-section {
  scroll-margin-top: 80px;
}

.offices-az__letter-section:not(:first-child) {
  margin-top: 80px;
}

.offices-az__letter-label {
  margin: 0 0 40px;
  color: var(--VMI-Red-100, #AE122A);
  font-family: "museo-sans", sans-serif;
  font-size: 32px;
  font-style: normal;
  font-weight: 600;
  line-height: 36px;
  text-transform: capitalize;
  letter-spacing: 0;
}

.offices-az__list {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.offices-az__item {
  width: 100%;
  padding: 32px 0;
  border-bottom: 1px solid #BCBCBC;
}

.offices-az__item:first-child {
  padding-top: 0;
}

.offices-az__item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.offices-az__item-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0;
  font-family: "museo-sans", sans-serif;
  font-size: 16px;
  line-height: 24px;
  color: #313132;
}

.offices-az__item-name {
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: 700;
  line-height: inherit;
  color: inherit;
}

.offices-az__item-name a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.offices-az__item-name a:hover,
.offices-az__item-name a:focus-visible {
  color: #ae122a;
  text-decoration: underline;
  text-decoration-color: #ffd619;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.offices-az__item-sep {
  display: inline-block;
  flex-shrink: 0;
  width: 1px;
  height: 16px;
  margin: 0 16px;
  background-color: #BCBCBC;
  vertical-align: baseline;
}

.offices-az__item-email {
  font-family: inherit;
  font-size: inherit;
  font-weight: 400;
  line-height: inherit;
  color: inherit;
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-underline-offset: 3px;
}

.offices-az__item-email:hover,
.offices-az__item-email:focus-visible {
  color: #ae122a;
  text-decoration-color: #ae122a;
}

.offices-az__item-description {
  margin-top: 12px;
  font-family: "museo-sans", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: #313132;
}

.offices-az__item-description p {
  margin: 0 0 0.75em;
}

.offices-az__item-description p:last-child {
  margin-bottom: 0;
}

.offices-az__sidebar {
  align-self: stretch;
}

.offices-az__sidebar-inner {
  display: flex;
  justify-content: center;
  height: fit-content;
}

.offices-az__back-to-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 89px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #313132;
  font-family: "museo-sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 40px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.offices-az__back-to-top:hover,
.offices-az__back-to-top:focus-visible {
  color: #ae122a;
}

.offices-az__back-to-top:hover .offices-az__back-to-top-text,
.offices-az__back-to-top:focus-visible .offices-az__back-to-top-text {
  text-decoration-color: #ffd619;
}

.offices-az__back-to-top-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 21px;
  margin-bottom: 4px;
}

.offices-az__back-to-top-icon img {
  display: block;
  width: 15px;
  height: 21px;
  transform: rotate(180deg);
}

.offices-az__back-to-top-text {
  text-decoration: underline;
  text-decoration-color: #ffd619;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
  white-space: nowrap;
}

@media (min-width: 1024px) {
  .offices-az__main {
    display: grid;
    grid-template-columns: minmax(0, 841px) 187px;
    gap: 33px;
    align-items: start;
  }

  .offices-az__sidebar-inner {
    position: sticky;
    top: 120px;
  }
}

@media (max-width: 1023px) {
  .offices-az__main {
    display: flex;
    flex-direction: column;
  }

  .offices-az__sidebar {
    margin-top: 48px;
  }
}

@media (max-width: 1399px) {
  .offices-az__body {
    width: 80%;
  }
}

@media (min-width: 1400px) {
  .offices-az__body {
    width: 100%;
    max-width: 1400px;
  }
}

@media (max-width: 767px) {
  .offices-az__letter-nav-list {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .offices-az__letter-nav-item {
    flex: 0 0 auto;
  }

  .offices-az__letter-nav-item:not(:last-child)::after {
    right: -1px;
  }

  .offices-az__letter-nav-link {
    padding: 4px 8px;
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .offices-az__body {
    padding-top: 40px;
    box-sizing: border-box;
  }

  .offices-az__title-band {
    padding: 32px 0 28px;
  }

  .offices-az__page-title {
    font-size: 44px;
  }

  .offices-az__letter-nav-list {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 6px !important
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }

  /* Stack the office name above the email */
  .offices-az__item-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
  }

  .offices-az__item-email {
    color: #ae122a !important;
    text-decoration-color: #ae122a !important;    
  }

  /* Remove the divider that sat between name and email */
  .offices-az__item-sep {
    display: none !important;
  }

  .offices-az__item-name {
    margin: 0;
  }

  .offices-az__letter-nav-item {
    flex: 0 0 auto;
  }

  .offices-az__search-area {
    margin-top: 20px;
  }

  .offices-az__search-input {
    font-size: 14px;
    padding: 10px 44px 10px 12px;
  }

  .offices-az__directory {
    margin-top: 48px;
  }

  .offices-az__letter-section:not(:first-child) {
    margin-top: 56px;
  }

  .offices-az__letter-label {
    margin-bottom: 24px;
  }

  .offices-az__item {
    padding: 24px 0;
  }

  .offices-az__letter-section {
    scroll-margin-top: 80px;
  }

}
