:root {
    --icon-font: "Font Awesome 5 Free";

    --map-padding-top: 0px;
    --map-padding-bottom: 0px;
    /* --map-padding-right: 0px; */ /* This is defined in default.css */
    --map-controls-margin-top: 25px;
    --map-controls-margin-right: 15px;
    --map-controls-margin-bottom: 64px;
    --map-controls-margin-left: 15px;

    --map-controls-font-family: "Rubik", sans-serif;
    --map-controls-color-fg: white;
    --map-controls-color-fg-inner: white;
    --map-controls-color-bg: rgba(0,0,0, 0.75);
    --map-controls-color-bg-inactive: rgba(0,0,0, 0.5);
    --map-controls-blur: 3px;

    --map-attribution-color: black;
    --map-button-size: 35px;
    --map-button-icon-size: 24px;
    --map-button-radius: 2px;
    --map-button-margin: 5px;

    --popup-default-font-size: 18px;
    --popup-separator-width: 2px;
    --popup-mobile-gap: 27px;
}

.bg--dark {
    --map-controls-color-fg: black;
    --map-controls-color-fg-inner: white;
    --map-controls-color-bg: rgba(255,255,255, 0.75);
    --map-controls-color-bg-inactive: rgba(255,255,255, 0.5);
    --map-attribution-color: white;
}

html, body {
    width: 100%;
    height: 100%;
}

#map {
    font-family: "Open Sans",Helvetica,Arial,Times,sans-serif;
    font-size: 22pt;
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: move;
}

#map > .map-model {
    position: absolute;
    transform-origin: 0 0;
    -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
}

.map-model > * {
    position: absolute;
    -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
}

.map-model .edge,
.map-model .node {
    will-change: unset;
}
.map2.is-zooming .edge,
.map2.is-zooming .node {
    will-change: transform, transition;
}

.map-model .node {
    width: 75px;
    height: 75px;
    background: transparent;
    border-radius: 50%;
    border: 2px solid #000;
    z-index: 2;
    display: table-cell;
    font-size: 14px;
    transform-origin: center;
    --border-width: 0px;
}

.node--link {
    cursor: pointer;
}

.node .node-content {
    display: table;
    width: 100%;
    height: 100%;
    text-align: center;
}
.node .node-content .icon-wrapper {
    display: table-row;
    padding-bottom: 10px;
}
.node .node-content .icon-wrapper .custom-icon {
    display: table-cell;
    height: 100%;
    background-size: contain;
    background-position: 50%;
    background-repeat: no-repeat;
    border-radius: 50%;
}
.node .node-content .title {
    display: table-cell;
    width: 100%;
    height: 100%;
    letter-spacing: 0.01em;
}
    .node .node-content .title.top {
        white-space: nowrap;
        position: absolute;
        bottom: calc(100% + 8px);
        height: auto;
        vertical-align: bottom;
        display: flex;
        align-items: flex-end;
    }
    .node .node-content .title.middle {
        top: 0;
        vertical-align: middle;
        -webkit-box-align: center;
            -ms-flex-align: center;
            -ms-grid-row-align: center;
                align-items: center;
    }
    .node .node-content .title.bottom {
        white-space: nowrap;
        position: absolute;
        top: calc(100% + 8px);
        height: auto;
        vertical-align: top;
        display: flex;
        align-items: flex-start;
    }
    .node .node-content .title.left {
        white-space: nowrap;
        position: absolute;
        right: calc(100% + 8px);
        width: auto;
        max-width: 100%;
        text-align: right;
        display: flex;
        justify-content: flex-end;
    }
    .node .node-content .title.center {
        left: 0;
        text-align: center;
        justify-content: center;
    }
    .node .node-content .title.right {
        white-space: nowrap;
        position: absolute;
        left: calc(100% + 8px);
        width: auto;
        max-width: 100%;
        text-align: left;
        display: flex;
        justify-content: flex-start;
    }
    /* Offset diagonal labels for circles */
    .node .node-content .title.top.left {
        bottom: calc(85% + 5px);
        right: calc(85% + 5px);
    }
    .node .node-content .title.top.right {
        bottom: calc(85% + 5px);
        left: calc(85% + 5px);
    }
    .node .node-content .title.bottom.left {
        top: calc(85% + 5px);
        right: calc(85% + 5px);
    }
    .node .node-content .title.bottom.right {
        top: calc(85% + 5px);
        left: calc(85% + 5px);
    }

