/* Element assets. Generated by bin/build-element-theme.py. */
.dungeon-atlas {
    --atlas-rule: #463d2b;
    --atlas-bronze: #dbc198;
    --atlas-muted: #c9baa3;
    --atlas-focus: #f7d798;
}

.dungeon-atlas ::selection {
    background: #65412c;
    color: #fff3d9;
}

.dungeon-atlas :is(a, select, summary):focus-visible {
    outline: 2px solid var(--atlas-focus);
    outline-offset: 3px;
}

.dungeon-atlas-hero {
    position: relative;
    display: grid;
    align-content: center;
    isolation: isolate;
    min-height: clamp(240px, 24vw, 330px);
    overflow: hidden;
    margin-block: 22px 26px;
    padding: clamp(24px, 4.1vw, 60px);
    border: 1px solid #6e5738;
    border-radius: 4px;
    background-color: #101213;
}

.dungeon-atlas-hero-art,
.dungeon-atlas-hero::before {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.dungeon-atlas-hero-art {
    z-index: -2;
    object-fit: cover;
    object-position: center 47%;
}

.dungeon-atlas-hero::before {
    z-index: -1;
    content: "";
    background: linear-gradient(90deg, #0c100f 1%, rgb(12 16 15 / 93%) 24%, rgb(12 16 15 / 69%) 46%, transparent 77%);
}

.dungeon-atlas-hero h1 {
    max-width: 19ch;
    margin: 0;
    color: #f4e3c6;
    font-size: clamp(33px, 4.05vw, 58px);
    line-height: 1.05;
    text-wrap: balance;
}

.dungeon-atlas-hero p {
    max-width: 47ch;
    margin: 14px 0 0;
    color: #e0d2ba;
    font-size: clamp(15px, 1.3vw, 17px);
    line-height: 1.5;
    text-wrap: pretty;
}

.dungeon-atlas #atlas-directory > .map-extension-heading {
    margin-bottom: 17px;
}

.dungeon-atlas #atlas-directory [data-atlas-controls] .map-extension-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr) auto;
    align-items: end;
    width: min(100%, 900px);
    margin-top: 0;
}

.dungeon-atlas #atlas-directory select {
    min-height: 44px;
    color-scheme: dark;
}

.dungeon-atlas #atlas-directory [data-atlas-open] {
    display: grid;
    min-height: 44px;
    place-items: center;
    padding-inline: clamp(14px, 2vw, 26px);
    border-color: #a77851;
    background: linear-gradient(#612b28, #411a19);
    color: #ffedcf !important;
    text-align: center;
}

.dungeon-atlas #atlas-directory [data-atlas-open]:hover {
    border-color: #c69a69;
    background: #74332b;
}

.dungeon-atlas #atlas-directory nav {
    gap: 8px 22px;
    margin-top: 13px;
}

.dungeon-atlas #atlas-directory nav a,
.dungeon-atlas #atlas-directory summary {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
}

.dungeon-atlas #atlas-directory summary {
    display: list-item;
    color: var(--atlas-bronze);
    cursor: pointer;
}

.dungeon-atlas #atlas-directory summary:focus-visible,
.dungeon-atlas #atlas-directory summary:hover {
    color: #fff0cd;
}

.dungeon-atlas-notes {
    margin: 38px 0;
}

.dungeon-atlas-notes h2 {
    text-wrap: balance;
}

.dungeon-atlas-notes-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(20px, 4vw, 56px);
}

.dungeon-atlas-note {
    display: grid;
    grid-template-columns: clamp(65px, 8.4vw, 98px) minmax(0, 1fr);
    align-items: start;
    gap: clamp(13px, 2vw, 25px);
    min-width: 0;
    border-top: 1px solid var(--atlas-rule);
    padding-block: 18px;
}

.dungeon-atlas-portrait {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #665439;
    border-radius: 3px;
    background: #181811;
}

.dungeon-atlas-note h3 {
    margin: 0 0 5px;
    color: #ebd6ac;
    font-size: clamp(19px, 1.8vw, 26px);
    line-height: 1.15;
    text-wrap: balance;
}

.dungeon-atlas-note ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.dungeon-atlas-note li + li {
    border-top: 1px solid #332e23;
}

.dungeon-atlas-note a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3px 10px;
    min-height: 44px;
    padding: 8px 0;
    color: var(--atlas-bronze);
    line-height: 1.3;
    text-decoration: none;
}

.dungeon-atlas-note a span {
    font-weight: 600;
}

.dungeon-atlas-note a:is(:hover, :focus-visible) span {
    color: #fff0cc;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.dungeon-atlas-note a small {
    grid-column: 1;
    color: var(--atlas-muted);
    font-size: 14px;
}

.dungeon-atlas-note a .icon {
    grid-area: 1 / 2 / span 2;
    align-self: center;
    width: 14px;
    height: 14px;
}

.dungeon-atlas-map-steps {
    max-width: 76ch;
    margin: 0;
    padding-inline-start: 25px;
    color: var(--atlas-muted);
    line-height: 1.55;
    text-wrap: pretty;
}

.dungeon-atlas-map-steps li {
    padding: 9px 0 9px 4px;
    border-bottom: 1px solid var(--atlas-rule);
}

.dungeon-atlas-map-steps li::marker {
    color: var(--atlas-bronze);
    font-weight: 600;
}

@media (max-width: 740px) {
    .dungeon-atlas-notes-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .dungeon-atlas-hero {
        min-height: 215px;
        margin-block: 16px 22px;
        padding: 22px 17px;
    }

    .dungeon-atlas-hero-art {
        object-position: 61% center;
    }

    .dungeon-atlas-hero::before {
        background: linear-gradient(90deg, rgb(12 16 15 / 96%), rgb(12 16 15 / 76%) 62%, rgb(12 16 15 / 35%));
    }

    .dungeon-atlas-hero h1 {
        font-size: clamp(29px, 7.7vw, 38px);
    }

    .dungeon-atlas #atlas-directory [data-atlas-controls] .map-extension-actions {
        grid-template-columns: minmax(0, 1fr);
        gap: 11px;
    }

    .dungeon-atlas #atlas-directory nav {
        gap: 0 18px;
    }

    .dungeon-atlas-notes {
        margin-block: 30px;
    }
}
