* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    background: #f4f1ea;
    color: #1f1a17;
    overflow: hidden;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: 8px;
    left: 12px;
    z-index: 2000;
    padding: 10px 14px;
    background: #fffdf9;
    color: #1f1a17;
    border: 2px solid #5a2d00;
    text-decoration: none;
    transform: translateY(-140%);
}

.skip-link:focus,
.skip-link:focus-visible {
    transform: translateY(0);
}

.layout-scroll-area {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    /* Smooth in-page anchor navigation (e.g. #epee on the weapons page),
       with an offset so targets clear the top of the scroll area. */
    scroll-behavior: smooth;
    scroll-padding-top: 16px;
}

.page-content {
    flex: 1 0 auto;
    /* Fill the column up to max-width. Without this, the auto side-margins on
       a flex item make it shrink to its content, so text-light pages (e.g.
       partners) rendered narrower than the rest. */
    width: 100%;
    padding: 48px 18px;
    text-align: center;
    max-width: 980px;
    margin: 0 auto;
}

.page-content a {
    color: #8b5a2b;
    text-decoration: none;
}

.page-content a:visited {
    color: #74431d;
}

.page-content a:hover,
.page-content a:focus,
.page-content a:active {
    color: #6a3d18;
    text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
    outline: 3px solid #7a3c10;
    outline-offset: 2px;
}

.page-copy {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
    line-height: 1.5;
}

.page-heading {
    margin: 0 0 24px;
    text-align: left;
    font-size: clamp(2rem, 4vw, 2.75rem);
    line-height: 1.1;
}

.page-copy p {
    margin: 0;
}

/* Quill 2 stores every list as <ol> and encodes the marker in each item's
   data-list attribute (bullet/ordered/checked/unchecked); its editor CSS
   is not loaded on the public site, so mirror the markers here. */
.page-copy ol {
    list-style: none;
    padding-left: 1.5em;
    counter-reset: eds-list;
}

.page-copy ol > li {
    position: relative;
}

.page-copy ol > li[data-list="ordered"] {
    counter-increment: eds-list;
}

.page-copy ol > li[data-list="ordered"]::before {
    content: counter(eds-list) ". ";
}

.page-copy ol > li[data-list="bullet"]::before {
    content: "\2022\00a0\00a0";
}

.page-copy ol > li[data-list="checked"]::before {
    content: "\2611\00a0";
}

.page-copy ol > li[data-list="unchecked"]::before {
    content: "\2610\00a0";
}

/* Quill injects an empty marker span; hide it on the public site. */
.page-copy ol > li > .ql-ui {
    display: none;
}

.page-content .ql-align-center {
    text-align: center;
}

.page-content .ql-align-right {
    text-align: right;
}

.page-content .ql-align-justify {
    text-align: justify;
}

.page-content .ql-size-small {
    font-size: 0.75em;
}

.page-content .ql-size-large {
    font-size: 1.5em;
}

.page-content .ql-size-huge {
    font-size: 2.5em;
}

.page-content img.ql-align-center,
.page-content video.ql-align-center,
.page-content iframe.ql-align-center {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-content img.ql-align-right,
.page-content video.ql-align-right,
.page-content iframe.ql-align-right {
    display: block;
    margin-left: auto;
    margin-right: 0;
}

.page-content img.ql-align-left,
.page-content video.ql-align-left,
.page-content iframe.ql-align-left {
    display: block;
    margin-left: 0;
    margin-right: auto;
}

.site-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    z-index: 1000;
    background: #e8dcc6;
    border-bottom: 1px solid #bda98c;
    box-shadow: 0 6px 12px rgba(31, 26, 23, 0.16);
}

.site-menu__list,
.site-menu__sublist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-menu__list {
    display: flex;
    align-items: stretch;
    justify-content: center;
    height: 100%;
}

.site-menu__item {
    position: relative;
}

.site-menu__link {
    display: block;
    padding: 0 22px;
    line-height: 64px;
    color: #1f1a17;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 14px;
    text-align: center;
}

.site-menu__link:hover,
.site-menu__item:hover > .site-menu__link,
.site-menu__link.is-active {
    background: #d7c2a1;
}

.site-menu__sublist {
    position: absolute;
    top: 100%;
    left: 50%;
    min-width: 180px;
    padding: 6px 0;
    background: #f8f3e8;
    border: 1px solid #bda98c;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) scaleY(0);
    transform-origin: top center;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    pointer-events: none;
}

.site-menu__item:hover > .site-menu__sublist {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scaleY(1);
    pointer-events: auto;
}

.site-menu__item.is-open > .site-menu__sublist {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scaleY(1);
    pointer-events: auto;
}

.site-menu__item:focus-within > .site-menu__sublist {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scaleY(1);
    pointer-events: auto;
}

.site-menu__sublist::before {
    content: "";
    position: absolute;
    top: -1px;
    min-width: 180px;
    left: 0;
    right: 0;
}

.site-menu__sublist .site-menu__link {
    padding: 14px 18px;
    line-height: normal;
    text-transform: none;
    letter-spacing: 0;
}

.site-footer {
    border-top: 1px solid #bda98c;
    background: #e8dcc6;
    color: #2b2118;
    text-align: center;
    font-size: 12px;
    line-height: 1.2;
    padding: 10px 12px;
}

@media (max-width: 820px) {
    .site-menu__list {
        justify-content: center;
        width: 100%;
    }

    .site-menu__item {
        flex: 1 1 0;
        min-width: 0;
    }

    .site-menu__link {
        padding: 0 8px;
        font-size: clamp(10px, 1.45vw, 12px);
        letter-spacing: 0.01em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (max-width: 560px) {
    .site-menu {
        height: 56px;
    }

    .layout-scroll-area {
        top: 56px;
    }

    .site-menu__link {
        padding: 0 4px;
        line-height: 56px;
        font-size: clamp(8px, 2.3vw, 10px);
        letter-spacing: 0;
    }

    .site-menu__sublist {
        min-width: 156px;
    }

    .site-menu__sublist::before {
        min-width: 156px;
    }

    .site-menu__sublist .site-menu__link {
        padding: 12px 14px;
        line-height: 1.25;
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html:focus-within {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