.node .node-content-v2 {
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    text-align: center;
    overflow: visible;
}
.node .node-content-v2 .icon-wrapper {
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}
.node .node-content-v2 .icon-wrapper .custom-icon {
    display: block;
    position: absolute;
    top: var(--border-width);
    left: var(--border-width);
    width: calc(100% - 2 * var(--border-width));
    height: calc(100% - 2 * var(--border-width));
    background-size: contain;
    background-position: 50%;
    background-repeat: no-repeat;
}
.node .node-content-v2 .border-container {
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}
.node .node-content-v2 .title {
    display: flex;
    position: absolute;
    width: 100%;
    height: 100%;
}
    .node .node-content-v2 .title.top {
        white-space: nowrap;
        position: absolute;
        bottom: calc(100% + 8px);
        height: auto;
        vertical-align: bottom;
        display: flex;
        align-items: flex-end;
    }
    .node .node-content-v2 .title.middle {
        top: 0;
        vertical-align: middle;
        -webkit-box-align: center;
            -ms-flex-align: center;
            -ms-grid-row-align: center;
                align-items: center;
    }
    .node .node-content-v2 .title.bottom {
        white-space: nowrap;
        position: absolute;
        top: calc(100% + 8px);
        height: auto;
        vertical-align: top;
        display: flex;
        align-items: flex-start;
    }
    .node .node-content-v2 .title.left {
        white-space: nowrap;
        position: absolute;
        right: calc(100% + 8px);
        width: auto;
        text-align: right;
        display: flex;
        justify-content: flex-end;
    }
    .node .node-content-v2 .title.center {
        left: 0;
        text-align: center;
        justify-content: center;
    }
    .node .node-content-v2 .title.right {
        white-space: nowrap;
        position: absolute;
        left: calc(100% + 8px);
        width: auto;
        text-align: left;
        display: flex;
        justify-content: flex-start;
    }
    /* Offset diagonal labels */
    .node .node-content-v2 .title.top.left {
        bottom: calc(100% + 5px);
        right: calc(100% + 5px);
    }
    .node .node-content-v2 .title.top.right {
        bottom: calc(100% + 5px);
        left: calc(100% + 5px);
    }
    .node .node-content-v2 .title.bottom.left {
        top: calc(100% + 5px);
        right: calc(100% + 5px);
    }
    .node .node-content-v2 .title.bottom.right {
        top: calc(100% + 5px);
        left: calc(100% + 5px);
    }
    /* Offset diagonal labels for circles */
    .node-shape-circle .node-content-v2 .title.top.left {
        bottom: calc(85% + 5px);
        right: calc(85% + 5px);
    }
    .node-shape-circle .node-content-v2 .title.top.right {
        bottom: calc(85% + 5px);
        left: calc(85% + 5px);
    }
    .node-shape-circle .node-content-v2 .title.bottom.left {
        top: calc(85% + 5px);
        right: calc(85% + 5px);
    }
    .node-shape-circle .node-content-v2 .title.bottom.right {
        top: calc(85% + 5px);
        left: calc(85% + 5px);
    }


.map-model .edge {
    min-width: 2px;
    min-height: 2px;
}
.map-model .edge svg {
    position: absolute;
    width: 100%;
    height: 100%;
}
.map-model .edge .map-label {
    font-size: 13px;
    position: absolute;
    left: 0;
    top: 0;
    width: auto;
    height: 1em;
    color: #000;
}

.map-model .map-label {
    display: block;
    box-sizing: border-box;
    position: relative;
    left: 50%;
    top: 50%;
    width: 100%;
    text-align: center;
}

.map-model .label-start,
.map-model .label-middle,
.map-model .label-end {
    transform-origin: 0 0;
}
.map-label.label-start {
    text-align: left;
}
.map-label.label-middle {
    text-align: center;
}
.map-label.label-end {
    text-align: right;
}


/* Controls */

.zoom-controls {
    position: absolute;
    right: var(--map-controls-margin-right);
    bottom: calc(var(--map-controls-margin-bottom) + var(--map-padding-bottom));
    text-align: center;
    color: var(--map-controls-color-fg);
}
.zoom-controls > * {
    display: flex;
    width: var(--map-button-size);
    height: var(--map-button-size);
    font-size: var(--map-button-icon-size);
    background: var(--map-controls-color-bg);
    border-radius: var(--map-button-radius);
    margin-top: var(--map-button-margin);
    align-items: center;
    justify-content: center;
    text-decoration: none;
    -webkit-backdrop-filter: blur(var(--map-controls-blur));
            backdrop-filter: blur(var(--map-controls-blur));
}
.zoom-range {
    position: absolute;
    right: var(--map-controls-margin-right);
    bottom: calc(var(--map-controls-margin-bottom) + var(--map-padding-bottom) + 3 * var(--map-button-size) + 4 * var(--map-button-margin));
    color: var(--map-controls-color-fg);
}
.zoom-range > * {
    display: flex;
    background-color: var(--map-controls-color-bg-inactive);
    width: var(--map-button-size);
    height: calc(var(--map-button-size) / 1.4);
    border-radius: var(--map-button-radius);
    margin-top: var(--map-button-margin);
    -webkit-backdrop-filter: blur(var(--map-controls-blur));
            backdrop-filter: blur(var(--map-controls-blur));
    align-items: center;
    justify-content: center;
    font-family: var(--map-controls-font-family);
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
}

