@font-face {
    font-family: "WELES Inter";
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url("/wp-content/plugins/weles-fit-app-code/assets/fonts/InterVariable.woff2") format("woff2");
}
#weles-constitution,
#weles-constitution-modal {
    --wf-bg: #0b0b0c;
    --wf-surface: #141619;
    --wf-raised: #1c2024;
    --wf-hover: #252a2f;
    --wf-line: #3a4046;
    --wf-border: #66707a;
    --wf-text: #f5f3ef;
    --wf-secondary: #b9bdc3;
    --wf-muted: #949ba4;
    --wf-gold: #d9ba83;
    --wf-gold-hover: #e7c99b;
    --wf-gold-press: #be9b61;
    --wf-focus: #f2d59c;
    --wf-ink: #131313;
}
#weles-constitution {
    box-sizing: border-box;
    max-width: 1280px;
    margin: 32px auto;
    padding: 32px;
    color: var(--wf-text);
    background: var(--wf-surface);
    border: 1px solid var(--wf-line);
    border-radius: 16px;
    box-shadow: none;
    font-family: "WELES Inter", Inter, Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
}
#weles-constitution *,
#weles-constitution *::before,
#weles-constitution *::after { box-sizing: border-box; }
#weles-constitution h1,
#weles-constitution h2,
#weles-constitution h3 {
    margin: 0 0 16px;
    color: var(--wf-text);
    font-weight: 600;
    letter-spacing: -0.02em;
}
#weles-constitution h1 { font-size: 40px; line-height: 48px; }
#weles-constitution h2 { margin-top: 8px; font-size: 28px; line-height: 36px; }
#weles-constitution h3 { font-size: 20px; line-height: 28px; }
#weles-constitution p { margin: 0 0 16px; }
#weles-constitution .weles-const-body :is(h2, h3, p) { max-width: 70ch; }
#weles-constitution .weles-const-edition,
#weles-constitution .weles-const-count {
    color: var(--wf-secondary);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
}
#weles-constitution .weles-const-lead { color: var(--wf-text); }
#weles-constitution .weles-const-num {
    color: var(--wf-gold);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
#weles-constitution a { color: var(--wf-gold); text-underline-offset: 3px; }
#weles-constitution :focus-visible:not(input),
#weles-constitution-modal :focus-visible:not(input) {
    outline: 2px solid var(--wf-focus);
    outline-offset: 2px;
}
#weles-constitution .weles-const-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    margin: 24px 0 32px;
    padding: 0 0 16px;
    background: var(--wf-surface);
}
#weles-constitution .weles-const-search label {
    grid-column: 1 / -1;
    color: var(--wf-text);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
}
#weles-constitution .weles-const-search input {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    color: var(--wf-text);
    background: var(--wf-raised);
    border: 1px solid var(--wf-border);
    border-radius: 12px;
    font: inherit;
    caret-color: var(--wf-text);
}
#weles-constitution .weles-const-search input:hover,
#weles-constitution .weles-const-search input:focus,
#weles-constitution .weles-const-search input:focus-visible {
    outline: none !important;
    outline-offset: 0 !important;
    border-color: var(--wf-border) !important;
    box-shadow: none !important;
}
#weles-constitution .weles-const-print {
    min-width: 44px;
    min-height: 48px;
    padding: 0 20px;
    color: var(--wf-ink);
    background: var(--wf-gold);
    border: 1px solid var(--wf-gold);
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    cursor: pointer;
    transition: background-color 160ms linear, border-color 160ms linear;
}
#weles-constitution .weles-const-print:hover { background: var(--wf-gold-hover); border-color: var(--wf-gold-hover); color: var(--wf-ink); }
#weles-constitution .weles-const-print:active { background: var(--wf-gold-press); border-color: var(--wf-gold-press); color: var(--wf-ink); }
#weles-constitution .weles-const-count { grid-column: 1 / -1; min-height: 20px; margin: 0; }
#weles-constitution .weles-const-layout {
    display: grid;
    grid-template-columns: minmax(200px, 280px) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}
