:root {
    --trickle-blue: #3fa3f8;
    --trickle-blue-dark: #2b70aa;
    --trickle-blue-light: #c1e1fd;
    --trickle-green: #6de5b2;
    --trickle-dark: #032230;
    --trickle-grey-light: #f8f8f8;
    --trickle-grey-mid: #d6d6d6;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid rgba(3, 34, 48, 0.05);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 90rem;
    height: 4rem;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .site-header__inner {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .site-header__inner {
        padding: 0 2rem;
    }
}

.site-header__logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.site-header__logo img {
    display: block;
    height: 2rem;
    width: auto;
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.site-header__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2.25rem;
    padding: 0 1rem;
    border: 0;
    border-radius: 9999px;
    font-size: 0.875rem;
    line-height: 1;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s, opacity 0.15s;
}

.site-header__btn--ghost {
    display: none;
    font-weight: 500;
    color: var(--trickle-dark);
    background: transparent;
}

.site-header__btn--ghost:hover {
    background: var(--trickle-grey-light);
}

@media (min-width: 640px) {
    .site-header__btn--ghost {
        display: inline-flex;
    }
}

.site-header__btn--primary {
    font-weight: 600;
    color: var(--trickle-dark);
    background: var(--trickle-green);
}

.site-header__btn--primary:hover {
    background: rgba(109, 229, 178, 0.9);
}

.site-header__user-menu {
    position: relative;
}

.site-header__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    border-radius: 9999px;
    background: var(--trickle-blue-light);
    color: var(--trickle-blue-dark);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s;
}

.site-header__avatar:hover {
    opacity: 0.8;
}

.site-header__avatar:focus-visible {
    outline: 2px solid var(--trickle-blue);
    outline-offset: 2px;
}

.site-header__dropdown {
    display: none;
    position: absolute;
    right: 0;
    z-index: 50;
    margin-top: 0.75rem;
    width: 18rem;
    overflow: hidden;
    border: 1px solid rgba(3, 34, 48, 0.1);
    border-radius: 0.75rem;
    background: #fff;
    box-shadow: 0 10px 25px rgba(3, 34, 48, 0.1);
}

.site-header__user-menu.is-open .site-header__dropdown {
    display: block;
}

.site-header__dropdown-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(214, 214, 214, 0.4);
}

.site-header__dropdown-name {
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--trickle-dark);
}

.site-header__dropdown-email {
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.875rem;
    color: rgba(3, 34, 48, 0.55);
}

.site-header__dropdown-item {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: 0;
    background: transparent;
    color: rgba(3, 34, 48, 0.8);
    font-size: 0.875rem;
    font-family: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s;
}

.site-header__dropdown-item:hover {
    background: var(--trickle-grey-light);
}

.site-header__dropdown-item:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.site-header__dropdown-icon {
    width: 1rem;
    height: 1rem;
    color: var(--trickle-blue);
}

.site-header__nav-item {
    position: relative;
    display: flex;
    align-self: stretch;
    align-items: center;
}

.site-header__nav-link svg.site-header__nav-caret {
    width: 8px;
    height: 5px;
    color: inherit;
    transition: transform 0.15s ease-out;
}

.site-header__nav-item.is-open .site-header__nav-link svg.site-header__nav-caret {
    transform: rotate(180deg);
}

.site-header__nav-dropdown {
    display: none;
    position: absolute;
    top: calc(100% - 2px);
    left: 50%;
    z-index: 50;
    min-width: 12.5rem;
    padding: 0.4rem 0;
    border: 1px solid rgba(3, 34, 48, 0.1);
    border-radius: 0.75rem;
    background: #fff;
    box-shadow: 0 10px 25px rgba(3, 34, 48, 0.1);
    transform: translateX(-50%);
}

.site-header__nav-item.is-open .site-header__nav-dropdown {
    display: block;
}

.site-header__nav-dropdown-item {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    box-sizing: border-box;
    color: rgba(3, 34, 48, 0.8);
    font-size: 0.875rem;
    font-weight: 400;
    text-decoration: none;
}

.site-header__nav-dropdown-item:hover {
    background: var(--trickle-grey-light);
}

.site-header__nav-dropdown-item svg,
.site-header__nav-dropdown-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    color: #3fa3f8;
}

.site-header__nav-dropdown-item .site-header__nav-icon-drip {
    width: 0.65rem;
    height: 1rem;
}
