
/* ---------- General ---------- */

/* 

Colour scheme:

    #373C8E - Primary
    #4C509A - Primary (light)
    #9093d6 - Primary (very light)
    #2D2F5A - Primary (dark)

    #EBA82D - Secondary
    #EEB347 - Secondary (light)

    #FFF - white (e.g. background, text)
    #131313 - dark grey (e.g. text, borders)

*/

html, body {
    font-family: 'Be Vietnam Pro', sans-serif;
    background: white;
    color: black;
    margin: 0;
    font-weight: 400;
    text-align: inherit;
}

a {
    color: #373C8E;
    text-decoration: none;
}

a:hover {
    color: #4C509A;
    text-decoration: none;
}

h1 {
    font-size: 1.5em;
    margin: 0;
    padding: 0;
    line-height: 1em;
    font-weight: bold;
    color: white;
}

h1 span {
    font-weight: normal;
    color: #EBA82D;
}

h1 img {
    height: 0.9em;
    margin-right: 0.3rem;
}

h2 {
    font-size: 2.5em;
    font-weight: bold;
    color: #373C8E;
    padding-bottom: 0.5em;
    line-height: 1em;
}

h2:not(:first-of-type) {
    padding-top: 2em;
}

h3 {
    padding: 1.7em 0 0.5em 0;
    text-align: left;
    font-size: 1.7em;
    font-weight: bold;
    color: #373C8E;
    line-height: 1em;
}

h4 {
    font-weight: bold;
    color: #373C8E;
    line-height: 1em;
    font-size: 1.2em;
    padding: 0.8em 0 0.1em 0;
}

h5 {
    font-weight: bold;
    color: #373C8E;
    font-size: 1em;
    padding-top: 0.5em;
}

hr {
    border-top: 0.4rem solid #EBA82D;
    width: 9rem;
    margin: 0.2em 0 1.3em 0;
}

p,
div,
span,
ol,
ul,
li {
    text-align: initial;
}

table,
td,
th {
    border: 1px solid #AAA;
    padding: 0.2em;
}

p {
    margin: 0.5em 0;
    line-height: 1.7em;
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border-radius: 0;
    padding: 0.3em 1.3em 0.3em 0.3em;
    margin: 0;
    width: 100%;
    font-family: inherit;
    font-size: inherit;
    cursor: inherit;
    line-height: inherit;
    display: block;
    border: 1px solid #BBB;
    background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position-x: 100%;
    background-position-y: 5px;
    background-color: white;
}

strong {
    font-weight: bold;
}

em {
    font-style: italic;
}

.clearfloat {
    clear: both;
}

.warning,
.warning a,
.warning a:hover {
    color: #E74C3C;
}

.warning a {
    text-decoration: underline;
}

.image-circle {
    border: 0.3rem solid rgba(255,255,255,0.6);
    border-radius: 100%;
    width: 13em;
    max-width: 90%;
    display: block;
    margin: 1em auto;
}

