/* Bronze mounts and enamel colors follow the four fields of the Element emblem. */
body.element-site {
    --artifact-gold: #c29a65;
    --artifact-ivory: #f3e3c7;
    --artifact-outline: color-mix(in srgb, var(--artifact-gold) 51%, transparent);
    --fortress-border-soft: rgb(194 154 101 / 28%);
    --fortress-border-bright: rgb(220 178 112 / 63%);
    --artifact-fire: url('../help/combat-moves-20261124/icon-f3bc69b68bee45ab.webp');
    --artifact-earth: url('../help/combat-moves-20261124/icon-83534c1652a935ef.webp');
    --artifact-air: url('../help/combat-moves-20261124/icon-94176a5d6efa8dd9.webp');
    --artifact-water: url('../help/combat-moves-20261124/icon-3f41d752aea2c824.webp');
    --artifact-symbol: var(--artifact-earth);
}

body.element-site[data-page-facet="fire"],
.element-site [data-facet="fire"] {
    --artifact-symbol: var(--artifact-fire);
    --artifact-enamel: #8a4330;
}

body.element-site[data-page-facet="earth"],
.element-site [data-facet="earth"] {
    --artifact-symbol: var(--artifact-earth);
    --artifact-enamel: #606939;
}

body.element-site[data-page-facet="air"],
.element-site [data-facet="air"] {
    --artifact-symbol: var(--artifact-air);
    --artifact-enamel: #737f87;
}

body.element-site[data-page-facet="water"],
.element-site [data-facet="water"] {
    --artifact-symbol: var(--artifact-water);
    --artifact-enamel: #3b6473;
}

body.element-site .element-glyph {
    background: var(--artifact-symbol) center / contain no-repeat;
}

body.element-site .element-primary-nav :is(a, summary) {
    min-height: 44px;
}

body.element-site :is(.element-nav-tab, .element-disclosure-full > summary, .element-nav-panel, .element-quicklinks, .tools-navigation) .element-glyph {
    flex: none;
    width: 36px;
    height: 26px;
}

body.element-site .element-nav-panel .element-glyph { width: 39px; height: 29px; }

body.element-site .element-quicklinks a[aria-current] {
    background: color-mix(in srgb, var(--artifact-enamel) 34%, var(--fortress-recess));
}

body.element-site.page-home #content .home-tools .fortress-heading-icon {
    width: clamp(37px, 3.25vw, 47px);
    height: clamp(25px, 2.1vw, 31px);
}

.element-site #content :is(.element-community-title, .safe-tool-hero, .charms-hero, .power-title, .spirit-header, .knowledge-intro) h1,
.element-site.page-help #content :is(.element-library .catalog-heading, .dungeon-atlas-hero, .armory-hero) h1 {
    font-size: clamp(1.33rem, 2.7vw, 2.22rem);
    color: var(--artifact-ivory);
    letter-spacing: -.014em;
    line-height: 1.14;
    overflow-wrap: anywhere;
}

.element-site #content :is(.power-title, .spirit-header) h1 {
    font-size: clamp(1.35rem, 2.43vw, 2rem);
}

.element-site #content :is(.catalog-heading, .dungeon-atlas-hero, .armory-hero:not(.move-detail-hero), .charms-hero, .spirit-header) h1 {
    display: flex;
    align-items: center;
    gap: clamp(8px, 1vw, 13px);
}

