/* Scoped to the opt-in section menu; the existing page and main menu keep their styles. */
.es-section-nav,
.es-section-nav__dialog {
    --es-nav-gold: #dd951b;
    --es-nav-paper: #f6f3e7;
    --es-nav-ink: #211d17;
    font-family: Georgia, "Times New Roman", serif;
    color: var(--es-nav-ink);
    font-size: 16px;
    line-height: 1.45;
    text-align: left;
}
.es-section-nav *,
.es-section-nav__dialog * { box-sizing: border-box; }
.es-section-nav [hidden],
.es-section-nav__dialog [hidden] { display: none !important; }
.es-section-nav__trigger {
    position: fixed;
    right: max(24px, calc((100vw - 930px) / 2 + 22px));
    bottom: max(26px, env(safe-area-inset-bottom));
    z-index: 9000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    min-height: 46px;
    max-width: calc(100vw - 32px);
    padding: 11px 18px;
    border: 1px solid var(--es-nav-gold);
    border-radius: 5px;
    background: #080706;
    color: #edb65a;
    box-shadow: 0 4px 16px #0003;
    font: inherit;
    font-size: 17px;
    cursor: pointer;
}
.es-section-nav__trigger:hover { background: #eeebd8; color: var(--es-nav-ink); }
.es-section-nav__icon {
    display: inline-block;
    flex: 0 0 19px;
    width: 19px;
    height: 16px;
    background:
        linear-gradient(currentColor, currentColor) 6px 1px / 13px 2px no-repeat,
        linear-gradient(currentColor, currentColor) 6px 7px / 13px 2px no-repeat,
        linear-gradient(currentColor, currentColor) 6px 13px / 13px 2px no-repeat,
        linear-gradient(currentColor, currentColor) 0 1px / 2px 2px no-repeat,
        linear-gradient(currentColor, currentColor) 0 7px / 2px 2px no-repeat,
        linear-gradient(currentColor, currentColor) 0 13px / 2px 2px no-repeat;
}
.es-section-nav__panel {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 0;
    max-height: 100%;
    background: var(--es-nav-paper);
    border: 1px solid var(--es-nav-gold);
}
.es-section-nav__header {
    position: relative;
    flex: 0 0 auto;
    padding: 23px 65px 21px 25px;
    background: #0d0b08;
    color: #eeebd8;
    border-bottom: 2px solid var(--es-nav-gold);
}
.es-section-nav__eyebrow { margin: 0 0 6px; color: #edb65a; font: 12px/1.4 Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.es-section-nav__title { margin: 0; padding: 0; font-weight: normal; font-size: 26px; line-height: 1.25; }
.es-section-nav__close {
    position: absolute;
    top: 18px;
    right: 14px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #79613b;
    border-radius: 4px;
    background: transparent;
    color: #edb65a;
    font: 29px/1 Arial, sans-serif;
    cursor: pointer;
}
.es-section-nav__close:hover { background: #362a18; }
.es-section-nav__body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 8px 25px 28px; }
.es-section-nav__list { margin: 0; padding: 0; list-style: none; }
.es-section-nav__item { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid #e1daca; }
.es-section-nav__item a,
.es-section-nav__item a:visited {
    display: block;
    margin: 0;
    padding: 11px 2px;
    color: var(--es-nav-ink);
    background: transparent;
    text-decoration: none;
    text-align: left;
    overflow-wrap: anywhere;
}
.es-section-nav__item a:hover,
.es-section-nav__item a:active { background: #e9dfc9; color: #000; }
.es-section-nav__group { margin-top: 19px; border-bottom: 2px solid #bc8527; }
.es-section-nav__group h3 { margin: 0; padding: 0; font-weight: normal; font-size: 20px; line-height: 1.35; }
.es-section-nav__group a { padding: 9px 2px; }
.es-section-nav__trigger:focus-visible,
.es-section-nav__close:focus-visible,
.es-section-nav__item a:focus-visible { outline: 3px solid var(--es-nav-gold); outline-offset: 3px; }
.es-section-nav__dialog {
    position: fixed;
    inset: 0 0 0 auto;
    box-sizing: border-box;
    width: 390px;
    max-width: calc(100vw - 28px);
    height: 100vh;
    height: 100dvh;
    max-height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: var(--es-nav-paper);
    box-shadow: -12px 0 45px #0005;
    overflow: hidden;
}
.es-section-nav__dialog::backdrop { background: #0006; }
.es-section-nav__dialog[open] { display: flex; animation: es-section-nav-enter .18s ease-out; }
.es-section-nav__dialog[open].es-section-nav__dialog--closing { animation: es-section-nav-exit .18s ease-in forwards; }
.es-section-nav__dialog--closing::backdrop { animation: es-section-nav-fade .18s ease-in forwards; }
.es-section-nav__dialog .es-section-nav__panel { height: 100%; border-width: 0 0 0 1px; }
.es-section-nav__dialog .es-section-nav__body { flex: 1 1 auto; padding-bottom: max(28px, env(safe-area-inset-bottom)); }
html.es-section-nav-open { overflow: hidden; }
body.es-section-nav-enabled > footer { margin-bottom: 100px; }
.es-section-nav-target { scroll-margin-top: 24px; }
.es-section-nav-target:focus-visible { outline: 2px solid #dd951b; outline-offset: 4px; }
@keyframes es-section-nav-enter {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}
@keyframes es-section-nav-exit {
    from { transform: translateX(0); }
    to { transform: translateX(100%); }
}
@keyframes es-section-nav-fade {
    from { opacity: 1; }
    to { opacity: 0; }
}
@media (max-width: 760px) {
    .es-section-nav__trigger { right: 16px; bottom: max(18px, env(safe-area-inset-bottom)); font-size: 16px; }
    .es-section-nav__header { padding-left: 20px; }
    .es-section-nav__body { padding-left: 20px; padding-right: 20px; }
    .es-section-nav__title { font-size: 24px; }
    .es-section-nav-target { scroll-margin-top: 76px; }
}
@media (prefers-reduced-motion: reduce) {
    .es-section-nav__dialog[open],
    .es-section-nav__dialog[open].es-section-nav__dialog--closing,
    .es-section-nav__dialog--closing::backdrop { animation: none; }
}