.zoom-level-1  .zoom-range > .zoom-level-1,
.zoom-level-2  .zoom-range > .zoom-level-2,
.zoom-level-3  .zoom-range > .zoom-level-3,
.zoom-level-4  .zoom-range > .zoom-level-4,
.zoom-level-5  .zoom-range > .zoom-level-5,
.zoom-level-6  .zoom-range > .zoom-level-6,
.zoom-level-7  .zoom-range > .zoom-level-7,
.zoom-level-8  .zoom-range > .zoom-level-8,
.zoom-level-9  .zoom-range > .zoom-level-9,
.zoom-level-10 .zoom-range > .zoom-level-10,
.zoom-level-11 .zoom-range > .zoom-level-11,
.zoom-level-12 .zoom-range > .zoom-level-12 {
    background-color: var(--map-controls-color-bg);
}

/* FIXME: Migrate definitions from default.css to this file */
#map nav.tabs {
    bottom: var(--map-padding-bottom);
    font-size: 12pt;
}
#map nav.tabs .label {
    background: var(--map-controls-color-bg);
    border-top-left-radius: var(--map-button-radius);
    border-top-right-radius: var(--map-button-radius);
    -webkit-backdrop-filter: blur(var(--map-controls-blur));
            backdrop-filter: blur(var(--map-controls-blur));
}
#map nav.tabs .label a {
    color: var(--map-controls-color-fg);
}
#map nav.tabs .body {
    border-top: none;
}

#attribution {
    font-size: 0.5em;
    position: absolute;
    right: var(--map-controls-margin-right);
    bottom: calc(var(--map-padding-bottom) + 1rem);
    pointer-events: none;
    opacity: 0.5;
    text-align: right;
    color: var(--map-attribution-color);
}
#attribution a[href] {
    pointer-events: auto;
    text-decoration: none;
}


/**************
 * Map popups *
 **************/

.popup {
    cursor: auto;
    --paragraph-spacing: 0;
}
.popup .popup-content p:not(:empty) {
    margin-bottom: var(--paragraph-spacing);
}
.popup .popup-content-marginal {
    font-size: 0.8em;
}
.popup .popup-content-marginal a {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: normal;
}
.popup .popup-social h3,
.popup .popup-connections h3 {
    font-size: 0.75em;
}
.popup .popup-connections ul {
    list-style: none;
    margin: 0.5em 0 0 0;
    padding: 0;
}
.popup .popup-connections li {
    display: inline-block;
}
.popup .popup-connections a {
    display: inline-block;
    font-size: 0.75em;
    padding: 0.2em 1.0em;
    border: 1px solid #000000;
    border-radius: 0.2rem;
    margin-right: 0.2em;
    margin-bottom: 0.2em;
    text-decoration: none;
}

.popup-detached {
    display: flex;
    flex-direction: column;
    opacity: 0;
    transition: opacity 1s;
    transform-origin: bottom center;
    z-index: 3;
    height: auto;
    aspect-ratio: 3 / 2;
    --arrow-size: 17px;
    font-size: var(--popup-default-font-size);
}

.popup-detached.active {
    opacity: 1;
}
.popup-detached > section {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-height: calc(100% - var(--arrow-size));
}
.popup-detached .popup-content {
    display: block;
    flex: 1 1 auto;
    overflow-x: hidden;
    overflow-y: auto;
    touch-action: pan-y;
    scrollbar-gutter: auto;
}
.popup-detached .popup-content > * {
    padding: 0.75em;
}
.popup-detached .popup-content > .popup-social {
    padding-top: 0.25em;
    padding-bottom: 0.25em;
}
.popup-detached .popup-content iframe,
.popup-detached .popup-content video,
.popup-detached .popup-content audio {
    margin: 1em 0;
    max-width: 100%;
}
.popup-detached .popup-navigation-bottom > ul,
.popup-detached .popup-social ul {
    margin: 0;
    padding: 0;
}
.popup-detached .popup-connections,
.popup-detached .popup-content-marginal,
.popup-detached .popup-navigation-bottom,
.popup-detached .popup-social {
    border-top: var(--popup-separator-width) solid;
    padding: 0.75em;
    transition: border-color 1s;
}
.popup-detached aside {
    text-align: center;
    height: var(--arrow-size);
}
.popup-detached .popup-arrow {
    display: inline-block;
    margin-left: calc(0.5 * var(--arrow-size));
    border-top: var(--arrow-size) solid #fff;
    border-right: var(--arrow-size) solid transparent;
    border-bottom: var(--arrow-size) solid transparent;
    border-left: var(--arrow-size) solid transparent;
}
.popup-detached-full {
    width: 100%;
    height: 75vh;
}
.popup-detached-full,
.popup-detached-full > section,
.popup-detached-full .popup-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    overflow: hidden;
}
.popup-detached-full > section {
    padding: 0;
}
.popup-detached-full .popup-content {
    max-width: none;
    max-height: none;
    padding: 0 0 0.5rem 0;
}
.popup-detached-full .popup-content > iframe {
    margin: 0;
    border: none;
    width: 100%;
    height: 100%;
}

.popup-large {
    width: max(min(85vw, 85vh), 240px);
}
.popup-medium {
    width: max(min(50vw, 50vh), 200px);
}
.popup-small {
    width: max(min(30vw, 30vh), 160px);
}
/* IE10+ */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    .popup-large {
        width: 60vw;
        height: 60vh;
    }
    .popup-medium {
        width: 40vw;
        height: 40vh;
    }
    .popup-small {
        width: 20vw;
        height: 20vh;
    }
}

