/* Side menu (owner, 3 November 2026): fixed on the left on wide screens; behind a Menu button on phones. */
.sat-side-menu, .sat-side-menu-toggle, .sat-side-menu-backdrop { display: none; }
body.sat-menu-on .sat-side-menu {
    display: flex; flex-direction: column; gap: 14px; position: fixed; top: 0; left: 0; bottom: 0; width: 220px;
    padding: 18px 12px; overflow-y: auto; background: #0f2740; color: #ffffff; z-index: 50; font-size: 14px;
}
body.sat-menu-on { padding-left: 220px; }
.sat-side-menu-site { display: grid; gap: 8px; padding: 0 6px 12px; border-bottom: 1px solid #2c4a68; }
.sat-side-menu-site strong { font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.sat-side-menu-group { display: grid; gap: 2px; }
.sat-side-menu-divided { padding-top: 12px; border-top: 1px solid #2c4a68; }
.sat-side-menu-heading { margin: 0 0 4px; padding: 0 8px; color: #93b4d4; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.sat-side-menu-item {
    width: 100%; text-align: left; background: transparent; color: #ffffff; border: 0; border-radius: 6px;
    padding: 8px 10px; font: inherit; cursor: pointer;
}
.sat-side-menu-item:hover:not(:disabled) { background: #1d3d5e; }
.sat-side-menu-item:disabled { color: #7f95ab; cursor: not-allowed; }
.sat-side-menu-no-website .sat-side-menu-site strong { color: #c7d6e5; font-weight: 600; }
.sat-side-menu-item[aria-current="page"] { background: #ffffff; color: #16324f; font-weight: 700; }
.sat-side-menu-small {
    justify-self: start; background: transparent; color: #ffffff; border: 1px solid #93b4d4; border-radius: 999px;
    padding: 5px 12px; font: inherit; font-size: 13px; cursor: pointer;
}
.sat-side-menu-small:hover { background: #1d3d5e; }
.sat-side-menu button:focus-visible, .sat-side-menu-toggle:focus-visible { outline: 3px solid #60a5fa; outline-offset: 2px; }
.sat-side-menu-end { margin-top: auto; padding-top: 12px; border-top: 1px solid #2c4a68; }

/* Phones and narrow windows: the menu slides in from the left when Menu is pressed. */
@media (max-width: 900px) {
    body.sat-menu-on { padding-left: 0; padding-bottom: 72px; }
    body.sat-menu-on .sat-side-menu { width: min(280px, 85vw); transform: translateX(-100%); visibility: hidden; transition: transform 0.2s ease, visibility 0.2s; z-index: 70; }
    body.sat-menu-on.sat-menu-open .sat-side-menu { transform: none; visibility: visible; }
    body.sat-menu-on .sat-side-menu-toggle {
        display: block; position: fixed; left: 16px; bottom: 16px; z-index: 60; background: #16324f; color: #ffffff;
        border: 2px solid #ffffff; border-radius: 999px; padding: 10px 18px; font-size: 15px; font-weight: 700;
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.35); cursor: pointer;
    }
    body.sat-menu-on.sat-menu-open .sat-side-menu-backdrop { display: block; position: fixed; inset: 0; background: rgba(15, 23, 42, 0.45); z-index: 65; }
}

/* Menu button in the screen's header (owner, 7 November 2026): on its own line at the top of the header, above the
   title, in the header's outline style; nothing floats over the page any more. */
@media (max-width: 900px) {
    body.sat-menu-on .sat-side-menu-toggle.sat-side-menu-toggle-in-header {
        position: static; order: -1; flex: 0 0 auto; align-self: flex-start; margin: 0 0 4px;
        background: transparent; color: #ffffff; border: 1px solid #93b4d4; border-radius: 999px;
        padding: 6px 14px; font-size: 14px; font-weight: 700; box-shadow: none;
    }
    body.sat-menu-on .sat-side-menu-toggle.sat-side-menu-toggle-in-header:hover { background: #244d73; }
    body.sat-menu-on.sat-menu-toggle-in-header { padding-bottom: 0; }
    /* A header that is not laid out as a row of items still gets the button on its own line. */
    header:not(.dashboard-header) > .sat-side-menu-toggle-in-header { display: inline-block; margin-bottom: 10px; }
}
