/* Shell of PublicLayout.master, modeled on dauntless-soft.com */

body.pl-page {
    margin: 0;
    background: #102040 url(background.gif);
}

.pl-shell {
    display: flex;
    align-items: flex-start;
    padding: 2px;
}

.pl-main {
    flex: 1 1 auto;
    padding: 18px 10px 40px 12px;
}

.pl-frame {
    display: flow-root;
    background: #fff;
    border: 2px solid #fff;
    border-radius: 15px;
}

.pl-body {
    padding: 6px 12px 14px;
    font-family: var(--font-ui);
    font-size: 13px;
}

.pl-warning {
    margin: 12px;
    padding: 10px;
    background-color: #ffffbb;
    border: solid 1px yellow;
}

/* side menu */

.pl-side {
    flex: 0 0 208px;
    box-sizing: border-box;
    padding: 18px 3px 0 9px;
}

/* the image has a transparent shadow band of about 9px; the box crops it so the logo lines up with the menu */
.pl-logo {
    display: block;
    position: relative;
    overflow: hidden;
    height: 196px;
    margin: 0 0 10px;
}

    .pl-logo img {
        position: absolute;
        top: -9px;
        left: -9px;
        width: 214px;
        height: 214px;
        border: 0;
    }

.pl-menu {
    margin: 0;
    padding: 4px 0;
    list-style: none;
}

    .pl-menu li.pl-gap {
        height: 8px;
    }

    .pl-menu a,
    .pl-submenu-toggle {
        display: block;
        box-sizing: border-box;
        width: 100%;
        margin: 0;
        padding: 3px 6px;
        border: 0;
        border-left: 3px solid transparent;
        border-radius: 3px;
        background: none;
        font: 500 13px/1.3 var(--font-ui);
        color: #edf5ff;
        text-align: left;
        text-decoration: none;
        cursor: pointer;
        transition: background-color 0.15s, color 0.15s, border-color 0.15s;
    }

    .pl-submenu {
        margin: 2px 0;
        padding: 0;
        list-style: none;
    }

        .pl-submenu a {
            padding-left: 17px;
        }

        .pl-menu a:hover,
        .pl-menu a:focus-visible,
        .pl-submenu-toggle:hover,
        .pl-submenu-toggle:focus-visible {
            background: rgba(20, 72, 116, 0.92);
            border-left-color: #63d3ff;
            color: #fff;
            outline: none;
        }

        .pl-menu a.pl-active {
            background: rgba(25, 73, 112, 0.94);
            border-left-color: #ffdf7a;
            color: #ffdf7a;
        }

/* mobile top bar, shown instead of the side column on narrow screens */

.pl-topbar {
    display: none;
}

/* seasonal masthead */

.pl-masthead {
    position: relative;
    height: 105px;
    border-radius: 15px 15px 0 0;
    background: #eaf3f9 url(masthead-bg.jpg) center top repeat-x;
    overflow: hidden;
}

.pl-seasonal {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
    padding: 0 40px 0 0;
    background-position: left center;
    background-repeat: no-repeat;
}

    .pl-seasonal img {
        max-height: 105px;
        width: auto;
        border: 0;
    }

/* product header bar */

.pl-headerbar {
    position: relative;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 11px 12px;
    border-radius: 15px 15px 0 0;
    background: #06183a;
}

    .pl-headerbar img {
        display: block;
        width: auto;
        max-height: 44px;
        object-fit: contain;
        border: 0;
    }

.pl-headerbar-title {
    flex: 1 1 auto;
    color: #b8cce2;
    font: 500 16px/1.4 var(--font-ui);
}

.pl-headerbar-right {
    margin-left: auto;
}

/* without the side menu */

.pl-no-side .pl-main {
    padding-left: 2%;
    padding-right: 2%;
}

/* 20px above and below the frame; not on touch devices, where a zoomed-out desktop-only page reports a very tall window */
@media (hover: hover) and (pointer: fine) {
    .pl-fill-height .pl-main {
        padding-bottom: 18px;
    }

    .pl-fill-height .pl-frame {
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
        min-height: calc(100vh - 40px);
    }

    .pl-fill-height .pl-body {
        flex: 1 0 auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .pl-responsive .pl-topbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 8px 12px;
    }

        .pl-responsive .pl-topbar a {
            flex: 0 1 280px;
            min-width: 0;
        }

        .pl-responsive .pl-topbar img {
            display: block;
            width: 100%;
            height: auto;
            border: 0;
        }

    .pl-responsive .pl-menu-button {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 4px;
        flex: 0 0 44px;
        height: 44px;
        padding: 0;
        border: 1px solid #819ab3;
        border-radius: 5px;
        background: #123f66;
        cursor: pointer;
    }

        .pl-responsive .pl-menu-button span {
            display: block;
            width: 20px;
            height: 2px;
            background: #fff;
        }

        .pl-responsive .pl-menu-button:focus-visible {
            outline: 3px solid #edc755;
            outline-offset: 2px;
        }

    .pl-responsive .pl-shell {
        display: block;
        position: relative;
    }

    .pl-responsive .pl-side {
        display: none;
        position: absolute;
        z-index: 1000;
        top: 0;
        left: 7px;
        width: 240px;
        max-width: calc(100vw - 14px);
        max-height: 78vh;
        overflow: auto;
        padding: 8px;
        background: #102040;
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.27);
    }

    .pl-responsive.pl-menu-open .pl-side {
        display: block;
    }

    .pl-responsive .pl-side .pl-logo {
        display: none;
    }

    .pl-responsive .pl-menu {
        padding: 0;
    }

        .pl-responsive .pl-menu a,
        .pl-responsive .pl-submenu-toggle {
            padding-top: 10px;
            padding-bottom: 10px;
        }

    .pl-responsive .pl-main,
    .pl-responsive.pl-no-side .pl-main {
        padding: 0 7px 24px;
    }

    .pl-responsive .pl-headerbar {
        flex-wrap: wrap;
        gap: 0 20px;
        padding: 8px 10px;
    }

        .pl-responsive .pl-headerbar a {
            max-width: 100%;
        }

        .pl-responsive .pl-headerbar img {
            max-width: 100%;
            max-height: 40px;
        }

    .pl-responsive .pl-headerbar-title {
        order: 3;
        flex-basis: 100%;
        padding: 5px 1px 4px;
        font-size: 14px;
    }
}

@media (max-width: 650px) {
    .pl-responsive .pl-masthead {
        height: 78px;
    }

    .pl-responsive .pl-seasonal {
        padding: 0 10px;
        background-size: auto 78px;
    }

        .pl-responsive .pl-seasonal img {
            max-width: 45%;
            max-height: 78px;
        }
}
