.office-list__intro {
  max-width: 72rem;
  margin-block-end: 1.5rem;
}

.office-list__intro p {
  margin-block: 0 1rem;
}

.office-highlighter {
  margin-block: 0 1.5rem;
  padding: 1rem;
  border: 1px solid var(--patriziat-line, #ddd5ca);
  border-inline-start: .3rem solid var(--patriziat-burgundy, #7b2927);
  border-radius: .25rem;
  background: #f7f3ee;
}

.office-highlighter__title {
  margin: 0 0 .7rem;
  color: var(--patriziat-burgundy-dark, #5e1c1a);
  font-size: 1.08rem;
}

.office-highlighter__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.office-highlighter__button {
  padding: .48rem .72rem;
  border: 1px solid var(--patriziat-burgundy, #7b2927);
  border-radius: .2rem;
  color: var(--patriziat-burgundy-dark, #5e1c1a);
  background: #fff;
  font: inherit;
  font-weight: 650;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
}

.office-highlighter__button:hover,
.office-highlighter__button:focus-visible,
.office-highlighter__button[aria-pressed="true"] {
  color: #fff;
  background: var(--patriziat-burgundy-dark, #5e1c1a);
}

.office-highlighter__button:focus-visible {
  outline: .2rem solid #1b6ac9;
  outline-offset: .15rem;
}

.office-highlighter__button--reset {
  border-color: #6e6963;
  color: #4d4944;
}

.office-highlighter__legend {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem 1rem;
  margin-block-start: .8rem;
  padding-block-start: .7rem;
  border-block-start: 1px solid var(--patriziat-line, #ddd5ca);
  font-size: .94rem;
}

.office-highlighter__legend[hidden] {
  display: none;
}

.office-highlighter__legend span {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.office-highlighter__swatch {
  width: 1rem;
  height: 1rem;
  border: 1px solid #706a63;
  border-radius: .12rem;
}

.office-highlighter__swatch--yellow,
.office-list__person-link--yellow {
  background-color: #ffff99;
}

.office-highlighter__swatch--cyan,
.office-list__person-link--cyan {
  background-color: #99ffff;
}

.office-highlighter__swatch--pink,
.office-list__person-link--pink {
  background-color: #ffccff;
}

.office-highlighter__swatch--green,
.office-list__person-link--green {
  background-color: #ccffcc;
}

.office-highlighter__swatch--lilac,
.office-list__person-link--lilac {
  background-color: #ccccff;
}

.office-highlighter__status {
  min-height: 1.35em;
  margin: .55rem 0 0;
  color: var(--patriziat-muted, #6e6963);
  font-size: .9rem;
}

.office-list__table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--patriziat-line, #ddd5ca);
  border-radius: .25rem;
  background: #fff;
}

.office-list__table {
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.office-list__table th,
.office-list__table td {
  padding: .65rem .8rem;
  border: 0;
  border-block-end: 1px solid var(--patriziat-line, #ddd5ca);
  text-align: left;
  vertical-align: top;
}

.office-list__table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #fff;
  background: var(--patriziat-burgundy-dark, #5e1c1a);
}

.office-list__table tbody tr:nth-child(even) {
  background: #f7f3ee;
}

.office-list__table tbody tr:hover {
  background: #efe6dc;
}

.office-list__table tbody th {
  width: 7.5rem;
  color: var(--patriziat-burgundy-dark, #5e1c1a);
  background: transparent;
  font-weight: 700;
  white-space: nowrap;
}

.office-list__table a {
  font-weight: 650;
  text-decoration-thickness: .08em;
  text-underline-offset: .15em;
}

.office-list__person-link {
  padding: .05rem .12rem;
  border-radius: .12rem;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  transition: background-color .12s ease;
}

.office-list__empty {
  color: var(--patriziat-muted, #6e6963);
}

.office-list--syndics .office-list__table th:nth-child(1) {
  width: 9rem;
}

.office-list--schultheissen .office-list__table th:nth-child(1) {
  width: 10rem;
}

.office-list__note-row td {
  color: var(--patriziat-muted, #6e6963);
  background: #eee8e1;
  font-style: italic;
}

.office-list__note::before {
  content: "— ";
}

.office-list--syndics .office-list__table td:nth-child(3) {
  width: 15rem;
  color: var(--patriziat-muted, #6e6963);
  font-size: .92rem;
}

@media (min-width: 46.01rem) {
  .office-highlighter {
    position: sticky;
    top: .75rem;
    z-index: 5;
    box-shadow: 0 .35rem 1rem rgb(45 31 24 / 12%);
  }

  .toolbar-fixed .office-highlighter {
    top: 3.75rem;
  }

  .toolbar-fixed.toolbar-tray-open.toolbar-horizontal .office-highlighter {
    top: 6.25rem;
  }
}

@media (max-width: 46rem) {
  .office-highlighter__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .office-highlighter__button {
    width: 100%;
  }

  .office-list__table,
  .office-list__table tbody,
  .office-list__table tr,
  .office-list__table th,
  .office-list__table td {
    display: block;
  }

  .office-list__table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .office-list__table tbody tr {
    padding: .65rem .8rem;
    border-block-end: 1px solid var(--patriziat-line, #ddd5ca);
  }

  .office-list__table th,
  .office-list__table td,
  .office-list--schultheissen .office-list__table th:nth-child(1),
  .office-list--syndics .office-list__table th:nth-child(1),
  .office-list--syndics .office-list__table td:nth-child(3) {
    width: auto;
    padding: .3rem 0 .3rem 8.6rem;
    border: 0;
    position: relative;
  }

  .office-list__note-row td {
    padding-inline-start: 0;
  }

  .office-list__note-row td::before {
    content: none;
  }

  .office-list__table th::before,
  .office-list__table td::before {
    content: attr(data-label);
    position: absolute;
    inset-inline-start: 0;
    width: 7.8rem;
    color: var(--patriziat-muted, #6e6963);
    font-size: .82rem;
    font-weight: 700;
  }
}