.hidden {
    display: none;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    padding-top: 0;
    height: 0;
    margin: 7em auto;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.pdf-viewer-full {
    width: 95%;
    height: calc(100vh - 4em);
    display: block;
    margin: 1em auto;
    overflow: auto;
}

.pdf-viewer-download {
    clear: both;
    background: #373C8E;
    color: white;
    padding: 0.5em 1em;
    border-radius: 0.2em;
    display: block;
    width: fit-content;
    margin: 1em auto 2em auto;
}

.pdf-viewer-download:hover {
    color: white;
    background: #4C509A;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
   opacity: 1;
}

:dir(rtl) {
    text-align: right;
}

/* ---------- Bubble Links (anchor links with rounded border) ---------- */

.bubblelink,
.bubblelink-invert {
    padding: 0.5em 1em;
    margin: 1em 0;
    display: inline-block;
    width: fit-content;
    max-width: 100%;
    cursor: pointer;
    border-radius: 1em;
    background: white;
    color: #373C8E;
}

.bubblelink-invert {
    background: #373C8E;
    color: white;
}

.bubblelink:hover,
.bubblelink-invert:hover {
    color: #EBA82D;
}

.bubblelink i,
.bubblelink-invert i {
    margin-left: 0.3em;
}

/* ---------- Forms ---------- */

form.full-form p {
    margin: 1em 0 2em 0;
}

form.full-form label,
form.full-form textarea,
form.full-form input[type=text],
form.full-form input[type=url],
form.full-form input[type=email],
form.full-form input[type=password],
form.full-form input[type=number] {
    display: block;
    width: 100%;
}

form.full-form textarea {
    height: 4em;
}

form.full-form label {
    margin-bottom: 0;
}

form.full-form ul {
    list-style-type: none;
    padding-left: 0;
}

form.full-form .helptext {
    color: #505050;
    font-size: 0.85em;
    font-style: italic;
    margin: 0.2em;
    display: block;
}

form.full-form .errorlist {
    color: #C0392B;
}

button {
    border-radius: 0.4em;
}

form.full-form button[type=submit] {
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    border: none;
    padding: 0.7em;
    margin: 1em auto;
    background: #373C8E;
    color: white;
    width: 100%;
}

form.full-form button[type=submit]:hover {
    opacity: 0.9;
}

.full-form-footer-links a {
    display: block;
    padding: 0.5em;
    margin: 2em auto;
    text-align: center;
    background: #DDD;
    border-radius: 0.4em;
    color: #404040;
}

.full-form-footer-links a:hover {
    opacity: 0.85;
}

form.full-form button[type=submit].button-danger {
    background: #C23616;
}

.field-required.field-invalid {
    border: 2px solid #E74C3C;
}

.validationmsg {
    color: #E74C3C;
    font-size: 0.9em;
}

/* ---------- Navigation ---------- */

nav.navbar {
    background: #373C8E;
    vertical-align: middle;
    color: white;
    z-index: 950;
}

.navbar-brand {
    display: inline-block;
    font-size: 1rem;
}

.navbar-brand h1 {
    color: #EBA82D;
    font-weight: normal;
}

.navbar-brand h1 strong {
    color: white;
    font-weight: bold;
}

.nav-link {
    font-weight: 400;
    font-size: 1.05rem;
    color: white;
    padding: 0.3em;
}

.dropdown-menu {
    background: #4C509A;
    color: white;
    font-size: 1.09em;
}

.dropdown-item {
    font-weight: 400;
    color: white;
    padding: 0.5em 1em;
    margin: 0.4em 0;
}

.dropdown-item:hover {
    background: none;
    color: white;
}

.dropdown-item:active {
    background: #4C509A;
}

nav a:hover,
.dropdown-item:hover {
    color: #EBA82D;
}

/* ---------- Main ---------- */

main {
    overflow-x: hidden;
    background: white;
    padding-bottom: 6em;
}

.main-banner {
    background: #373C8E;
    background: linear-gradient(to top, #4C509A, #373C8E);
    color: white;
}

.main-banner h2 {
    color: white;
    padding-bottom: 0.2rem;
}

.main-banner hr {
    border-top: 0.5rem solid #EBA82D;
    width: 13rem;
    margin: 1.3rem 0 2.7rem 0;
}

/* ---------- Welcome ---------- */

#welcome-banner-text h2 {
    color: #EBA82D;
    font-weight: 400;
}

#welcome-banner-text h2 img {
    height: 0.9em;
    margin-right: 0.5rem;
}

#welcome-banner-text h2 strong {
    color: white;
}

#welcome-banner-text p {
    margin: 2rem 0;
}

#welcome-banner-text-links {
    list-style: none;
}

#welcome-banner-text-links li {
    font-size: 1.2em;
}

#welcome-credits {
    text-align: center;
    margin: 8em 0 1em 0;
}