.popup-panel {
    position: absolute;
    left: 0;
    top: var(--map-padding-top);
    width: 400px;
    height: calc(100% - var(--map-padding-top) - var(--map-padding-bottom));
    display: flex;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s;
}
.popup-panel.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 5;
}

.popup-panel > section {
    display: flex;
    width: 100%;
    min-height: 100%;
    flex-direction: column;
    background: #fff;
    flex: 1 1 auto;
    font-size: var(--popup-default-font-size);
}
.popup-panel > section > main {
    flex: 1 1 auto;
    overflow-x: hidden;
    overflow-y: auto;
    touch-action: pan-y;
    -webkit-hyphens: auto;
            -ms-hyphens: auto;
        hyphens: auto;
    scrollbar-gutter: auto;
}
.popup-panel .popup-content > *,
.popup-panel .popup-navigation-bottom > * {
    padding: 1rem 2rem;
    border-top: var(--popup-separator-width) solid rgba(0,0,0, 0.75);
    transition: border-color 1s
}
.popup-panel .popup-content > h1,
.popup-panel .popup-content > h2 {
    font-weight: normal;
}
.popup-panel .popup-content > h1 {
    font-size: 2em;
    border-top: none;
    transition: color 1s
}
.popup-panel .popup-content > h2 {
    font-size: 0.9em;
}
.popup-panel .popup-content-main ul,
.popup-panel .popup-content-marginal ul {
    margin: 0 0 var(--paragraph-spacing) 0;
}
.popup-panel .popup-content-main ul,
.popup-panel .popup-content-marginal ul {
    padding: 0 0 0 1em;
}
.popup-panel .popup-navigation-bottom > ul {
    margin-top: 0;
    margin-bottom: 0;
}

.popup-panel main img,
.popup-panel main iframe,
.popup-panel main video,
.popup-panel main audio {
    margin: 1em 0;
    max-width: 100%;
}

.popup main.popup-external-content {
    display: flex;
}
.popup main.popup-external-content iframe {
    flex: 1 1 auto;
    margin: 0;
    padding: 0;
}

.popup-panel .popup-social {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}
.popup-panel .popup-social > ul {
    margin: 0;
    padding: 0;
}

.popup .popup-navigation-bottom,
.popup .popup-navigation-top {
    flex: 0 0 auto;
    overflow: hidden;
    white-space: nowrap;
}
.popup .popup-navigation-top {
    display: none;
    font-family: var(--map-controls-font-family);
    font-size: 15px;
    text-align: right;
}
.popup .popup-navigation-top a {
    display: inline-block;
    padding: 0.5em 0.5em 0.25em 0.5em;
    margin: 0 0.5em 0 0;
    font-weight: bold;
    text-decoration: none;
}
.popup .popup-navigation-bottom {
    font-family: "Open Sans Condensed",Helvetica,Arial,sans-serif;
    font-size: 0.9em;
}
.popup .popup-navigation-bottom > ul {
    display: flex;
    list-style: none;
}
.popup .popup-navigation-bottom > ul > li {
    flex: 1 1 auto;
}
.popup .popup-navigation-bottom a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}
.popup .popup-navigation-bottom a > * {
    text-decoration: underline;
}
.popup .popup-navigation-bottom .prev a :first-child {
    padding-right: 0.5em;
    text-decoration: none;
}
.popup .popup-navigation-bottom .next {
    text-align: right;
}
.popup .popup-navigation-bottom .next a :last-child {
    padding-left: 0.5em;
    text-decoration: none;
}
.popup-panel-large {
    max-width: 900px;
    min-width: 400px;
    width: 50vw;
}
.popup-panel-full {
    width: 85vw;
}
.popup-panel-full .popup-navigation-bottom {
    display: none;
}
.popup-panel-full .popup.content {
    display: flex;
    flex: 1 1 auto;
}
.popup-panel-full .popup.content > * {
    margin: 0;
    border: none;
    padding: 0 0.5rem 0 0;
}
.popup-panel-full .popup-content > iframe {
    border: none;
    width: 100%;
    min-height: 100%;
    flex: 1 1 auto;
}

.popup-content-main img,
.popup-content-marginal img {
    max-width: 100%;
    height: auto;
}

/* Accordion */
.popup-content .ui-accordion {
    list-style: none;
}
.popup-content .ui-accordion > li.ui-accordion-header {
    position: relative;
}
.popup-content .ui-accordion > li.ui-accordion-header::before {
    display: block;
    position: absolute;
    left: -1em;
    top: 0.25em;
    width: 1em;
    height: 1em;
    content: "\f054";
    font-family: var(--icon-font);
    font-weight: 900;
    padding-right: 0.5em;
    transition: transform 0.3s;
    transform-origin: 0.3em 0.5em;
    font-size: inherit;
}
.popup-content .ui-accordion > li.ui-accordion-header-active::before {
    transform: rotate(90deg);
}

/********************
 * External Content *
 ********************/

.popup .external-frame {
    margin-top: 1rem;
}
.popup .external-frame h2, h3, h4, h5, h6 {
    margin-top: 0.5em;
}

