:root:root .wiki-sidebar,
:root:root .wiki-content {
    background: linear-gradient(180deg, rgba(34, 10, 13, 0.8), rgba(13, 5, 7, 0.88));
    border: 1px solid rgba(217, 188, 129, 0.32);
    border-radius: 8px;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.03),
        inset 0 1px 0 rgba(217, 188, 129, 0.16),
        0 14px 34px -16px rgba(0, 0, 0, 0.9);
}

:root:root .wiki-sidebar__header {
    border-bottom: 1px solid rgba(217, 188, 129, 0.2);
}

:root:root .wiki-sidebar__title {
    font-family: var(--font-display);
    letter-spacing: 0.1em;
    color: var(--gold-soft);
}

:root:root .wiki-menu {
    padding: 14px 12px;
}

:root:root .wiki-menu__list {
    gap: 8px;
}

:root:root .wiki-menu__button {
    min-height: 46px;
    padding: 0 16px 0 14px;
    background: none;
    border: 0 solid transparent;
    border-image-source: url("../images/btn-menu.webp");
    border-image-slice: 25 60 25 60 fill;
    border-image-width: 14px 26px 14px 26px;
    border-image-outset: 0;
    border-image-repeat: stretch;
    border-radius: 0;
    color: #f4e9e6;
    font-family: var(--font-display);
    font-size: 0.98rem;
    letter-spacing: 0.04em;
    text-transform: none;
    box-shadow: none;
}

:root:root .wiki-menu__button:hover {
    background: none;
    border-image-source: url("../images/btn-menu-hover.webp");
    color: #fff;
}

:root:root .wiki-menu__button.active,
:root:root .wiki-menu__button.open {
    background: none;
    border-color: transparent;
    border-image-source: url("../images/btn-menu-on.webp");
    color: #fff;
}

:root:root .wiki-menu__button.active::before {
    display: none;
}

:root:root .wiki-menu__button-icon {
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: transparent;
    box-shadow: 0 0 0 1px rgba(217, 188, 129, 0.35);
    overflow: hidden;
}

:root:root .wiki-menu__button-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

:root:root .wiki-menu__button-title {
    color: inherit;
}

:root:root .wiki-menu__button-arrow,
:root:root .wiki-submenu__arrow {
    color: var(--gold);
}

:root:root .wiki-submenu {
    border-left: 1px dashed rgba(217, 188, 129, 0.28);
}

:root:root .wiki-submenu__link {
    color: var(--stone-700);
    font-family: var(--font-body);
}

:root:root .wiki-submenu__link:hover {
    background: rgba(217, 188, 129, 0.08);
    color: #fff;
}

:root:root .wiki-submenu__link.active {
    background: rgba(217, 188, 129, 0.14);
    color: var(--gold-soft);
}

:root:root .wiki-submenu__bullet {
    border-color: rgba(217, 188, 129, 0.5);
}

:root:root .wiki-submenu__link.active .wiki-submenu__bullet {
    background: var(--gold);
    border-color: var(--gold);
}

:root:root .wiki-content__inner {
    padding: 26px 30px;
    color: var(--stone-800);
    font-family: var(--font-body);
    line-height: 1.7;
}

:root:root .wiki-content__inner h1,
:root:root .wiki-content__inner h2,
:root:root .wiki-content__inner h3,
:root:root .wiki-content__inner h4 {
    font-family: var(--font-display);
}

:root:root .wiki-content__inner > h1,
:root:root .wiki-content__inner > h2 {
    letter-spacing: 0.06em;
}

:root:root .wiki-content__inner a {
    color: var(--gold-soft);
    text-decoration-color: rgba(217, 188, 129, 0.4);
}

:root:root .wiki-content__inner img {
    border-radius: 8px;
}

:root:root .wiki-content__inner table {
    border-collapse: collapse;
    width: 100%;
}

:root:root .wiki-content__inner td,
:root:root .wiki-content__inner th {
    border: 1px solid rgba(217, 188, 129, 0.22);
    padding: 8px 12px;
}

:root:root .wiki-content__inner th {
    background: rgba(217, 188, 129, 0.1);
    color: var(--gold-soft);
}