#weles-constitution .weles-const-toc {
    position: sticky;
    top: 16px;
    max-height: calc(100vh - 48px);
    overflow: auto;
}
#weles-constitution .weles-const-toc ol { list-style: none; margin: 0; padding: 0; }
#weles-constitution .weles-const-toc li { margin: 0 0 4px; }
#weles-constitution .weles-const-toc ol ol { margin-top: 4px; padding-left: 12px; }
#weles-constitution .weles-const-toc a {
    display: block;
    min-height: 44px;
    padding: 10px 12px;
    color: var(--wf-secondary);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    text-decoration: none;
}
#weles-constitution .weles-const-toc a:hover { color: var(--wf-text); background: var(--wf-hover); }
#weles-constitution .weles-const-toc a.is-current {
    color: var(--wf-text);
    font-weight: 600;
    box-shadow: inset 0 -2px 0 var(--wf-gold);
}
#weles-constitution .weles-const-toc a.is-dim { color: var(--wf-muted); }
#weles-constitution [data-const-block] { scroll-margin-top: 16px; }
#weles-constitution [data-const-block="chapter"],
#weles-constitution [data-const-block="conclusion"] { margin-top: 32px; }
#weles-constitution [hidden] { display: none !important; }
#weles-constitution-modal.wm-modal {
    padding: 16px;
    background: rgb(0 0 0 / 64%);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