.welcome-credits-logo {
    display: inline-block;
    margin: 2em 3em;
    vertical-align: middle;
}

.welcome-credits-logo img {
    height: 4em;
    filter: grayscale(100%);
    opacity: 0.7;
}

.welcome-credits-logo img:hover {
    filter: none;
    opacity: 1;
}

/* ---------- Database Collection ---------- */

.collection-database {
    padding: 1em;
    background: #373C8E;
    background: linear-gradient(to top, #4C509A, #373C8E);
    color: white;
}

.collection-database img {
    display: block;
    float: right;
    opacity: 0.2;
}

.collection-database-text label {
    font-weight: bold;
    font-size: 2em;
    line-height: 1em;
}

.collection-database-text hr {
    margin: 0.5em 0 0 0;
}

.collection-database-text p {
    line-height: 1.3em;
}

/* ---------- Related Databases ---------- */

.relateddatabases-list-item h4 {
    text-align: center;
}

.relateddatabases-list-item img {
    display: block;
    max-width: 70%;
    margin: 1.5em auto;
}

/* ---------- Brochure (e.g. used in About) ---------- */

.brochure-list-item {
    padding: 2.7em 0;
    margin: 2.7em 0;
}

.brochure-detail ul {
    list-style: none;
    padding: 0;
}

.brochure-detail li {
    padding: 0;
    margin: 0.3em 0 1em 0;
}

/* ---------- Database: Navigation---------- */

#database-nav {
    display: block;
    position: fixed;
    top: 0;
    width: 15rem;
    max-width: 100%;
    height: calc(100vh - 4em);
    overflow-y: auto;
    color: #606060;
    background: #F5F5F5;
    padding-top: 0.5em;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 750;
}

#database-nav:not(.database-nav-collapsed) #nav-head-compact {
    display: none;
}

#database-nav a {
    color: white;
    color: #202020;
}

#database-nav ul {
    padding: 0.5em 0 0 0;
    margin-left: 0;
    list-style: none;
}

#database-nav ul li a {
    display: block;
    border-left: 0.4rem solid transparent;
}

#database-nav ul li a:hover {
    background: rgba(0, 0, 0, 0.09);
}

#database-nav ul li a.active {
    background: rgba(0, 0, 0, 0.13);
}

#database-nav ul li a i {
    display: inline-block;
    width: 1.5rem;
    margin-right: 0.5em;
    text-align: center;
}

#database-nav ul li a span {
    font-size: 0.97em;
}

#database-nav ul li.subitem {
    font-size: 0.9em;
}

#database-nav ul li.subitem a span {
    padding-left: 2.5em;
}

#database-nav.database-nav-collapsed ul li.subitem a i {
    display: inline-block;
    font-style: normal;
}

#database-nav:not(.database-nav-collapsed) ul li.subitem a i {
    display: none;
}

#database-nav ul li.subitem a.active {
    background: rgba(0, 0, 0, 0.05);
}

/* ---------- List ---------- */

#list {
    width: calc(100% - 23em);
    -webkit-transition: all 0.37s ease;
    -moz-transition: all 0.37s ease;
    -o-transition: all 0.37s ease;
    transition: all 0.37s ease;
}

.quicksearch-input {
    padding: 0.5em;
    width: 21em;
    max-width: 95%;
    display: block;
    margin: 2em 2em 3em 0;
    border: 2px solid #CCC;
    text-align: left;
}

.quicksearch-input:focus {
    outline: none;
    border: 2px solid #EBA82D;
}

/* List options */

#list-options {
    overflow-y: auto;
    height: calc(100vh - 3.5rem);
    padding-bottom: 3.5em;
}

#list-options-search-fields .list-options-search-fields-instance input {
    width: calc(100% - 3em);
    margin: 0 0.5em 0 0;
    padding: 0.35em;
    display: inline-block;
    vertical-align: middle;
}

#list-options-search-fields .list-options-search-fields-instance:first-of-type input {
    width: 100%;
}

