/* Penweet teams — matches Jobs / platform accent */
.pw-teams-hero {
    padding: 2.5rem 1rem 1rem;
    text-align: center;
}

.pw-teams-hero__title {
    margin: 0 0 0.75rem;
    color: #212121;
}

.pw-teams-hero__lede {
    margin: 0 auto;
    max-width: 36rem;
    color: #212121;
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.45;
}

.pw-teams-hero__accent {
    color: var(--lilk, #7c3aed);
}

.pw-teams-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem 1rem;
    padding-bottom: 1rem;
    margin: 0 0 1.5rem;
    border-bottom: 1px solid #ededed;
}

.pw-teams-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.pw-teams-filters__label {
    color: #6b7280;
    font-weight: 600;
    font-size: 0.95rem;
    margin-inline-end: 0.25rem;
}

.pw-filter-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0.35rem 0.95rem;
    border: 1px solid #dedede;
    border-radius: 999px;
    background: #fff;
    color: #212121;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.pw-filter-pill:hover {
    background: #f7f7f8;
    color: #212121;
    border-color: #cfcfcf;
}

.pw-filter-pill.is-active {
    background: #000;
    border-color: #000;
    color: #fff;
}

.pw-teams-create {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px !important;
    height: auto !important;
    padding: 0.4rem 1.25rem !important;
    border-radius: 999px !important;
    font-weight: 600;
    white-space: nowrap;
}

.pw-team-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid #ebebeb;
    border-radius: 1.1rem;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.pw-team-card:hover {
    transform: translateY(-3px);
    border-color: rgba(124, 58, 237, 0.28);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.pw-team-card:focus-within {
    outline: 2px solid rgba(124, 58, 237, 0.35);
    outline-offset: 2px;
}

.pw-team-card__link {
    color: inherit;
    text-decoration: none;
}

.pw-team-card__link:hover {
    color: inherit;
}

.pw-team-card__banner {
    height: 72px;
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(237, 58, 171, 0.16), transparent 55%),
        linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(124, 58, 237, 0.04) 55%, #fafafa);
}

.pw-team-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 0 1.25rem 1.25rem;
}

.pw-team-card__identity {
    display: flex;
    align-items: flex-end;
    gap: 0.85rem;
    margin-top: -28px;
    margin-bottom: 0.9rem;
}

.pw-team-card__logo,
.pw-team-card__mono {
    width: 64px;
    height: 64px;
    border-radius: 1rem;
    border: 3px solid #fff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
    flex-shrink: 0;
    object-fit: cover;
    background: #f3f4f6;
}

.pw-team-card__mono {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #7c3aed, #5b21b6);
    color: #fff;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.02em;
}

.pw-team-card__titles {
    min-width: 0;
    padding-bottom: 0.15rem;
}

.pw-team-card__name {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    color: #212121;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pw-team-card__owner {
    margin: 0.15rem 0 0;
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pw-team-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.85rem;
}

.pw-team-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.65rem;
    border: 1px solid #e8e8e8;
    border-radius: 999px;
    background: #fafafa;
    color: #374151;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.pw-team-chip--soft {
    background: rgba(124, 58, 237, 0.08);
    border-color: rgba(124, 58, 237, 0.16);
    color: #5b21b6;
}

.pw-team-card__notes {
    margin: 0 0 1rem;
    flex: 1;
    color: #6b7280;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.9em;
}

.pw-team-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 0.85rem;
    border-top: 1px solid #f0f0f0;
}

.pw-team-card__slug {
    color: #9ca3af;
    font-size: 0.8rem;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pw-team-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px !important;
    height: auto !important;
    padding: 0.25rem 0.95rem !important;
    border-radius: 999px !important;
    font-size: 0.85rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.pw-teams-empty {
    text-align: center;
    padding: 3.5rem 1rem;
}

.pw-teams-empty__title {
    margin: 0 0 0.5rem;
    color: #212121;
    font-weight: 700;
    font-size: 1.15rem;
}

.pw-teams-empty__text {
    margin: 0 0 1.25rem;
    color: #6b7280;
    font-weight: 500;
}

/* Show page */
.pw-team-show-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid #ebebeb;
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.pw-team-show-hero__banner {
    height: 110px;
    background:
        radial-gradient(90% 160% at 100% 0%, rgba(237, 58, 171, 0.18), transparent 50%),
        linear-gradient(120deg, rgba(124, 58, 237, 0.22), rgba(124, 58, 237, 0.05) 60%, #f8f8f8);
}

.pw-team-show-hero__body {
    padding: 0 1.5rem 1.5rem;
}

@media (min-width: 768px) {
    .pw-team-show-hero__body {
        padding: 0 2rem 2rem;
    }
}

.pw-team-show-hero__identity {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    margin-top: -36px;
    margin-bottom: 1.1rem;
}

.pw-team-show-hero__logo,
.pw-team-show-hero__mono {
    width: 84px;
    height: 84px;
    border-radius: 1.15rem;
    border: 4px solid #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
    flex-shrink: 0;
    object-fit: cover;
    background: #f3f4f6;
}

.pw-team-show-hero__mono {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #7c3aed, #5b21b6);
    color: #fff;
    font-weight: 700;
    font-size: 1.55rem;
}

.pw-team-show-hero__title {
    margin: 0 0 0.35rem;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 700;
    line-height: 1.2;
    color: #212121;
}

.pw-team-show-panel {
    border: 1px solid #ebebeb;
    border-radius: 1.15rem;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.pw-team-member {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 0;
}

.pw-team-member + .pw-team-member {
    border-top: 1px solid #f1f1f1;
}

.pw-team-member__avatar {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid #ececec;
    background: #f3f4f6;
}

@media (max-width: 575.98px) {
    .pw-teams-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .pw-teams-create {
        width: 100%;
    }
}