.element-site #content :is(.catalog-heading, .dungeon-atlas-hero, .armory-hero:not(.move-detail-hero), .charms-hero, .spirit-header) h1::before {
    --artifact-size: clamp(48px, 5vw, 72px);
    flex: none;
    inline-size: var(--artifact-size);
    block-size: var(--artifact-size);
    border: 1px solid var(--artifact-outline);
    border-radius: 7px;
    background: var(--artifact-symbol) center / 87% no-repeat,
        linear-gradient(145deg, color-mix(in srgb, var(--artifact-enamel, #606939) 38%, #192028), #111a22);
    content: "";
}

.element-site #content .charms-hero h1::before { --artifact-symbol: url('../help/shop-lossless-20261106/189182c48e7e7f4f7026ffc7.webp'); }
.element-site #content .spirit-header h1::before { --artifact-symbol: url('../help/map-archive-20261107/1048_darkoko.gif'); }

.element-site #content .safe-tool .safe-hero-lock,
.element-site #content .power-title-group > img {
    flex: none;
    display: grid;
    place-items: center;
    inline-size: clamp(55px, 5.7vw, 82px);
    block-size: clamp(55px, 5.7vw, 82px);
    border: 1px solid var(--artifact-outline);
    border-radius: 8px;
    background: linear-gradient(145deg, color-mix(in srgb, var(--artifact-enamel, #606939) 38%, #192028), #111a22);
}

.element-site #content .safe-tool .safe-hero-lock {
    background: url('../help/additions-20261105/lootchest_aa_lootbox.gif') center / 88% no-repeat,
        linear-gradient(145deg, color-mix(in srgb, var(--artifact-enamel, #606939) 38%, #192028), #111a22);
}

.element-site #content .safe-tool .safe-hero-lock .icon { visibility: hidden; }
.element-site #content .power-title-group > img { padding: 4px; object-fit: contain; }

.element-site.page-help #content .help-catalog .catalog-item-image {
    --catalog-icon-size: clamp(49px, 4vw, 57px);
    flex: 0 0 var(--catalog-icon-size);
    inline-size: var(--catalog-icon-size);
    block-size: var(--catalog-icon-size);
}

.element-site.page-help #content .help-catalog .catalog-item-image img {
    inline-size: 100%;
    block-size: 100%;
    max-inline-size: 100%;
    max-block-size: 100%;
    object-fit: contain;
}

.element-site.page-help #content .armory-grid > .armory-card > .armory-image { --catalog-icon-size: clamp(78px, 6vw, 86px); }
.element-site.page-help #content .armory-extra-card > .armory-image { --catalog-icon-size: clamp(55px, 4.9vw, 70px); }

.element-site.page-help #content :is(.armory-grid > .armory-card, .armory-extra-card) > .armory-image {
    inline-size: var(--catalog-icon-size);
    block-size: var(--catalog-icon-size);
}

.element-site.page-help #content :is(.armory-grid > .armory-card, .armory-extra-card) > .armory-image img {
    inline-size: 100%;
    block-size: 100%;
    object-fit: contain;
}

.element-site.page-help #content .move-catalog-item {
    --move-icon-size: clamp(50px, 4.5vw, 64px);
}

.element-site.page-help #content .move-catalog-item .move-art {
    inline-size: var(--move-icon-size);
    block-size: var(--move-icon-size);
}

.element-site.page-help #content .move-catalog-item .move-art img {
    inline-size: 100%;
    block-size: 100%;
    object-fit: contain;
}

.element-site.page-help #content .move-catalog-item p {
    margin-inline-start: calc(var(--move-icon-size) + 17px);
}

@media (max-width: 760px) {
    body.element-site .element-primary-nav :is(.element-nav-tab, .element-disclosure-full > summary) .element-glyph,
    body.element-site :is(.element-quicklinks, .tools-navigation) .element-glyph {
        width: clamp(23px, 6.6vw, 28px);
        height: 20px;
    }
}

@media (max-width: 365px) {
    body.element-site .element-primary-nav .element-disclosure-full > summary { grid-template-rows: 19px auto; }

    body.element-site .element-primary-nav :is(.element-nav-tab, .element-disclosure-full > summary) .element-glyph {
        width: 26px;
        height: 19px;
    }
}

@media (forced-colors: active) {
    body.element-site .element-glyph { background: none; }
    body.element-site .element-glyph use,
    .element-site #content .safe-tool .safe-hero-lock .icon { visibility: visible; }
}
