html {
    font-size:1.125em;
}

html,
body {
    font-family: 'Andika', Helvetica, Arial, sans-serif;
}

@font-face {
    font-family: 'Andika';
    src: url('fonts/andika-bold.woff2') format('woff2'),
    url('fonts/andika-bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Andika';
    src: url('andika-bolditalic.woff2') format('woff2'),
    url('fonts/andika-bolditalic.woff') format('woff');
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Andika';
    src: url('fonts/andika-italic.woff2') format('woff2'),
    url('fonts/andika-italic.woff') format('woff');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Andika';
    src: url('fonts/andika-regular.woff2') format('woff2'),
    url('fonts/andika-regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: .5rem;
    margin-bottom: 1.5rem;
}

header h1 {
    margin-top: 0;
    margin-bottom: 0;
}

.accordion-header {
    margin-top: 0;
}

.accordion-body p:last-of-type,
.accordion-body ul:last-of-type {
    margin-bottom: 0;
}

#search-results .badge {
    font-weight: 400;
}

#search-results .regesta,
#search-results .fulltext,
#search-results .mentions,
#search-results .functions {
    margin-top: 0.5em;
    font-size: 0.75em;
}

#results-accordion .accordion-body {
    padding: 0;
}

#search-no-results {
    top: 5%;
}

.article-item:not(:last-child),
.short-item:not(:last-child) {
    margin-bottom: 1rem;
}

.article-item .content,
.short-item .content {
  display: flex;
  flex-direction: column;
}

.article-item .title,
.short-item .title {
  font-weight: bold;
}

#persons-table th {
  cursor: pointer;
  position: relative;
  padding-right: 1.2em;
}

#persons-table th::after {
  content: "";
  position: absolute;
  margin-left: 0.5em;
  top: 50%;
  transform: translateY(-50%);
  display: inline-block;
}

#persons-table th[aria-sort="ascending"]::after {
  content: "↑";
}

#persons-table th[aria-sort="descending"]::after {
  content: "↓";
}

#letter-toc-container {
    margin-bottom: 2rem;
}

#letter-toc {
    margin-bottom: 0;
}

#letter-toc.disabled a {
    pointer-events: none;
    color: #6c757d;
    text-decoration: none;
    cursor: default;
}

#toc-disabled-message {
    color: #6c757d;
    font-size: 0.9em;
    min-height: 1.2em;
}

#toc-disabled-message.hidden {
    visibility: hidden;
}

#toc-disabled-message.shown {
    visibility: visible;
}

#search-results .edition-title,
#search-results .authors {
    display: block;
}