.team-id-page {
    --profile-primary: #143a68;
    --profile-primary-soft: #e8f0fb;
    --profile-accent: #2b79c2;
    --profile-text: #1c2533;
    --profile-text-muted: #5c6c82;
    --profile-border: rgba(20, 58, 104, 0.12);
    --profile-surface: #ffffff;
    --profile-surface-alt: #f5f8fc;
    --profile-shadow: 0 14px 32px rgba(17, 42, 76, 0.08);
}

.team-id-page .personal-header {
    background:
        radial-gradient(circle at top right, rgba(43, 121, 194, 0.16), transparent 38%),
        linear-gradient(180deg, #f7fbff 0%, #eef4fb 100%);
    border-bottom: 1px solid var(--profile-border);
    padding: clamp(3rem, 6vw, 5rem) 0;
}

.team-id-page .personal-header__inner {
    display: grid;
    gap: 1.75rem;
    align-items: center;
    grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
}

.team-id-page .personal-header__image {
    width: clamp(160px, 18vw, 220px);
    height: clamp(160px, 18vw, 220px);
    border-radius: 28px;
    object-fit: cover;
    box-shadow: var(--profile-shadow);
    border: 4px solid rgba(255, 255, 255, 0.9);
}

.team-id-page .personal-header__eyebrow {
    margin: 0 0 0.65rem;
    color: var(--profile-accent);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.team-id-page .personal-header__name {
    margin: 0;
    color: var(--profile-primary);
    font-size: clamp(2.1rem, 4vw, 3.1rem);
    line-height: 1.08;
}

.team-id-page .personal-header__title {
    margin: 0.55rem 0 1rem;
    color: var(--profile-text-muted);
    font-size: 1.1rem;
    font-weight: 600;
}

.team-id-page .personal-header__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.team-id-page .personal-header__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 2.75rem;
    padding: 0.7rem 1rem;
    border: 1px solid var(--profile-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
    color: var(--profile-text);
}

.team-id-page .personal-header__meta-item i {
    color: var(--profile-accent);
}

.team-id-page .personal-header__meta-item a {
    color: inherit;
    text-decoration: none;
}

.team-id-page .personal-header__meta-item a:hover {
    color: var(--profile-accent);
}

.team-id-page .content-section {
    padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.team-id-page .section--alt {
    background: var(--profile-surface-alt);
}

.team-id-page .section-title {
    margin-bottom: 1.75rem;
    text-align: left;
}

.team-id-page .section-title h2 {
    position: relative;
    display: inline-block;
    margin: 0;
    padding-bottom: 0.8rem;
    color: var(--profile-primary);
    font-size: clamp(1.65rem, 3vw, 2.15rem);
}

.team-id-page .section-title h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 56px;
    height: 3px;
    border-radius: 999px;
    background: var(--profile-accent);
}

.team-id-page .profile-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.team-id-page .profile-grid--single {
    grid-template-columns: minmax(0, 1fr);
}

.team-id-page .profile-panel {
    height: 100%;
    padding: 1.5rem 1.6rem;
    border: 1px solid var(--profile-border);
    border-radius: 24px;
    background: var(--profile-surface);
    box-shadow: var(--profile-shadow);
    content-visibility: auto;
    display: flex;
    flex-direction: column;
}

.team-id-page .profile-panel__header {
    margin-bottom: 1.1rem;
}

.team-id-page .profile-panel__body {
    min-height: 0;
}

.team-id-page .profile-panel__title,
.team-id-page .profile-panel__subtitle {
    margin: 0;
    color: var(--profile-primary);
}

.team-id-page .profile-panel__title {
    font-size: 1.35rem;
}

.team-id-page .profile-panel__subtitle {
    font-size: 1.05rem;
    font-weight: 700;
}

.team-id-page .profile-subsection--spaced {
    margin-top: 1.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--profile-border);
}

.team-id-page .profile-empty {
    margin: 0;
    color: var(--profile-text-muted);
}

.team-id-page .profile-timeline,
.team-id-page .profile-bullet-list,
.team-id-page .profile-course-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.team-id-page .profile-timeline__item,
.team-id-page .profile-bullet-list__item,
.team-id-page .profile-course-list__item {
    display: grid;
    grid-template-columns: 0.8rem minmax(0, 1fr);
    column-gap: 0.85rem;
    align-items: start;
    min-height: 0;
}

.team-id-page .profile-timeline__item + .profile-timeline__item,
.team-id-page .profile-bullet-list__item + .profile-bullet-list__item,
.team-id-page .profile-course-list__item + .profile-course-list__item {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--profile-border);
}

.team-id-page .profile-timeline__item::before,
.team-id-page .profile-bullet-list__item::before,
.team-id-page .profile-course-list__item::before {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    margin-top: 0.58rem;
    border-radius: 999px;
    background: var(--profile-accent);
    box-shadow: 0 0 0 4px var(--profile-primary-soft);
    justify-self: center;
}

.team-id-page .profile-list__content {
    min-width: 0;
}

.team-id-page .profile-timeline__period,
.team-id-page .profile-bullet-list__meta,
.team-id-page .profile-course-list__code {
    color: var(--profile-accent);
    font-weight: 700;
}

.team-id-page .profile-timeline__period {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.92rem;
}

.team-id-page .profile-timeline__body,
.team-id-page .profile-bullet-list__primary,
.team-id-page .profile-course-list__name {
    color: var(--profile-text);
}

.team-id-page .profile-timeline__body {
    line-height: 1.75;
}

.team-id-page .profile-bullet-list__primary,
.team-id-page .profile-course-list__name {
    display: block;
    font-weight: 600;
    line-height: 1.7;
}

.team-id-page .profile-bullet-list__secondary {
    margin-top: 0.22rem;
    color: var(--profile-text-muted);
    line-height: 1.65;
}

.team-id-page .profile-bullet-list__meta {
    margin-top: 0.32rem;
    font-size: 0.92rem;
}

.team-id-page .profile-course-list__code {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.45rem;
    padding: 0.24rem 0.6rem;
    border-radius: 999px;
    background: var(--profile-primary-soft);
    font-size: 0.84rem;
}

@media (min-width: 992px) {
    .team-id-page .profile-panel {
        min-height: 22rem;
        max-height: 34rem;
    }

    .team-id-page .profile-panel__body {
        flex: 1 1 auto;
        overflow-y: auto;
        padding-right: 0.35rem;
        scrollbar-gutter: stable;
    }

    .team-id-page .profile-panel__body::-webkit-scrollbar {
        width: 8px;
    }

    .team-id-page .profile-panel__body::-webkit-scrollbar-track {
        background: rgba(20, 58, 104, 0.06);
        border-radius: 999px;
    }

    .team-id-page .profile-panel__body::-webkit-scrollbar-thumb {
        background: rgba(43, 121, 194, 0.34);
        border-radius: 999px;
    }

    .team-id-page .profile-panel__body::-webkit-scrollbar-thumb:hover {
        background: rgba(43, 121, 194, 0.52);
    }
}

@media (max-width: 991px) {
    .team-id-page .profile-grid,
    .team-id-page .profile-grid--single {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 767px) {
    .team-id-page .personal-header__inner {
        grid-template-columns: minmax(0, 1fr);
        text-align: center;
    }

    .team-id-page .personal-header__image {
        justify-self: center;
    }

    .team-id-page .personal-header__meta {
        justify-content: center;
    }

    .team-id-page .profile-panel {
        padding: 1.2rem 1.15rem;
        border-radius: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .team-id-page .profile-panel {
        content-visibility: visible;
    }
}
