/*
 * Header menu drop-downs (Admin > Settings > Header Menu sub-items) and the
 * footer link columns. The theme only styles drop-downs in the phone menu.
 */
.ps-main-menu .menu > li.site-nav-parent { position: relative; }
.ps-main-menu .menu > li.site-nav-parent > a::after {
    content: "\f107";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: .75em;
    margin-left: 6px;
}
.ps-main-menu .site-nav-sub {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    min-width: 220px;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px -8px rgba(15, 23, 42, .25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.ps-main-menu .menu > li.site-nav-parent:hover > .site-nav-sub,
.ps-main-menu .menu > li.site-nav-parent:focus-within > .site-nav-sub {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.ps-main-menu .site-nav-sub > li { display: block; padding: 0; }
.ps-main-menu .site-nav-sub > li > a {
    display: block;
    padding: 8px 18px;
    color: #1f2937 !important;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}
.ps-main-menu .site-nav-sub > li > a:hover { background: #eef7f0; color: #0d6526 !important; }

/* footer: column 4 groups are repeated under column 1 on phones */
.ps-footer .site-footer-col4-mobile { display: none; }
@media (max-width: 640px) {
    .ps-footer .site-footer-col4 { display: none; }
    .ps-footer .site-footer-col4-mobile { display: block; }
}

/*
 * "Message popup" menu / footer links: one shared #siteMessageModal,
 * filled from the clicked link's <template> (partials/site-message-modal).
 */
.site-msg-modal .modal-dialog { max-width: 520px; }
.site-msg-modal .modal-content {
    border: 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 60px -12px rgba(15, 23, 42, .35);
}
.site-msg { --msg-accent: #0d6526; --msg-soft: #e7f3ea; position: relative; background: #fff; color: #334155; }
.site-msg--info { --msg-accent: #1d6fd8; --msg-soft: #e8f1fd; }
.site-msg--success { --msg-accent: #0d6526; --msg-soft: #e7f3ea; }
.site-msg--warning { --msg-accent: #c77700; --msg-soft: #fff4e0; }
.site-msg--announcement { --msg-accent: #7c3aed; --msg-soft: #f1eafe; }
.site-msg__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .85);
    color: #475569;
    font-size: 16px;
    line-height: 34px;
    text-align: center;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.site-msg__close:hover, .site-msg__close:focus { background: #fff; color: #0f172a; outline: none; }
.site-msg__head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 30px 28px 18px;
    text-align: center;
    background: linear-gradient(180deg, var(--msg-soft) 0%, #fff 100%);
}
.site-msg__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--msg-accent);
    color: #fff;
    font-size: 26px;
    box-shadow: 0 0 0 8px var(--msg-soft);
}
.site-msg__title { margin: 0; font-size: 21px; font-weight: 700; line-height: 1.35; color: #0f172a; }
.site-msg__img { padding: 0 24px; }
.site-msg__img img { display: block; width: 100%; max-height: 260px; object-fit: cover; border-radius: 12px; }
.site-msg__body {
    padding: 16px 28px 4px;
    font-size: 15px;
    line-height: 1.65;
    max-height: 50vh;
    overflow-y: auto;
}
.site-msg__body p { margin: 0 0 12px; font-size: inherit; line-height: inherit; color: inherit; }
.site-msg__body ul, .site-msg__body ol { margin: 0 0 12px; padding-left: 22px; }
.site-msg__body ul { list-style: disc; }
.site-msg__body ol { list-style: decimal; }
.site-msg__body li { margin-bottom: 4px; }
.site-msg__body a { color: var(--msg-accent); text-decoration: underline; }
.site-msg__body img { max-width: 100%; height: auto; border-radius: 8px; }
.site-msg__foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px 26px;
}
.site-msg__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.site-msg__btn--primary { background: #0d6526; border: 1px solid #0d6526; color: #fff; }
.site-msg__btn--primary:hover, .site-msg__btn--primary:focus { background: #0a501e; border-color: #0a501e; color: #fff; text-decoration: none; }
.site-msg__btn--ghost { background: #fff; border: 1px solid #cbd5e1; color: #334155; }
.site-msg__btn--ghost:hover, .site-msg__btn--ghost:focus { background: #f1f5f9; color: #0f172a; outline: none; }
@media (max-width: 575px) {
    .site-msg-modal .modal-dialog { margin: 12px; }
    .site-msg__head { padding: 26px 20px 14px; }
    .site-msg__title { font-size: 19px; }
    .site-msg__img { padding: 0 16px; }
    .site-msg__body { padding: 14px 20px 4px; font-size: 14.5px; }
    .site-msg__foot { padding: 12px 20px 22px; }
    .site-msg__btn { flex: 1 1 auto; }
}