.list-options-search-fields-instance span {
    padding: 0.55em 0.8em 0.4em 0.8em;
    text-align: center;
    background: #DDD;
    cursor: pointer;
    font-size: 0.9em;
    display: inline-block;
    vertical-align: middle;
}

.list-options-search-fields-instance span:hover {
    background: #CCC;
}

.list-options-search-fields-instance-operator {
    cursor: pointer;
    width: fit-content;
    padding: 0.13em 0.6em;
    border-radius: 0.2em;
    margin: 0.3em 0;
}

.list-options-search-fields-instance-operator:hover {
    background: #DDD;
}

#list-options-search-fields-add {
    padding: 0.4em 0.8em 0.3em 0.8em;
    font-size: 0.9em;
    margin: 0.5em auto 1em auto;
    width: fit-content;
    text-align: center;
    background: #DDD;
    cursor: pointer;
}

#list-options-search-fields-add:hover {
    background: #CCC;
}

.list-options-filters-group {
    margin: 1.8em 0;
    padding-top: 0.2em;
    border-top: 1px solid #DDD;
}

.list-options-filters-group:first-of-type {
    margin: 0 0 1.8em;
    padding-top: 0;
    border-top: none;
}

/* List body (all types) */

.list-body {
    margin-top: 1.3em;
}

.list-body-item {
    display: block;
    overflow-wrap: break-word;
    word-wrap: break-word;
    color: #131313;
    display: block;
}

.list-body-item:hover {
    color: #131313;
}

.list-body-item-text-title {
    font-size: 1.1em;
    font-weight: bold;
    color: #373C8E;
}

.list-body-item-text-details {
    font-size: 0.8em;
    padding-top: 0.2em;
    opacity: 0.8;
}

.list-body-empty {
    margin-top: 7em;
    text-align: center;
}

.list-body-empty div {
    text-align: center;
}

.list-body-empty-title {
    font-weight: bold;
    font-size: 1.5em;
    margin: 1em auto;
}

.list-body-empty-details strong {
    text-decoration: underline;
    cursor: pointer;
}

/* List body (Type: Text) */

.list-body-type-text .list-body-item {
    display: block;
    width: 100%;
    border-top: 1px solid #DDD;
    padding: 0.7em 1em 0.6em 1em;
}

.list-body-type-text .list-body-item:last-child {
    border-bottom: 1px solid #DDD;
}

.list-body-type-text .list-body-item:hover {
    background: #F2F2F2;
}

/* List body (Type: Image and/or Imagecompact) */

.list-body-type-image .list-body-item,
.list-body-type-imagecompact .list-body-item {
    vertical-align: top;
    display: inline-block;
    background: #F7F7F7;
}

.list-body-type-image .list-body-item {
    width: 13em;
    margin-right: 0.27em;
    margin-bottom: 0.5em;
    padding: 0.5em;
}

.list-body-type-imagecompact .list-body-item {
    width: 6em;
    margin-right: -5px;
    margin-bottom: -1px;
    position: relative;
    padding: 0;
}

.list-body-type-image .list-body-item:hover,
.list-body-type-imagecompact .list-body-item:hover {
    background: #EEE;
}

.list-body-type-image .list-body-item-imagecontainer,
.list-body-type-imagecompact .list-body-item-imagecontainer {
    overflow: hidden;
    text-align: center;
    width: 100%;
}

.list-body-type-image .list-body-item-imagecontainer {
    height: 12em;
    padding: 0.5em;
}

.list-body-type-imagecompact .list-body-item-imagecontainer {
    height: 6em;
    padding: 0.5em;
}

.list-body-type-image .list-body-item img,
.list-body-type-imagecompact .list-body-item img {
    display: inline-block;
}

.list-body-item img.wider {
    height: auto;
    width: 100%;
}

.list-body-type-image .list-body-item img.taller {
    height: 11em;
    width: auto;
}

.list-body-type-imagecompact .list-body-item img.taller {
    height: 5em;
    width: auto;
}