/* Learn365 API */

.popup *[data-external-provider="lms365"] h2 {
    font-size: 1.8em;
}

.popup *[data-external-provider="lms365"] .course-description {
    font-style: italic;
}

.popup *[data-external-provider="lms365"] .course-profile {
    display: flex;
}
.popup *[data-external-provider="lms365"] .course-profile .course-image {
    flex: 0 0 auto;
    width: 33%;
    margin-right: 1em;
}
.popup *[data-external-provider="lms365"] .course-profile .additional-course-info {
    flex: 1 1 auto;
}

.popup *[data-external-provider="lms365"] img {
    width: 100%;
    height: auto;
}

.popup *[data-external-provider="lms365"] .main-url-button {
    border: 2px solid black;
    background-color: black;
    color: white;
    padding: 16px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    margin: 2em 0 1em 0;
    transition-duration: 0.4s;
    cursor: pointer;
    border-radius: 7px;
}
.popup *[data-external-provider="lms365"] .main-url-button:hover {
  background-color: white;
  color: black;
}

/**********
 * Search *
 **********/

.search-button,
.toc-button {
    display: flex;
    width: var(--map-button-size);
    height: var(--map-button-size);
    color: var(--map-controls-color-fg);
    background: var(--map-controls-color-bg);
    border-radius: var(--map-button-radius);
    -webkit-backdrop-filter: blur(var(--map-controls-blur));
            backdrop-filter: blur(var(--map-controls-blur));
    position: absolute;
    opacity: 1;
    top: calc(var(--map-padding-top) + var(--map-controls-margin-top));
    font-size: 16pt;
    cursor: pointer;
    transition: background 0.3s, color 0.4s;
    align-items: center;
    justify-content: center;
}

.search-button,
.toc-button {
    left: var(--map-controls-margin-left);
}

.toc-button + .search-button,
.toc-box + .search-box.dropped .search-button-inner {
    left: calc(var(--map-controls-margin-left) + var(--map-button-size) + 5 * var(--map-button-margin));
}

.search-button > *,
.toc-button > * {
    display: block !important;
}

.dropped.search-button,
.dropped.toc-button {
    opacity: 0;
    pointer-events: none;
}

.search-box,
.toc-box {
    font-family: "Fakt Pro", Helvetica, Arial, sans-serif;
    width: 50%;
    height: calc(100% - var(--map-padding-top));
    position: absolute;
    overflow-x: auto;
    left: 0;
    top: var(--map-padding-top);
    color: white;
    background: rgba(23, 23, 23, 0.9);
    box-sizing: border-box;
    padding: 5rem 2rem;
    opacity: 0;
    cursor: default;
    pointer-events: none;
    transition: opacity 0.3s;
    -webkit-backdrop-filter: blur(var(--map-controls-blur));
            backdrop-filter: blur(var(--map-controls-blur));
}

.dropped.search-box,
.dropped.toc-box {
    pointer-events: auto;
    opacity: 1;
    z-index: 1;
}

.search-layout {
}

.search-form {
    margin-bottom: 10px;
    position: relative;
}

.search-form label {
    display: flex;
    width: 100%;
    border-bottom: 4px solid white;
}
.search-reset {
    flex: 0 0 auto;
    text-decoration: none;
}

.search-button-inner,
.toc-button-inner,
.map-button {
    display: none;
}

