/* ==================== App Shell Bar & Navigation ==================== */

.mud-appbar.app-shell-bar {
    z-index: 2000;
    height: var(--shell-bar-height) !important;
    background-color: var(--waterstons-blue-primary) !important;
}

    .mud-appbar.app-shell-bar .mud-toolbar {
        position: relative;
        z-index: 1;
        height: 100%;
        min-height: var(--shell-bar-height);
        align-items: stretch;
        padding: 0 5vw;
        flex-direction: column;
        justify-content: center;
    }

.mud-appbar.public-app-shell-bar {
    z-index: 2000;
    height: var(--shell-bar-height) !important;
    background-color: var(--waterstons-blue-primary) !important;
}

    .mud-appbar.public-app-shell-bar .mud-toolbar {
        height: 100%;
        min-height: var(--shell-bar-height);
        align-items: stretch;
        padding: 0 5vw;
        flex-direction: column;
        justify-content: center;
    }

/* Top row ------------------- */

.app-shell-bar-top {
    justify-content: space-between;
}

.app-shell-logo {
    height: 20px;
}

.app-shell-logo-link {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    text-decoration: none;
}

.public-shell-top-row {
    width: 100%;
    align-items: center;
    justify-content: space-between;
    margin-top: 0;
}

.public-shell-bar .public-shell-logo {
    height: 36px;
    width: auto;
    align-self: flex-start;
    object-fit: contain;
}