#weles-constitution-modal .wm-modal-window {
    width: min(1080px, calc(100vw - 32px));
    height: min(920px, calc(100dvh - 32px));
    background: var(--wf-surface);
    border: 1px solid var(--wf-line);
    border-radius: 20px;
    box-shadow: 0 16px 48px rgb(0 0 0 / 32%);
    color: var(--wf-text);
    font-family: "WELES Inter", Inter, Arial, sans-serif;
}
#weles-constitution-modal #weles-constitution {
    max-width: none;
    margin: 0;
    padding: 0 0 8px;
    background: transparent;
    border: 0;
    border-radius: 0;
}
#weles-constitution-modal .wm-modal-content {
    padding: 0 24px 24px;
    color: var(--wf-text);
    font-size: 16px;
    line-height: 24px;
    scrollbar-color: var(--wf-line) var(--wf-surface);
}
#weles-constitution-modal .wm-modal-close {
    position: static !important;
    top: auto !important;
    right: auto !important;
    align-self: flex-end;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    margin: 16px 16px 0 auto !important;
    border: 1px solid var(--wf-border) !important;
    border-radius: 12px !important;
    background: var(--wf-raised) !important;
    color: var(--wf-text) !important;
    box-shadow: none !important;
    font-family: "WELES Inter", Inter, Arial, sans-serif !important;
    font-size: 20px !important;
    transform: none !important;
}
#weles-constitution-modal .wm-modal-close:hover,
#weles-constitution-modal .wm-modal-close:active {
    background: var(--wf-hover) !important;
    border-color: var(--wf-gold) !important;
    color: var(--wf-text) !important;
    box-shadow: none !important;
    transform: none !important;
}
.weles-constitution-page #weles-constitution {
    display: flex;
    flex-direction: column;
    height: calc(100dvh - 148px);
    max-height: calc(100dvh - 148px);
    overflow: hidden;
}
#weles-constitution .weles-const-head,
#weles-constitution .weles-const-search { flex: 0 0 auto; }
#weles-constitution .weles-const-layout {
    flex: 1 1 auto;
    min-height: 0;
    align-items: stretch;
    overflow: hidden;
}
#weles-constitution .weles-const-toc,
#weles-constitution .weles-const-body {
    min-height: 0;
    height: 100%;
    max-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    scrollbar-color: var(--wf-line) transparent;
}
#weles-constitution .weles-const-toc { position: static; }
#weles-constitution .weles-const-toc > ol > li > a {
    color: var(--wf-text);
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
}
#weles-constitution .weles-const-toc ol ol a {
    color: var(--wf-secondary);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
}
#weles-constitution .weles-const-toc > ol > li > a.is-current,
#weles-constitution .weles-const-toc ol ol a.is-current {
    box-shadow: inset 3px 0 0 var(--wf-gold);
}
#weles-constitution .weles-const-toc ol ol a.is-current {
    color: var(--wf-text);
    font-weight: 500;
}
#weles-constitution-modal .wm-modal-window { display: flex; flex-direction: column; }
#weles-constitution-modal .wm-modal-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}
#weles-constitution-modal #weles-constitution {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    max-height: none;
    overflow: hidden;
}
.weles-constitution-page .entry-header,
.weles-constitution-page .ct-page-title,
.weles-constitution-page .ct-page-title-container { display: none; }
#weles-constitution .weles-const-toc-toggle { display: none; }
@media (max-width: 767px) {
    #weles-constitution { margin: 16px auto; padding: 16px; border-radius: 16px; }
    #weles-constitution h1 { font-size: 30px; line-height: 38px; }
    #weles-constitution h2 { font-size: 24px; line-height: 32px; }
    .weles-constitution-page #weles-constitution { height: auto; max-height: none; overflow: visible; }
    #weles-constitution .weles-const-layout { grid-template-columns: 1fr; gap: 16px; height: auto; overflow: visible; }
    #weles-constitution .weles-const-toc { height: 220px; max-height: 220px; flex: 0 0 220px; }
    #weles-constitution .weles-const-body { height: auto; max-height: none; overflow: visible; }
    #weles-constitution .weles-const-toc-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        min-height: 44px;
        padding: 8px 14px;
        border: 1px solid var(--wf-border);
        border-radius: 12px;
        background: var(--wf-raised);
        color: var(--wf-text);
        font: inherit;
        text-align: left;
    }
    #weles-constitution .weles-const-toc-toggle:focus-visible {
        outline: 2px solid var(--wf-focus-neutral, #a1a7b0);
        outline-offset: 2px;
    }
    #weles-constitution .weles-const-toc-toggle::after {
        content: "";
        width: 7px;
        height: 7px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
    }
    #weles-constitution .weles-const-toc-toggle[aria-expanded="true"]::after {
        transform: rotate(225deg);
    }
    #weles-constitution .weles-const-toc-toggle[aria-expanded="false"] + .weles-const-toc {
        display: none;
    }
    #weles-constitution-modal #weles-constitution {
        display: block;
        height: auto;
        overflow: visible;
    }
    #weles-constitution-modal .weles-const-layout { height: auto; overflow: visible; }
    #weles-constitution-modal .weles-const-toc { height: 180px; max-height: 180px; }
    #weles-constitution-modal.wm-modal { padding: 8px; }
    #weles-constitution-modal .wm-modal-window {
        width: calc(100vw - 16px);
        height: calc(100dvh - 16px);
        border-radius: 20px;
    }
    #weles-constitution-modal .wm-modal-content {
        display: block;
        overflow: auto;
        overscroll-behavior: contain;
        padding: 0 16px 16px;
    }
}
@media print {
    html.weles-const-printing body * { display: none !important; }
    html.weles-const-printing body .weles-print-keep {
        display: block !important;
        position: static !important;
        height: auto !important;
        max-height: none !important;
        min-height: 0 !important;
        overflow: visible !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        box-shadow: none !important;
        transform: none !important;
        background: transparent !important;
    }
    html.weles-const-printing #weles-constitution {
        display: block !important;
        position: static !important;
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        min-height: 0 !important;
        overflow: visible !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
        color: #111 !important;
        border: 0 !important;
        box-shadow: none !important;
    }
    html.weles-const-printing #weles-constitution .weles-const-head,
    html.weles-const-printing #weles-constitution .weles-const-layout,
    html.weles-const-printing #weles-constitution .weles-const-body,
    html.weles-const-printing #weles-constitution .weles-const-body :is(section, h2, h3, p),
    html.weles-const-printing #weles-constitution .weles-const-head :is(h1, p) {
        display: block !important;
        position: static !important;
        width: auto !important;
        height: auto !important;
        max-height: none !important;
        min-height: 0 !important;
        overflow: visible !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    html.weles-const-printing #weles-constitution :is(strong, span, a) { display: inline !important; }
    html.weles-const-printing #weles-constitution .weles-const-search,
    html.weles-const-printing #weles-constitution .weles-const-toc-toggle,
    html.weles-const-printing #weles-constitution .weles-const-toc {
        display: none !important;
        height: 0 !important;
        max-height: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    html.weles-const-printing #weles-constitution .weles-const-body :is(h2, h3, p),
    html.weles-const-printing #weles-constitution .weles-const-head :is(h1, p) {
        max-width: none;
        color: #111 !important;
    }
}