.dropped .search-button-inner,
.dropped .toc-button-inner,
.dropped .map-button  {
    display: flex;
    width: var(--map-button-size);
    height: var(--map-button-size);
    color: var(--map-controls-color-fg-inner);
    border-radius: var(--map-button-size);
    position: absolute;
    top: var(--map-controls-margin-top);
    pointer-events: auto;
    font-size: 16pt;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.dropped .search-button-inner,
.dropped .toc-button-inner {
    left: var(--map-controls-margin-left);
}
.dropped .map-button {
    right: 1.5rem;
}


.search-field {
    flex: 1 1 auto;
    text-transform: uppercase;
    font-size: 18pt;
    font-weight: 200;
    color: #9d9d9d;
    letter-spacing: 2px;
    height: 2rem;
    vertical-align: middle;
    outline: none;
    border: 0;
    padding: 0 0 8px 8px !important;
}

.search-sub-field {
    flex: 1 1 auto;
    font-size: 16pt;
    font-style: italic;
    font-weight: 100;
    color: #9d9d9d;
    height: 3rem;
    vertical-align: middle;
    outline: none;
    border: 0;
    padding: 0 5px !important;
}

.search-field-label i.fa {
    width: 30px;
    min-width: 30px;
    margin: 2px 5px;
    color: #fff;
    font-size: 20pt;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.search-form .search-sub-field-label {
    border-bottom-width: 1px;
    padding-top:2px;
}
.search-sub-field-label span {
    color: #fff;
    font-size: 14pt;
    line-height: 3rem;
    margin: 2px 5px;
    min-width: 35px;
}

.search-subfields {
    display: none;
}
.search-form.dropped .search-subfields {
    border-bottom: white solid 1px;
    display: block;
    padding-bottom: 2px;
}

.search-form .ui-autocomplete {
    background-color: white;
    color: black;
    font-size: 0.6em;
    line-height: 1.5em;
    list-style: none;
    opacity: 0.9;
    padding-left: 49px;
    width: auto !important;
}
.ui-autocomplete--search-field {
    text-transform: uppercase;
}

.search-form input[type='submit'] {
    display: none;
}

.search-area {
}

.search-headline,
.toc-headline {
    font-weight: 500;
    font-size: 18pt;
    margin-bottom: 20px;
}

.search-filters > .search-result-message {
    font-size: 14pt;
    font-weight: normal;
}
.search-filters .js-list-toggle:before {
    font-size: inherit;
    margin: 0;
    margin-left: 5px;
    min-width: 25px;
    width: 25px;
}
.search-filters.list-wrapper.dropped ul {
    margin: 5px 0;
}

.search-filter {
    font-weight: 200;
}
.search-filter:hover {
    cursor: pointer;
    text-decoration: underline;
}
.search-filter.active {
    font-weight: 500;
    color: #04E0D7;
}
.search-filters.list-wrapper.dropped ul .search-filter {
    font-size: 14pt;
    margin-bottom: 5px;
    padding-left: 30px;
}

.list-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 20px;
}

.js-list-toggle:before {
    content: '\f054';
    width: 30px;
    min-width: 30px;
    margin-right: 20px;
    color: #fff;
    line-height: 1;
    font-weight: 900;
    font-family: var(--icon-font);
    font-size: 20pt;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.dropped > .js-list-toggle:before {
    content: '\f078'
}

.list-wrapper > p {
    -webkit-user-select: none;
       -moz-user-select: none;
            -ms-user-select: none;
        user-select: none;
    font-weight: normal;
    font-size: 16pt;
    color: #fff;
    cursor: pointer;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.list-wrapper > p:hover span {
    text-decoration: underline;
}

.list-wrapper > p:before {
    text-decoration: none;
}

.list-wrapper ul {
    overflow: hidden;
    width: 100%;
    max-height: 0;
    margin: 0;
    padding: 0;
    margin-left: 30px;
    list-style: none;
    font-size: initial;
}

.list-wrapper.dropped ul {
    max-height: 100%;
    padding: 0;
}

.list-wrapper li {
    margin-top: 0.75em;
}

.list-wrapper > ul {
    margin-left: 50px;
}

.list-wrapper:first-child .toc-item-header,
.list-wrapper:first-child .js-list-toggle:before {
    font-size: 20pt;
}
.list-wrapper:not(:first-child) .toc-item-header,
.list-wrapper:not(:first-child) .js-list-toggle:before {
    font-size: 14pt;
}

.list-wrapper > ul > li > a .toc-item-title,
.list-wrapper ul.glossary .toc-item-title {
    font-weight: bold;
}

.list-wrapper .toc-item-subhead {
    display: flex;
    flex-direction: column;
}
.list-wrapper ul:not(.glossary) .toc-item-subhead {
    font-weight: bold;
    padding-bottom: 0.75em;
    border-bottom: 1px solid white;
}
.toc-item-subhead > * {
    flex: 1 1 auto;
}
.toc-item-subhead > :last-child {
    flex: 0 0 auto;
}
.list-wrapper ul.references ul {
    margin-left: 0;
}
.list-wrapper ul.glossary .toc-item-subhead a,
.list-wrapper ul.references ul a {
    text-decoration: underline;
}
.list-wrapper ul.glossary .toc-item-subhead p,
.list-wrapper li > p {
    margin-bottom: 0.5em;
}

.search-result-message {
    font-size: 12pt;
    font-weight: 200;
    line-height: 18pt;
}
.search-result-message--no-results {
    font-weight: 200;
}

.search-area > ul {
    margin: 0;
    padding: 0;
}

.search-area > ul li {
    margin-bottom: 12px;
    list-style-type: none;
    font-size: initial;
}

.search-area > ul li:before {
    content: '';
    display: block;
    width: 80px;
    height: 1px;
    margin: 20px 0;
    background: #686467;
}

.search-area ul li:last-of-type {
    margin-bottom: 0;
}

.search-area ul li a {
    font-weight: 200;
    font-size: 12pt;
    line-height: 18pt;
    display: inline-block;
    color: #ffffff;
    text-decoration: none;
}

.search-area ul li a:hover {
    color: white;
    text-decoration: underline;
}

.search-area > ul a.visited {
    color: #9A9899;
}

.search-area ul li a span {
    font-weight: normal;
    color: #04E0D7;
    margin-right: 5px;
}
.search-area ul li a span:after {
    content:':'
}
.search-area ul li a:hover span {
    color: #04E0D7;
    -webkit-text-decoration-color: #04E0D7;
    text-decoration-color: #04E0D7;
}

/* Only underline headlines in Table of Contents */
.toc-content li a {
    text-decoration: none;
}
.toc-content li a strong {
    text-decoration: underline;
}

@media only screen and (max-width: 1024px) {

    .search-box,
    .toc-box {
        padding: 5rem 2rem;
    }

    .list-wrapper {
        position: relative;
    }

    .list-wrapper > p:hover span {
        text-decoration: none;
    }

    .list-wrapper ul li {
        padding-left: 0;
    }
}

@media only screen and (max-width: 767px) {
    /* search panel styles */
    .search-box,
    .toc-box {
        width: 100%;
    }
}

/******************
 * Preview notice *
 ******************/

.preview-notice {
    position: absolute;
    top: var(--map-padding-top);
    width: 100%;
    padding: 0 calc(4 * var(--map-button-size));
    font-family: var(--map-controls-font-family);
    font-size: 15px;
    text-align: center;
    pointer-events: none;
    box-sizing: border-box;
}
.preview-notice p {
    width: -webkit-fit-content;
    width:    -moz-fit-content;
    width:         fit-content;
    padding: 1.5em 1em 1.5em 3em;
    margin: 0 auto;
    background: var(--map-controls-color-bg);
    color: var(--map-controls-color-fg);
    text-align: left;
    border-bottom-left-radius: var(--map-button-radius);
    border-bottom-right-radius: var(--map-button-radius);
    -webkit-backdrop-filter: blur(var(--map-controls-blur));
            backdrop-filter: blur(var(--map-controls-blur));
}
.preview-notice i {
    display: block;
    position: absolute;
    margin-left: -2em;
}

/**********************
 * Language selection *
 **********************/

.language-selection {
    position: absolute;
    right: var(--map-controls-margin-right);
    top: calc(var(--map-controls-margin-top) + var(--map-padding-top));
    display: flex;
    flex-direction: row;
    width: auto;
    height: var(--map-button-size);
}

.language-button,
.language-panel {
    box-sizing: border-box;
    display: none;
    flex: 0 0 auto;
    min-width: var(--map-button-size);
    height: var(--map-button-size);
    color: var(--map-controls-color-fg);
    background: var(--map-controls-color-bg);
    border-radius: var(--map-button-radius);
    -webkit-backdrop-filter: blur(var(--map-controls-blur));
            backdrop-filter: blur(var(--map-controls-blur));
    opacity: 1;
    font-family: var(--map-controls-font-family);
    font-weight: bold;
    font-size: 18px;
    text-transform: uppercase;
    cursor: pointer;
}
.language-button {
    padding: 0 var(--map-button-margin);
}
.language-panel {
    display: flex;
    flex-direction: row;
    width: auto;
    margin-right: var(--map-button-margin);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -99;
    align-items: center;
    align-content: center;
}
.language-panel.dropped {
    opacity: 1;
    z-index: 1;
}

.language-item {
    color: var(--map-controls-color-fg);
    border: none;
    background: transparent;
    font-size: 18px;
    text-transform: uppercase;
    height: var(--map-button-size);
    min-width: var(--map-button-size);
    padding: 0 var(--map-button-margin);
    text-decoration: none;
}
.language-territory {
    font-size: 0.67em;
    padding-bottom: 0.33em;
    padding-left: 0.1em;
}

.language-button,
.language-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

/**********
 * Share *
 **********/

.share-button,
.share-panel {
    display: none;
    width: var(--map-button-size);
    height: var(--map-button-size);
    color: var(--map-controls-color-fg);
    background: var(--map-controls-color-bg);
    border-radius: var(--map-button-radius);
    -webkit-backdrop-filter: blur(var(--map-controls-blur));
            backdrop-filter: blur(var(--map-controls-blur));
    position: absolute;
    opacity: 1;
    left: var(--map-controls-margin-left);
    bottom: calc(var(--map-controls-margin-bottom) + var(--map-padding-bottom));
    font-size: 16pt;
    cursor: pointer;
}
.share-panel {
    display: flex;
    flex-direction: column;
    bottom: calc(var(--map-controls-margin-bottom) + var(--map-padding-bottom) + var(--map-button-size) + var(--map-button-margin));
    height: auto;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -99;
    align-items: center;
    align-content: center;
}
.share-panel.dropped {
    opacity: 1;
    z-index: 1;
}

.share-button i {
    display: block;
}

.share-panel .social-share-btn {
    border-radius: 50%;
    width: calc(0.8 * var(--map-button-size));
    height: calc(0.8 * var(--map-button-size));
    margin-top: var(--map-button-margin);
    background: var(--map-controls-color-fg);
}
.share-panel .social-share-btn i {
    color: var(--map-controls-color-bg);
    font-size: 1rem;
}

.share-button,
.social-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
}

/******************
 * Cookie Consent *
 ******************/

.cc-button {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    bottom: calc(var(--map-controls-margin-bottom) - var(--map-button-size) - 2*var(--map-button-margin));
    left: var(--map-controls-margin-left);
    width: var(--map-button-size);
    height: var(--map-button-size);
    color: var(--map-controls-color-fg);
    background: var(--map-controls-color-bg);
    border-radius: var(--map-button-radius);
    -webkit-backdrop-filter: blur(var(--map-controls-blur));
            backdrop-filter: blur(var(--map-controls-blur));
    cursor: pointer;
}
.cc-button i {
    display: block;
}

.external-content-placeholder {
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-height: 180px;
    padding: 1rem;
    background: #f5f5f5;
    color: #444;
    border: 1px solid #999;
    border-radius: 5px;
    text-align: center;
    align-content: center;
    font-style: italic;
}
.privacy-settings-button {
    font: inherit;
    display: inline-block;
    text-align: center;
    background: transparent;
    border: none;
    text-decoration: underline;
    color: inherit;
    padding: 0.25em;
    cursor: pointer;
}

/****************
 * Highlighting *
 ****************/
.map-model .tx-exclude {
    transform-origin: 0 0;
}
.highlight-backdrop {
    transition: opacity 0.3s;
    opacity: 0;
    position: absolute;
    left: -33%;
    top: -33%;
    width: 300vw;
    height: 300vh;
    transform-origin: 0 0;
    background: black;
    z-index: 2;
    pointer-events: none;
}
.highlight-backdrop--active {
    opacity: 0.5;
}
.map-model > .highlighted {
    z-index: 3;
}
.backdrop--dark .node.highlighted .title.top,
.backdrop--dark .node.highlighted .title.right,
.backdrop--dark .node.highlighted .title.bottom,
.backdrop--dark .node.highlighted .title.left,
.backdrop--light .node.highlighted.bg--transparent.has-no-icon .title {
    color: white !important;
}
.backdrop--light .node.highlighted .title.top,
.backdrop--light .node.highlighted .title.right,
.backdrop--light .node.highlighted .title.bottom,
.backdrop--light .node.highlighted .title.left,
.backdrop--light .node.highlighted.bg--transparent.has-no-icon .title {
    color: black !important;
}

/************
 * Lightbox *
 ************/

.lightbox {
  /*overflow: hidden;*/
}
.lightbox__bg {
  position: absolute;
  margin: 0;
  padding: 0;
  left: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(21, 21, 21, 0.9);
  color: #f0f0f0;
  overflow: hidden;
  z-index: 100;
}
.lightbox__container {
  display: flex;
  align-content: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  overflow: auto;
}
.lightbox__close {
  position: absolute;
  right: 0;
  top: 0;
  text-align: center;
}
.lightbox__close a {
  display: block;
  width: 40px;
  height: 40px;
  text-decoration: none;
  margin: auto;
  font-size: 40px;
}

/*****************
 * Media Queries *
 *****************/

@media only screen and (max-width: 600px), only screen and (orientation: portrait) {
    .popup-panel {
        width: calc(100% - var(--map-padding-right) - var(--popup-mobile-gap));
        height: calc(100% - var(--map-padding-top) - var(--map-padding-bottom));
        margin-left: 100%;
        opacity: 1;
        flex-direction: column;
        transition: margin-left 0.3s;
    }
    .popup-panel-large,
    .popup-panel-full {
        min-width: auto;
    }
    .popup-panel.active {
        margin-left: var(--popup-mobile-gap);
    }
    .popup .popup-navigation-top {
        display: block;
    }
}
@media only screen and (max-width: 480px), only screen and (max-height: 480px) {
    :root {
        --map-controls-margin-top: 10px;
        --map-controls-margin-right: 10px;
        --map-controls-margin-bottom: 35px;
        --map-controls-margin-left: 10px;

        --map-button-size: 25px;
        --map-button-icon-size: 20px;
    }

    .popup-large,
    .popup-medium,
    .popup-small {
        /* aspect-ratio: auto; */
        width: calc(100vw - var(--map-padding-right));
        /* The height of detached popups is set programmatically in
        kontextlab.map-popup.js */
    }

    .popup .content {
        font-size: 10pt;
    }
    .popup-panel .popup-content > *,
    .popup-panel .popup-navigation-bottom > * {
      padding: 0.2rem 1rem;
    }
    .popup-panel .popup-content > h1 {
        font-size: 1.75em;
    }

    .popup-panel-full .popup-content {
        padding-bottom: 0.5rem;
    }
    .popup-panel-full > section > main > *,
    .popup-panel-full .popup-navigation-bottom > * {
        padding: 0;
    }

    .popup-content-main {
      font-size: 0.9em;
    }

    #attribution {
        font-size: 10px;
        bottom: calc(var(--map-padding-bottom) + 5px);
    }

    .zoom-range {
        display: flex;
        flex-direction: column;
        right: 0;
        bottom: calc(var(--map-padding-bottom) + var(--map-controls-margin-bottom));
        height: calc(100vh - var(--map-padding-top) - var(--map-padding-bottom) - var(--map-controls-margin-top) - var(--map-controls-margin-bottom));
        width: 10px;
        justify-content: center;
    }
    .zoom-range > * {
        width: 10px;
        height: 20px;
        font-size: 7px;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }
    .language-button,
    .language-item {
        font-size: 10px;
    }
    .share-button,
    .share-panel,
    .search-button,
    .share-button,
    .share-panel,
    .toc-button,
    .zoom-controls,
    .dropped .map-button,
    .dropped .search-button-inner,
    .dropped .toc-button-inner {
        font-size: 14px;
    }
}