.list-body-type-imagecompact .list-body-item-text {
    font-size: 0.85em;
    padding: 0.2em 0.4em 0.2em 0.4em;
}

.list-body-type-imagecompact .list-body-item-text-title {
    font-size: 0.8rem;
    font-weight: normal;
}

/* Pagination */

#list-pagination {
    text-align: center;
    margin: 5em auto 2em auto;
    width: 100%;
}

.list-pagination-section {
    height: 4em;
    margin: 1em 0;
}

.list-pagination-section.disabled {
    visibility: hidden;
}

#list-pagination a {
    color: rgba(0, 0, 0, 0.6);
    background: rgba(0, 0, 0, 0.1);
    text-decoration: none;
    font-size: 2em;
    width: 2em;
    height: 1.4em;
    padding: 0.2em 0.2em 0.2em 0.2em;
    border-radius: 0.2em;
}

#list-pagination a:hover {
    text-decoration: none;
    background: #373C8E;
    color: white;
}

.list-pagination-action,
.list-pagination-action-disabled {
    display: inline-block;
    margin: 0 0.4em;
}

.list-pagination-action label {
    font-size: 0.7em;
    padding-top: 0.3em;
    display: block;
}

.list-pagination-current {
    font-size: 1em;
    font-weight: 600;
    display: block;
    padding-top: 1.3em;
}

/* ---------- Search All ---------- */

.searchall-model {
    margin: 1em 0 4em 0;
}

.searchall-model-header {
    background: #373C8E;
    font-size: 1.4em;
    padding: 0.6em;
    font-weight: bold;
    color: white;
    cursor: pointer;
    vertical-align: middle;
}

.searchall-model-header:hover {
    background: #4C509A;
}

.searchall-model-header * {
    vertical-align: top;
}

.searchall-model-header-title {
    font-size: 1.5rem;
}

.searchall-model-header-symbol {
    float: right;
    font-size: 1.3em;
    margin: -0.13em 0.1em 0 0;
}

.searchall-model-counts {
    background: #9093d6;
    color: white;
    padding: 0.3em 0.8em;
    font-size: 1rem;
}

.searchall-model-counts a {
    color: white;
    text-decoration: underline;
}

/* ---------- Tabs ---------- */

.tabs {
    display: block;
    padding-left: 0;
    list-style: none;
}

.tabbed-title {
    display: none;
}

.tabs li {
    background: #373C8E;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
}

.tabs li.active {
    background: #EBA82D;
    color: #373C8E;
}

section.tabbed {
    display: none;
}

/* ---------- Detail ---------- */

.viewinadmindashboard-link {
    display: inline-block;
    padding: 0.3em 1em;
    background: #DDD;
    color: #303030;
    border-radius: 1em;
}

.viewinadmindashboard-link:hover {
    background: #CCC;
    color: #202020;
}

.detail-section.subtle {
    font-size: 0.9em;
}

.detail-section.subtle label {
    font-size: 1em;
}

.detail-section {
    padding: 0 0 2em 0;
}

.detail-section h3 {
    padding-top: 0;
}

.details-detail {
    margin-bottom: 2em;
    background: #F5F5F5;
    padding: 1em;
}

.details-detail label {
    font-weight: bold;
    font-size: 0.95em;
    margin: 0 0 0.5em 0;
    display: block;
}

.details-detail div {
    font-size: 1em;
}

.details-detail p {
    margin: 0;
}

.details-detail ul li,
.details-detail ol li {
    padding: 0;
    margin-right: 1em;
}

.details-detail a {
    text-decoration: underline;
}

.details-detail-metadata {
    font-size: 0.85rem;
    color: #707070;
    border-top: 1px solid #DDD;
    width: fit-content;
    padding-top: 1.3em;
    padding-right: 2.7em;
    margin-top: 2em;
}

.details-detail-metadata label {
    font-weight: bold;
    margin-top: 1em;
    margin-right: 0.5em;
}

