/* WordPress-only additions (the design CSS in dist/css/main.css is untouched). */
.admin-bar .site-header,
.admin-bar .site-header__bg { top: 32px; }
@media (max-width: 782px) {
  .admin-bar .site-header,
  .admin-bar .site-header__bg { top: 46px; }
}

/*
 * Person modal, desktop: the popup keeps ONE size while paging (the design's
 * hidden "sizer" panels make it as tall as the longest bio), but it is never
 * taller than the window. When the longest bio does not fit, only the text
 * column scrolls and the prev/next arrows stay pinned at the bottom.
 * (Below 992px the modal is full-screen and scrolls as a whole - unchanged.)
 */
@media (min-width: 992px) {
  .person-modal[open] {
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .person-modal[open] .person-modal__frame {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
  }
  .person-modal__body {
    flex: 1 1 auto;
    min-height: 0;
    align-items: stretch;
    overflow: hidden;
  }
  .person-modal__photo { align-self: flex-start; }
  .person-modal__copy {
    overflow-y: auto;
    padding-right: 1.5rem;
    overscroll-behavior: contain;
  }
  .person-modal__nav { flex: none; }
}
/* Less air before the arrows on shorter windows, so more of the bio is visible. */
@media (min-width: 992px) and (max-height: 1199px) {
  .person-modal__nav { padding-top: 3rem; }
}

/* Person modal bio written in the visual editor: lists and links (paragraphs are styled by the design CSS). */
.person-modal__bio ul,
.person-modal__bio ol { margin: 0 0 1.5rem; padding-left: 2.4rem; }
.person-modal__bio ul { list-style: disc; }
.person-modal__bio ol { list-style: decimal; }
.person-modal__bio li { margin-bottom: 0.5rem; }
.person-modal__bio li:last-child { margin-bottom: 0; }
.person-modal__bio a { color: inherit; text-decoration: underline; }