:root:root .wiki-search__input {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.52), rgba(22, 7, 10, 0.62));
    border: 0;
    border-radius: 10px;
    box-shadow:
        inset 0 0 0 1px rgba(217, 188, 129, 0.22),
        inset 0 2px 8px rgba(0, 0, 0, 0.45);
    color: #fff;
}

:root:root .wiki-search__input:focus {
    box-shadow:
        inset 0 0 0 1px rgba(217, 188, 129, 0.65),
        0 0 0 3px rgba(217, 188, 129, 0.12);
}

:root:root .wiki-search__results {
    background: rgba(18, 8, 10, 0.97);
    border: 1px solid rgba(217, 188, 129, 0.3);
    border-radius: 10px;
}

:root:root .wiki-search__item:hover {
    background: rgba(217, 188, 129, 0.08);
}

:root:root .wiki-search__type {
    color: var(--gold);
    background: rgba(217, 188, 129, 0.1);
    border-color: rgba(217, 188, 129, 0.3);
}

:root:root .wiki-mobile-toggle {
    color: #fff;
    background: rgba(217, 188, 129, 0.1);
    border: 1px solid rgba(217, 188, 129, 0.3);
}

:root:root .wiki-spinner {
    border-color: rgba(217, 188, 129, 0.25);
    border-top-color: var(--gold);
}

:root:root .wiki-article {
    color: var(--stone-800);
    line-height: 1.7;
}

:root:root .wiki-article details {
    margin: 14px 0;
    background-color: rgba(31, 16, 18, 0.8);
    border: 1px solid rgba(217, 188, 129, 0.28);
    border-radius: 10px;
}

:root:root .wiki-article details summary {
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 22px 16px 54px !important;
    list-style: none !important;
    background: linear-gradient(180deg, rgba(217, 188, 129, 0.08), rgba(217, 188, 129, 0.02));
    color: var(--gold-soft);
    font-family: var(--font-display);
    text-shadow: none !important;
    cursor: pointer;
}

:root:root .wiki-article details summary::-webkit-details-marker {
    display: none;
}

:root:root .wiki-article details summary::before {
    content: "";
    position: absolute;
    left: 22px;
    top: 50%;
    width: 14px;
    height: 14px;
    margin: 0;
    background: var(--gold);
    -webkit-mask: var(--re-mask-chev) center / contain no-repeat;
    mask: var(--re-mask-chev) center / contain no-repeat;
    transform: translateY(-50%);
    transition: transform 0.18s ease;
}

:root:root .wiki-article details[open] summary::before {
    transform: translateY(-50%) rotate(90deg);
}

:root:root .wiki-article details summary:hover {
    background: linear-gradient(180deg, rgba(217, 188, 129, 0.14), rgba(217, 188, 129, 0.04));
}

:root:root .wiki-article details > :not(summary):not(div):not(img):not(figure) {
    margin-left: 22px !important;
    margin-right: 22px !important;
}

:root:root .wiki-article details > :not(summary):not(div):not(img):not(figure):first-of-type {
    margin-top: 18px;
}

:root:root .wiki-article details > div {
    margin: 0;
}

:root:root .wiki-article ul,
:root:root .wiki-article ol {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 14px 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

:root:root .wiki-article li {
    margin: 0 !important;
    list-style: none !important;
    text-align: left !important;
}

:root:root .wiki-article li:not([style*="background"]) {
    position: relative;
    padding-left: 22px;
}

:root:root .wiki-article li:not([style*="background"])::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 0.72em;
    width: 7px;
    height: 7px;
    background: var(--gold);
    border-radius: 50%;
    transform: translateY(-50%);
}

:root:root .wiki-article p:not([style*="text-align"]) {
    text-align: left !important;
    margin: 0 0 12px;
}

:root:root .wiki-article blockquote {
    margin: 18px 0 !important;
    padding: 14px 20px !important;
    border-left: 3px solid var(--gold) !important;
    background: rgba(31, 16, 18, 0.7) !important;
}

:root:root .wiki-article blockquote p {
    text-align: left !important;
    margin: 0;
}