/* ---------- Item Image ---------- */

/* ---------- Item Image: Image Viewer ---------- */

#itemimage-controls {
    background: #373C8E;
    color: #FFF;
    padding: 0 0.5em;
}

.itemimage-controls-item {
    font-size: 0.85em;
    display: inline-block;
    margin: 0;
    cursor: pointer;
    opacity: 0.8;
    vertical-align: top;
}

.itemimage-controls-item a {
    color: #FFF;
}

.itemimage-controls-item:hover {
    opacity: 1;
    background: #4C509A;
}

.itemimage-controls-item.active {
    background: #EBA82D;
    opacity: 1;
}

.itemimage-controls-item i {
    padding: 0.5em;
    font-size: 1.4em;
}

.itemimage-controls-item select {
    display: inline-block;
    padding: 0 2em 0 0.3em;
    height: 2.3em;
    border: 0;
    width: 13em;
}

#itemimage {
    background: #2D2F5A;
    overflow: scroll;
    border: 1px solid #373C8E;
    border-top: none;
}

#itemimage-container {
    position: relative;
}

#itemimage-image {
    width: 1000px;
}

#itemimage-copyright {
    font-size: 0.9em;
    font-weight: 300;
    color: #606060;
    margin-top: 0.5em;
}

/* Fullscreen  */

section#tabbed-image.fullscreen {
    position: fixed;
    left: 0;
    width: 100%;
    z-index: 900;
}

section#tabbed-image.fullscreen #itemimage {
    width: 100%;
    max-width: 100%;
}

section#tabbed-image.fullscreen #itemimage-controls {
    width: 100%;
    max-width: 100%;
}

/* ---------- Generic Sidebar ---------- */

.sidebar {
    display: block;
    position: fixed;
    top: 3.5rem;
    width: 23em;
    max-width: 100%;
    background: #F5F5F5;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.7em;
    z-index: 800;
    overflow-y: auto;
}

.sidebar-title {
    font-size: 2em;
    font-weight: bold;
    margin: 0.35em 0 0.5em 0;
}

.sidebar-subtitle {
    font-size: 1.3em;
    font-weight: bold;
    margin: 1.5em 0 0.2em 0;
}

.sidebar-close {
    float: right;
    display: block;
    margin: 0.09em 0.5em 0 0;
    font-size: 1.5em;
    color: #909090;
    cursor: pointer;
}

.sidebar-close:hover {
    color: #404040;
}

.sidebar hr {
    margin: 1.8em auto 0.5em auto;
    border-top: 0.13em solid #DDD;
    width: 100%;
}

.sidebar label {
    font-weight: bold;
    font-size: 0.89em;
    margin: 1.2em 0 0 0;
    display: inline-block;
    width: calc(100% - 2.1em);
}

.sidebar .input-clear {
    opacity: 0.7;
    cursor: pointer;
    padding: 0.2em 0.3em;
    display: none;
}

.sidebar .input-clear:hover {
    opacity: 1;
}

.sidebar input,
.sidebar textarea {
    display: block;
    width: calc(100% - 4px);
    margin-left: 2px;
    padding: 0.5em;
}

.sidebar input,
.sidebar select,
.sidebar textarea {
    border: 1px solid #DDD;
    border: none;
    font-size: 0.95em;
}

.sidebar input[type='checkbox'] {
    display: inline;
    width: initial;
    margin-right: 0.5em;
}

.sidebar .helptext {
    font-size: 0.85em;
    margin-top: 0.2em;
    color: #505050;
}

.sidebar div.disabled {
    opacity: 0.5;
}

.sidebar .spinner-container {
    margin: 40vh auto 1em auto;
    width: fit-content;
    text-align: center;
}

.sidebar .spinner-container .spinner {
    border: 13px solid #EEE;
    border-top: 13px solid #373C8E;
    border-radius: 50%;
    width: 89px;
    height: 89px;
    animation: spinner 2s linear infinite;
    margin: 2em auto;
}