.public-shell-contact-btn {
    margin-left: auto;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    min-height: 34px !important;
    padding: 6px 16px !important;
    color: var(--waterstons-white) !important;
    background: linear-gradient(135deg, rgba(120, 250, 147, 0.24) 0%, rgba(47, 80, 108, 0.9) 100%) !important;
    border: 1px solid rgba(120, 250, 147, 0.4) !important;
    box-shadow: 0 6px 16px rgba(21, 41, 67, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
    text-transform: none !important;
    font-weight: 600 !important;
    letter-spacing: 0.2px;
    transition: color 0.2s ease;
}

.public-shell-contact-btn::after {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    pointer-events: none;
    z-index: 2;
}

.public-shell-contact-btn .mud-button-label {
    position: static;
}

.public-shell-contact-btn .mud-button-start-icon,
.public-shell-contact-btn .mud-button-icon-start,
.public-shell-contact-btn .mud-icon-root,
.public-shell-contact-text {
    position: relative;
    z-index: 4;
}

.public-shell-contact-inner {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    border-radius: 999px;
    pointer-events: none;
}

.public-shell-contact-blobs {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    opacity: 0.98;
    filter: url(#public-shell-goo);
}

.public-shell-contact-blob {
    position: absolute;
    top: 120%;
    width: 34%;
    height: 220%;
    border-radius: 50%;
    background: var(--waterstons-green);
    opacity: 0.8;
    transform: translate3d(0, 0, 0) scale(1.04);
    transition: transform 0.45s ease;
    will-change: transform;
}

.public-shell-contact-blob:nth-child(1) { left: -10%; transition-delay: 0s; }
.public-shell-contact-blob:nth-child(2) { left: 18%; transition-delay: 0.08s; }
.public-shell-contact-blob:nth-child(3) { left: 46%; transition-delay: 0.16s; }
.public-shell-contact-blob:nth-child(4) { left: 74%; transition-delay: 0.24s; }

.public-shell-contact-btn:hover,
.public-shell-contact-btn:focus-visible {
    color: var(--waterstons-blue-secondary) !important;
}

.public-shell-contact-btn:hover .public-shell-contact-blob,
.public-shell-contact-btn:focus-visible .public-shell-contact-blob {
    transform: translate3d(0, -80%, 0) scale(1.22);
}

.public-shell-goo-defs {
    position: absolute;
    width: 0;
    height: 0;
    pointer-events: none;
}

.public-shell-content {
    padding-top: 6px;
    padding-left: 8px;
}

.public-shell-project-title {
    text-decoration-line: underline;
    text-decoration-color: var(--waterstons-green);
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
    text-decoration-skip-ink: none;
}

.app-shell-nav-actions {
    width: 220px;
    display: flex;
    justify-content: space-evenly;
    margin-right: auto;
    margin-left: 20px;
    --border-transition: border 0.2s ease 0.8s, box-shadow 0.4s ease 0.85s;
    --trace-speed: 0.7s;
}


.app-shell-nav-btn {
    position: relative;
    width: fit-content;
    border-radius: 0 !important;
    border-bottom: 1px solid transparent !important;
    box-shadow: 0 -6.5px 0px 6px var(--waterstons-blue-primary) !important;
}

.app-shell-nav-svg-home {
    stroke: var(--waterstons-white);
}

.app-shell-nav-btn-home:hover {
    transition: var(--border-transition);
    border-color: var(--waterstons-white) !important;
    box-shadow: 
        0 -6.5px 0px 6px var(--waterstons-blue-primary), 
        0 1px 6px var(--waterstons-white) !important;
}

.app-shell-nav-svg-review {
    stroke: var(--waterstons-green);
}

.app-shell-nav-btn-review:hover {
    transition: var(--border-transition);
    border-color: var(--waterstons-green) !important;
    box-shadow: 
        0 -6.5px 0px 6px var(--waterstons-blue-primary), 
        0 1px 6px var(--waterstons-green) !important;
}

.app-shell-nav-btn-signin:hover {
    transition: border-color 0.2s ease, box-shadow 0.4s ease;
    border-color: var(--waterstons-white) !important;
    box-shadow: 
        0 -6.5px 0px 6px var(--waterstons-blue-primary), 
        0 1px 6px var(--waterstons-white) !important;
}

.nav-btn-border {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    fill: none;
    stroke-dasharray: 50 308;
    stroke-dashoffset: 50;
    transition: none;
    stroke-width: 1.5px;
    pointer-events: none;
}

.app-shell-nav-btn:hover .nav-btn-border {
    stroke-dashoffset: -308;
    transition: stroke-dashoffset var(--trace-speed) ease-in-out;
}


@media (prefers-reduced-motion: reduce) {
    .public-shell-contact-btn,
    .public-shell-contact-blob {
        transition: none !important;
        animation: none !important;
    }

    .public-shell-contact-btn:hover .public-shell-contact-blob,
    .public-shell-contact-btn:focus-visible .public-shell-contact-blob {
        transform: translate3d(0, -80%, 0) scale(1.16);
    }
}

@media (max-width: 700px) {
    .public-shell-top-row {
        align-items: flex-start;
    }

    .public-shell-contact-btn {
        padding-left: 10px !important;
        padding-right: 10px !important;
        min-width: 0 !important;
    }
}

/* Main (title + blurb) ------------------- */

.app-shell-bar-main {
    width: 100%;
    padding-top: 20px;
}

.app-shell-title-text {
    font-weight: 500 !important;
}

.app-shell-title-accent {
    text-decoration-line: underline;
    text-decoration-color: var(--waterstons-green);
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
    text-decoration-skip-ink: none;
}

.app-shell-blurb-text {
    opacity: 0.6;
    line-height: 1.25 !important;
}

.app-shell-auth-row {
    transform: scale(1.25);
    transform-origin: right bottom;
}

.app-shell-user-avatar {
    width: 32px;
    height: 32px;
}

.app-shell-settings-btn.is-spinning .mud-icon-root {
    animation: app-shell-settings-spin 0.3s linear;
}

@keyframes app-shell-settings-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.home-subtitle {
    display: block;
    margin-top: -2px;
    margin-bottom: 2px;
}

/* ==================== Page Header ==================== */

.page-header {
    background-color: var(--waterstons-blue-primary);
    padding: 4px 0 12px;
}