:root:root .wiki-article hr {
    border: 0;
    height: 1px;
    margin: 24px 0;
    background: linear-gradient(90deg, transparent, rgba(217, 188, 129, 0.4), transparent);
}

:root:root .wiki-article figure.image,
:root:root .wiki-article figure {
    margin: 16px 0;
}

:root:root .wiki-article img {
    max-width: 100%;
    height: auto;
}

@media (min-width: 961px) {
    :root:root .wiki-sidebar {
        position: static;
        max-height: none;
        overflow: visible;
    }

    :root:root .wiki-menu {
        max-height: none;
        overflow: visible;
    }
}

@media (max-width: 960px) {
    :root:root .wiki-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        max-height: 100vh;
        overflow-y: auto;
        background: linear-gradient(180deg, rgba(34, 10, 13, 0.97), rgba(13, 5, 7, 0.98));
    }

    :root:root .wiki-menu {
        max-height: none;
        overflow: visible;
    }
}

:root:root .wiki-article blockquote > :first-child,
:root:root .wiki-article blockquote h1:first-child,
:root:root .wiki-article blockquote h2:first-child,
:root:root .wiki-article blockquote h3:first-child,
:root:root .wiki-article blockquote h4:first-child {
    margin-top: 0 !important;
}

:root:root .wiki-article blockquote > :last-child {
    margin-bottom: 0 !important;
}

:root:root .wiki-article blockquote h1,
:root:root .wiki-article blockquote h2,
:root:root .wiki-article blockquote h3,
:root:root .wiki-article blockquote h4,
:root:root .wiki-article blockquote h5,
:root:root .wiki-article blockquote h6 {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.35 !important;
}

:root:root .wiki-article h1,
:root:root .wiki-article h2,
:root:root .wiki-article h3,
:root:root .wiki-article h4 {
    line-height: 1.3;
    margin: 20px 0 10px;
}

:root:root .wiki-article > h1:first-child,
:root:root .wiki-article > h2:first-child,
:root:root .wiki-article > h3:first-child {
    margin-top: 0;
}

:root:root .wiki-article blockquote {
    min-height: 0 !important;
    height: auto !important;
    padding: 12px 18px !important;
}

:root:root .wiki-article details {
    margin: 10px 0;
    border-radius: 8px;
    background: rgba(31, 16, 18, 0.55);
    overflow: hidden;
}

:root:root .wiki-article details summary {
    justify-content: flex-start;
    min-height: 0;
    padding: 9px 16px 9px 40px !important;
    font-size: 0.92rem;
    line-height: 1.3;
}

:root:root .wiki-article details summary::before {
    left: 16px;
    width: 12px;
    height: 12px;
}

:root:root .wiki-article details[open] summary {
    border-bottom: 1px solid rgba(217, 188, 129, 0.2);
}

:root:root .wiki-article details > :not(summary):not(div):not(img):not(figure) {
    margin-left: 16px !important;
    margin-right: 16px !important;
}

:root:root .wiki-article details > img,
:root:root .wiki-article details > figure {
    display: block;
    margin: 12px auto;
}

:root:root .wiki-article hr {
    margin: 14px 0;
}

:root:root .wiki-article :is(span, p, li, div, a):has(> img:is([width="16"], [width="20"], [width="24"], [width="28"], [width="32"], [width="36"], [width="40"], [height="16"], [height="20"], [height="24"], [height="28"], [height="32"], [height="36"], [height="40"],[width="25"],[height="25"],[width="26"],[height="26"],[width="33"],[height="33"],[width="34"],[height="34"],[width="35"],[height="35"])) {
    display: flex;
    align-items: center;
    gap: 10px;
}

:root:root .wiki-article img:is([width="16"], [width="20"], [width="24"], [width="28"], [width="32"], [width="36"], [width="40"], [height="16"], [height="20"], [height="24"], [height="28"], [height="32"], [height="36"], [height="40"],[width="25"],[height="25"],[width="26"],[height="26"],[width="33"],[height="33"],[width="34"],[height="34"],[width="35"],[height="35"]) {
    flex: none;
    width: auto;
    height: auto;
    max-width: 40px;
    max-height: 40px;
    border-radius: 6px;
    vertical-align: middle;
}