@keyframes spinner {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.sidebar-submitbuttons {
    z-index: 850;
    display: block;
    position: fixed;
    bottom: 0;
    width: 23em;
    max-width: 100%;
}

.sidebar-submitbuttons button {
    margin: 0;
    padding: 1em;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: none;
    border-radius: 0;
    color: white;
    display: inline-block;
}

.sidebar-submitbuttons-primary,
.sidebar-submitbuttons-only {
    background: #373C8E;
}

.sidebar-submitbuttons-primary:hover,
.sidebar-submitbuttons-only:hover {
    background: #4C509A;
}

.sidebar-submitbuttons-only {
    width: 100%;
}

.sidebar-submitbuttons-primary {
    width: 80%;
}

.sidebar-submitbuttons-secondary {
    background: #EBA82D;
    width: 20%;
}

.sidebar-submitbuttons-secondary:hover {
    background: #EEB347;
}

/* ---------- Item Image: Description Sidebar ---------- */

#tabbed-image #itemimagedetails {
    overflow: auto;
    right: -23em;
    height: 100vh;
}

/* ---------- Handbook ---------- */

/* List */

#handbook-list {
    width: calc(100vw - 23em)
}

#handbook-list-head {
    padding: 2rem 1rem 0 1rem;
    text-align: center;
}

#handbook-list-head-introduction {
    font-size: 0.95em;
    padding: 0 2em;
}

#handbook-list-body {
    padding: 1rem;
}

.handbook-list-body-results-item {
    display: block;
    border-bottom: 1px solid #CCC;
    padding: 1em;
}

.handbook-list-body-results-item:first-of-type {
    border-top: 1px solid #CCC;
}

.handbook-list-body-results-item:hover {
    background: #EEE;
}

.handbook-list-body-results-item-title {
    font-weight: bold;
    font-size: 1.2em;
    margin-bottom: 0.3em;
}

.handbook-list-body-results-item-details {
    color: #696969;
    font-weight: 500;
    font-size: 0.9em;
}

.handbook-list-body-results-item-details-unpublished {
    font-weight: bold;
    color: red;
    padding: 0.3em 0;
    font-size: 0.9em;
}

#handbook-list-body-empty {
    text-align: center;
    color: #696969;
    font-size: 1.1em;
}

#handbook-list-body-tableofcontents-quicksearch {
    padding: 0.5em;
    border: none;
    border-bottom: 0.13rem solid #AAA;
    margin: 0.3em auto 1em auto;
    display: block;
    text-align: center;
    width: 27rem;
    max-width: 100%;
}

#handbook-list #tabbed-tableofcontents a {
    display: inline-block;
    font-weight: normal;
}

#handbook-list #tabbed-tableofcontents ol {
    counter-reset: item;
    padding: 1em;
}

#handbook-list #tabbed-tableofcontents li {
    display: block;
    padding: 0.5em;
}

#handbook-list #tabbed-tableofcontents li:last-of-type {
    padding-bottom: 0;
}

#handbook-list #tabbed-tableofcontents li:before {
    content: counters(item, ".") ". ";
    counter-increment: item;
}

#handbook-list #tabbed-about {
    padding: 0 1.5em;
}

/* Detail */

#handbook-detail-tableofcontents {
    width: 20rem;
    position: absolute;
    left: 0;
    height: calc(100vh - 3.5rem);
    overflow: auto;
    padding: 1em;
    background: #EEE;
    font-size: 0.95em;
    user-select: none;
}

#handbook-detail-tableofcontents .level-4 {
    padding-left: 0.5em;
}

#handbook-detail-tableofcontents .level-5 {
    padding-left: 1em;
}

a.handbook-detail-tableofcontents-item {
    margin: 1em 0;
    display: block;
    color: black;
}

a.handbook-detail-tableofcontents-item:hover {
    color: #373C8E;
}

.handbook-detail-tableofcontents-item-number {
    display: inline-block;
    vertical-align: top;
    margin-right: 1em;
}

.handbook-detail-tableofcontents-item-label {
    width: calc(100% - 4em);
    display: inline-block;
    vertical-align: top;
}

.handbook-detail-tableofcontents-item .subtitle-number {
    padding-right: 0.5em;
}

#handbook-detail-main {
    width: calc(100% - 40rem);
    position: absolute;
    left: 20em;
    height: calc(100vh - 3.5rem);
    overflow: auto;
    padding: 1em 3em 80vh 3em;
}

#handbook-detail-main .subtitle-number {
    padding-right: 0.6em;
}

#handbook-detail-main-header {
    border-bottom: 1px solid #EEE;
    width: 100%;
    padding: 1rem 0;
    text-align: center;
}

#handbook-detail-main-header h2 {
    font-size: 2em;
}

#handbook-detail-main-header-details {
    margin: 0.5em 0;
    font-size: 0.9em;
    color: #606060;
}

#handbook-detail-main-header-details div {
    text-align: center;
    margin: 0.5em 0;
}

#handbook-detail-main-header-functions {
    text-align: center;
    margin: 1em 0;
}

.handbook-detail-main-header-functions-function {
    display: inline-block;
    margin: 0.3em 1em;
    background: #EEE;
    color: black;
    cursor: pointer;
    padding: 0.3em 1em;
    border-radius: 1em;
}

.handbook-detail-main-header-functions-function:hover {
    color: black;
    background: #DDD;
}

#handbook-detail-main-content .p-number {
    display: inline-block;
    margin-left: -3em;
    width: 2.5em;
    margin-right: 0.5em;
    opacity: 0.4;
    text-align: center;
    user-select: none;
}

#handbook-detail-main-content b {
    font-weight: bold;
}

#handbook-detail-main-content i {
    font-style: italic;
}

#handbook-detail-main-content img {
    display: block;
    margin: 2em auto 0.5em auto;
    max-width: 80%;
}

#handbook-detail-main-content .img-description {
    display: block;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 0.9em;
    color: #606060;
}

#handbook-detail-main-content .img-description strong {
    display: inline-block;
    margin-right: 0.5em;
}

#handbook-detail-main-content .footnotelink {
    font-size: 0.8em;
    color: #373C8E;
    cursor: pointer;
    display: inline-block;
    margin: 0 0.3em;
    user-select: none;
}

#handbook-detail-main-bibliography,
#handbook-detail-main-citation {
    padding-top: 2em;
    margin-top: 5em;
    border-top: 1px solid #DDD;
}

#handbook-detail-footnotes {
    border-left: 1px solid #EEE;
    padding: 1em 1em calc(100vh - 7em) 1em;
    width: 20rem;
    position: absolute;
    right: 0;
    height: calc(100vh - 3.5rem);
    overflow: auto;
    color: #606060;
    font-size: 0.9em;
}

.handbook-detail-footnotes-item {
    margin: 1em 0;
}

.handbook-detail-footnotes-item-number {
    font-weight: bold;
}

.handbook-detail-footnotes-item .footnote-toggle {
    font-weight: bold;
    color: #373C8E;
    cursor: pointer;
    font-size: 0.9em;
    user-select: none;
}

/* ---------- Help ---------- */

#help-list-head-search {
    margin: 3em auto;
    text-align: center;
}

#help-detail-link {
    text-align: center;
    font-size: 1.3em;
    display: block;
    margin: 3em 0;
}

#help-detail-link a {
    font-weight: bold;
}

#help-detail-image {
    max-width: 100%;
    margin: 3em auto;
}

/* ---------- Account ---------- */

#account-login-help {
    margin-top: 2em;
}

/* ---------- Error Pages ---------- */

.errorpage-path {
    font-weight: bold;
}

.errorpage-code {
    margin-top: 3em;
    font-size: 0.8em;
}
