/*
 * Community profile phase one
 *
 * Implements the approved social-home composition with a calm, community-first
 * profile header. Public community activity remains intentionally absent until
 * its data, privacy and moderation contracts are ready.
 */

.geekly-profile--phase-one,
.geekly-profile--restricted {
    width: min(100%, 1560px);
    max-width: none;
    margin: 0 auto;
    padding: clamp(22px, 2.7vw, 42px) clamp(16px, 3vw, 48px) clamp(40px, 4vw, 56px);
}

/* The profile's own closing space is sufficient. Avoid stacking the global
   main-canvas and footer spacing beneath the final profile panel. */
body:has(.geekly-profile--phase-one) .geekly-main,
body:has(.geekly-profile--restricted) .geekly-main {
    padding-bottom: 0;
}

.geekly-main:has(.geekly-profile--phase-one) + .geekly-footer,
.geekly-main:has(.geekly-profile--restricted) + .geekly-footer {
    margin-top: 0;
}

/* On wide layouts, bring the profile card closer to the fixed site bar while
   retaining a clear 40px opening rhythm. Compact and phone layouts stay put. */
@media (min-width: 1280px) {
    body:has(.geekly-profile--phase-one) .geekly-main,
    body:has(.geekly-profile--restricted) .geekly-main {
        padding-top: 24px;
    }

    .geekly-profile--phase-one,
    .geekly-profile--restricted {
        padding-top: 16px;
    }
}

.geekly-profile--phase-one,
.geekly-profile--phase-one * {
    box-sizing: border-box;
}

.geekly-profile--phase-one .geekly-profile__layout {
    display: grid;
    gap: 16px;
    container-name: profile-layout;
    container-type: inline-size;
}

.geekly-profile--phase-one .geekly-profile__main-column,
.geekly-profile--phase-one .geekly-profile__identity,
.geekly-profile--phase-one .geekly-profile__aside {
    min-width: 0;
}

/* ── Hero ───────────────────────────────────────────────────────────────── */

.geekly-profile--phase-one .geekly-profile__hero-card {
    position: relative;
    overflow: hidden;
    margin: 0;
    border: 1px solid color-mix(in srgb, var(--clr-border) 165%, transparent);
    border-radius: 16px;
    background: var(--clr-bg-surface);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.22);
}

.geekly-profile--phase-one .geekly-profile__cover {
    position: relative;
    height: clamp(154px, 13.6vw, 218px);
    overflow: hidden;
    border-radius: 15px 15px 0 0;
    background-color: #111016;
    background-image:
        radial-gradient(ellipse 36% 125% at 91% 45%, rgba(230, 57, 70, 0.48), transparent 68%),
        radial-gradient(ellipse 37% 120% at 13% 124%, rgba(139, 92, 246, 0.28), transparent 73%),
        linear-gradient(120deg, #111016 2%, #1a1319 55%, #120e13 100%);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.geekly-profile--phase-one .geekly-profile__cover::after {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, transparent 0 44%, rgba(255, 255, 255, 0.03) 44.1% 44.4%, transparent 44.5% 100%),
        repeating-linear-gradient(115deg, transparent 0 67px, rgba(255, 255, 255, 0.025) 67px 68px);
    content: '';
    pointer-events: none;
}

.geekly-profile--phase-one .geekly-profile__hero-body {
    position: relative;
    min-height: 280px;
    padding: 0 clamp(20px, 3.5vw, 48px) 19px;
}

/* The avatar is the only element allowed to cross the cover boundary. */
.geekly-profile--phase-one .geekly-profile__avatar-row {
    display: block;
    min-height: 0;
    margin: 0;
}

.geekly-profile--phase-one .geekly-profile__avatar-wrap,
.geekly-profile--phase-one .geekly-profile__hero-body .geekly-profile__avatar-wrap {
    position: absolute;
    z-index: 2;
    top: -66px;
    left: clamp(20px, 3.5vw, 48px);
    display: block;
    width: 120px;
    height: 120px;
    margin: 0;
    padding: 3px;
    overflow: visible;
    border-radius: 50%;
    --profile-avatar-accent: linear-gradient(140deg, #f0bc58 0%, var(--clr-brand) 44%, #8f202a 72%, #3b1920 100%);
    background: var(--profile-avatar-accent);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.38);
}

.geekly-profile--phase-one .geekly-profile__avatar-wrap::before {
    display: none;
}

.geekly-profile--phase-one .geekly-profile__avatar,
.geekly-profile--phase-one .geekly-profile__hero-body .geekly-profile__avatar {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 2px solid var(--clr-bg-surface);
    border-radius: 50%;
    outline: 0;
    background: var(--clr-bg-elevated);
    object-fit: cover;
}

.geekly-profile--phase-one .geekly-profile__avatar-wrap--shape-square {
    border-radius: 8px !important;
}

.geekly-profile--phase-one .geekly-profile__avatar-wrap--shape-square .geekly-profile__avatar {
    border-radius: 5px !important;
}

.geekly-profile--phase-one .geekly-profile__avatar-wrap--shape-hexagon {
    left: calc(clamp(20px, 3.5vw, 48px) - 10px);
    width: 139px;
    border-radius: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.geekly-profile--phase-one .geekly-profile__avatar-wrap--shape-hexagon::after {
    position: absolute;
    z-index: 0;
    inset: 0;
    background: var(--profile-avatar-accent);
    clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
    content: '';
}

.geekly-profile--phase-one .geekly-profile__avatar-wrap--shape-hexagon .geekly-profile__avatar {
    position: relative;
    z-index: 1;
    width: calc(100% - 6px);
    height: calc(100% - 6px);
    margin: 3px;
    border: 0;
    border-radius: 0 !important;
    clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}

.geekly-profile--phase-one .geekly-profile__level-badge {
    position: absolute;
    z-index: 3;
    right: -8px;
    bottom: -8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    height: 26px;
    padding: 0 7px;
    border: 2px solid var(--clr-bg-surface);
    border-radius: 7px;
    background: var(--clr-brand);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.geekly-profile--phase-one .geekly-profile__identity {
    min-width: 0;
    padding-top: 76px;
}

.geekly-profile--phase-one .geekly-profile__name {
    margin: 0;
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(2.625rem, 4.4vw, 3.75rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 0.84;
    text-transform: none;
}

.geekly-profile--phase-one .geekly-profile__handle-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.geekly-profile--phase-one .geekly-profile__handle {
    color: var(--clr-text-muted);
    font-size: 0.8125rem;
    line-height: 1;
}

.geekly-profile--phase-one .geekly-profile__role-badge {
    flex: 0 0 auto;
    padding: 3px 7px;
    border: 1px solid rgba(230, 57, 70, 0.4);
    border-radius: 4px;
    background: rgba(230, 57, 70, 0.13);
    color: #ffacb2;
    font-family: var(--font-display);
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    line-height: 1;
    text-transform: uppercase;
}

.geekly-profile--phase-one .geekly-profile__role-badge--editor {
    border-color: rgba(240, 188, 88, 0.42);
    background: rgba(240, 188, 88, 0.12);
    color: #f5d595;
}

.geekly-profile--phase-one .geekly-profile__role-badge--author {
    border-color: rgba(139, 92, 246, 0.42);
    background: rgba(139, 92, 246, 0.12);
    color: #cebaff;
}

.geekly-profile--phase-one .geekly-profile__role-badge--contributor {
    border-color: rgba(16, 185, 129, 0.42);
    background: rgba(16, 185, 129, 0.12);
    color: #91e7c4;
}

.geekly-profile--phase-one .geekly-profile__bio {
    max-width: 700px;
    margin: 14px 0 0;
    color: var(--clr-text-secondary);
    font-size: clamp(0.875rem, 1.25vw, 1rem);
    font-weight: 500;
    line-height: 1.45;
}

.geekly-profile--phase-one .geekly-profile__counts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: clamp(14px, 2vw, 28px);
    margin: 20px 0 0;
}

.geekly-profile--phase-one .geekly-profile__count {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    min-height: 34px;
    gap: 5px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    text-decoration: none;
    white-space: nowrap;
}

.geekly-profile--phase-one button.geekly-profile__count {
    cursor: pointer;
}

.geekly-profile--phase-one .geekly-profile__count strong {
    display: block;
    flex: 0 0 auto;
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.5625rem;
    font-weight: 800;
    line-height: 1;
}

.geekly-profile--phase-one .geekly-profile__count-label {
    display: block;
    flex: 0 0 auto;
    color: var(--clr-text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
}

.geekly-profile--phase-one button.geekly-profile__count:hover strong,
.geekly-profile--phase-one button.geekly-profile__count:hover span {
    color: #ff98a0;
}

/* Relationship actions stay alongside the identity, not in the right details rail. */
.geekly-profile--phase-one .geekly-profile__hero-action {
    position: absolute;
    top: 20px;
    right: clamp(20px, 3.5vw, 48px);
    display: flex;
    align-items: center;
    min-height: 0;
    padding: 0;
}

.geekly-profile--phase-one .geekly-profile__action,
.geekly-profile--phase-one [data-follow-action] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    gap: 8px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: #fff;
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.075em;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.geekly-profile--phase-one .geekly-profile__action svg,
.geekly-profile--phase-one [data-follow-action] svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
}

.geekly-profile--phase-one .geekly-profile__action--quiet {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.05);
}

.geekly-profile--phase-one .geekly-profile__action--quiet:hover {
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateY(-1px);
}

.geekly-profile--phase-one .geekly-profile__action--primary {
    border-color: rgba(255, 255, 255, 0.16);
    background: linear-gradient(135deg, #f35561, var(--clr-brand));
    box-shadow: 0 7px 16px rgba(230, 57, 70, 0.2);
}

.geekly-profile--phase-one .geekly-profile__action--primary:hover {
    border-color: rgba(255, 255, 255, 0.26);
    background: linear-gradient(135deg, #fa6973, #de3542);
    color: #fff;
    box-shadow: 0 9px 20px rgba(230, 57, 70, 0.28);
    transform: translateY(-1px);
}

.geekly-profile--phase-one .geekly-profile__utility {
    display: grid;
    gap: 9px;
    margin-top: 9px;
}

.geekly-profile--phase-one .geekly-profile__utility-meta,
.geekly-profile--phase-one .geekly-profile__meta-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 13px;
}

.geekly-profile--phase-one .geekly-profile__join-date,
.geekly-profile--phase-one .geekly-profile__author-link {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    gap: 7px;
    color: var(--clr-text-muted);
    font-size: 0.75rem;
    line-height: 1.1;
    text-decoration: none;
}

.geekly-profile--phase-one .geekly-profile__hero-join-date {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    margin-top: 10px;
}

.geekly-profile--phase-one .geekly-profile__hero-join-date .geekly-profile__join-date,
.geekly-profile--phase-one .geekly-profile__hero-join-date .geekly-profile__author-link {
    display: grid;
    grid-template-columns: 14px minmax(0, auto);
    align-items: center;
    align-self: center;
    height: 28px;
    min-height: 28px;
    margin: 0;
    color: var(--clr-text-muted);
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
}

.geekly-profile--phase-one .geekly-profile__hero-join-date .geekly-profile__join-date svg,
.geekly-profile--phase-one .geekly-profile__hero-join-date .geekly-profile__author-link svg {
    display: block;
}

.geekly-profile--phase-one .geekly-profile__hero-join-date .geekly-profile__author-link:hover {
    color: #fff;
}

.geekly-profile--phase-one .geekly-profile__hero-join-date + .geekly-profile__counts {
    margin-top: 10px;
}

.geekly-profile--phase-one .geekly-profile__join-date svg,
.geekly-profile--phase-one .geekly-profile__author-link svg {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.geekly-profile--phase-one .geekly-profile__author-link {
    color: var(--clr-text-secondary);
    font-family: var(--font-display);
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}

.geekly-profile--phase-one .geekly-profile__author-link:hover {
    color: #fff;
}

.geekly-profile--phase-one .geekly-profile__socials {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin: 0;
}

.geekly-profile--phase-one .geekly-profile__social-link,
.geekly-profile--phase-one .geekly-profile__social-link--lg {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--clr-text-secondary);
    text-decoration: none;
    transition: color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.geekly-profile--phase-one .geekly-profile__social-link svg {
    width: 15px;
    height: 15px;
}

.geekly-profile--phase-one .geekly-profile__social-link:hover {
    background: rgba(255, 255, 255, 0.13);
    color: #fff;
    transform: translateY(-1px);
}

/* ── Geek Record and right rail ─────────────────────────────────────────── */

.geekly-profile--phase-one .geekly-profile__aside {
    display: none;
}

.geekly-profile--phase-one .geekly-profile__record-card,
.geekly-profile--phase-one .geekly-profile__meta-card {
    border: 1px solid color-mix(in srgb, var(--clr-border) 165%, transparent);
    border-radius: 13px;
    background: var(--clr-bg-surface);
}

.geekly-profile--phase-one .geekly-profile__record-card {
    padding: 20px;
    background: radial-gradient(circle at 100% 0, rgba(230, 57, 70, 0.11), transparent 48%), var(--clr-bg-surface);
}

.geekly-profile--phase-one .geekly-profile__record-card h2 {
    margin: 0;
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.8125rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 0.9;
    text-transform: uppercase;
}

.geekly-profile--phase-one .geekly-profile__record-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 17px;
}

.geekly-profile--phase-one .geekly-profile__record-stat {
    min-height: 74px;
    padding: 13px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--clr-text-secondary);
    text-decoration: none;
    transition: background 0.16s ease, color 0.16s ease;
}

.geekly-profile--phase-one a.geekly-profile__record-stat:hover {
    background: var(--clr-bg-hover);
    color: #fff;
}

.geekly-profile--phase-one .geekly-profile__record-stat strong,
.geekly-profile--phase-one .geekly-profile__record-stat span {
    display: block;
}

.geekly-profile--phase-one .geekly-profile__record-stat strong {
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.5625rem;
    font-weight: 800;
    line-height: 0.88;
}

.geekly-profile--phase-one .geekly-profile__record-stat span {
    margin-top: 7px;
    color: var(--clr-text-muted);
    font-family: var(--font-display);
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    line-height: 1;
    text-transform: uppercase;
}

.geekly-profile--phase-one .geekly-profile__record-stat--rank strong { color: #ff9aa2; }
.geekly-profile--phase-one .geekly-profile__record-stat--trophies strong { color: #f0bc58; }
.geekly-profile--phase-one .geekly-profile__record-stat--xp strong { color: #57c99a; }

.geekly-profile--phase-one .geekly-profile__record-progress {
    margin-top: 17px;
}

.geekly-profile--phase-one .geekly-profile__record-progress-track {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #38353e;
}

.geekly-profile--phase-one .geekly-profile__record-progress-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--clr-brand), #ff777f);
}

.geekly-profile--phase-one .geekly-profile__record-progress p,
.geekly-profile--phase-one .geekly-profile__record-note {
    margin: 9px 0 0;
    color: var(--clr-text-muted);
    font-size: 0.6875rem;
    line-height: 1.35;
}

.geekly-profile--phase-one .geekly-profile__record-note {
    color: var(--clr-text-secondary);
}

.geekly-profile--phase-one .geekly-profile__record-trophy-heading {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin: 20px 0 8px;
    color: var(--clr-text-primary);
    font-family: var(--font-display);
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    line-height: 1;
    text-transform: uppercase;
}

.geekly-profile--phase-one .geekly-profile__record-trophy-heading-status {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    color: var(--clr-text-muted);
    font-size: 0.625rem;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.geekly-profile--phase-one .geekly-profile__record-trophy-heading-status::before {
    content: '-';
    color: var(--clr-text-muted);
}

.geekly-profile--phase-one .geekly-profile__record-trophy-heading-status strong {
    color: #f0bc58;
    font-size: 1rem;
    line-height: 1;
}

.geekly-profile--phase-one .geekly-profile__record-trophy-row {
    --profile-trophy-row-height: 44px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    min-height: var(--profile-trophy-row-height);
    margin-top: 0;
}

.geekly-profile--phase-one .geekly-profile__trophy-summary {
    display: grid;
    align-self: stretch;
    align-content: center;
    grid-template-columns: minmax(0, 1fr);
    min-height: var(--profile-trophy-row-height);
    min-width: 0;
    gap: 3px;
}

.geekly-profile--phase-one .geekly-profile__trophy-stamps {
    display: flex;
    align-items: center;
    height: var(--profile-trophy-row-height);
    min-width: 0;
    min-height: var(--profile-trophy-row-height);
    isolation: isolate;
}

.geekly-profile--phase-one .geekly-profile__trophy-stamp {
    display: grid;
    position: relative;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--trophy-color) 55%, var(--clr-border));
    border-radius: 10px;
    background: color-mix(in srgb, var(--trophy-color) 14%, var(--clr-bg-elevated));
    font-size: 1.125rem;
    line-height: 1;
}

.geekly-profile--phase-one .geekly-profile__trophy-stamp + .geekly-profile__trophy-stamp {
    margin-left: -10px;
}

.geekly-profile--phase-one .geekly-profile__trophy-stamp--common { --trophy-color: #8b949e; }
.geekly-profile--phase-one .geekly-profile__trophy-stamp--uncommon { --trophy-color: #3fb950; }
.geekly-profile--phase-one .geekly-profile__trophy-stamp--rare { --trophy-color: #58a6ff; }
.geekly-profile--phase-one .geekly-profile__trophy-stamp--legendary { --trophy-color: #e6a817; }

.geekly-profile--phase-one .geekly-profile__trophy-link {
    display: inline-flex;
    align-items: center;
    align-self: stretch;
    height: var(--profile-trophy-row-height);
    min-height: var(--profile-trophy-row-height);
    gap: 6px;
    margin: 0;
    padding: 0 11px;
    border: 1px solid color-mix(in srgb, var(--clr-text-muted) 55%, var(--clr-border));
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--clr-text-primary);
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
}

.geekly-profile--phase-one .geekly-profile__trophy-link:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.geekly-profile--phase-one .geekly-profile__trophy-link svg {
    width: 16px;
    height: 16px;
}

/* Compact layouts keep the record at the top, then allow it to collapse. */
.geekly-profile--phase-one .geekly-profile__mobile-record {
    display: block;
    margin-top: 16px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--clr-border) 165%, transparent);
    border-radius: 12px;
    background: var(--clr-bg-surface);
}

.geekly-profile--phase-one .geekly-profile__mobile-record > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 54px;
    gap: 12px;
    padding: 0 17px;
    color: #fff;
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 1.3125rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 0.9;
    list-style: none;
    text-transform: uppercase;
}

.geekly-profile--phase-one .geekly-profile__mobile-record > summary::-webkit-details-marker,
.geekly-profile--phase-one .geekly-profile__mobile-record > summary::marker {
    display: none;
    content: '';
}

.geekly-profile--phase-one .geekly-profile__mobile-record > summary svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    transition: transform var(--transition-fast);
}

.geekly-profile--phase-one .geekly-profile__mobile-record[open] > summary svg {
    transform: rotate(180deg);
}

.geekly-profile--phase-one .geekly-profile__mobile-record .geekly-profile__record-card {
    margin: 0;
    border: 0;
    border-top: 1px solid var(--clr-border);
    border-radius: 0;
}

.geekly-profile--phase-one .geekly-profile__mobile-record .geekly-profile__record-card h2 {
    display: none;
}

.geekly-profile--phase-one .geekly-profile__mobile-record .geekly-profile__record-grid {
    margin-top: 0;
}

/* ── Restricted profile ─────────────────────────────────────────────────── */

.geekly-profile--restricted {
    display: grid;
    min-height: min(480px, calc(100vh - var(--topbar-height) - 64px));
    place-items: center;
}

.geekly-profile--restricted .geekly-profile__restricted-card {
    width: min(100%, 460px);
    padding: clamp(30px, 6vw, 54px);
    border: 1px solid color-mix(in srgb, var(--clr-border) 165%, transparent);
    border-radius: 14px;
    background: var(--clr-bg-surface);
    text-align: center;
}

.geekly-profile--restricted .geekly-profile__restricted-card > svg {
    width: 38px;
    height: 38px;
    margin: 0 auto 17px;
    color: var(--clr-text-muted);
}

.geekly-profile--restricted h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    text-transform: uppercase;
}

.geekly-profile--restricted p {
    max-width: 320px;
    margin: 12px auto 22px;
    color: var(--clr-text-muted);
}

.geekly-profile--restricted .geekly-btn {
    min-height: 44px;
    padding: 0 16px;
}

/* ── Responsive hierarchy ───────────────────────────────────────────────── */

@media (min-width: 700px) {
    .geekly-profile--phase-one .geekly-profile__cover {
        height: clamp(160px, 10.5vw, 176px);
    }

    .geekly-profile--phase-one .geekly-profile__hero-body {
        min-height: 300px;
    }

    .geekly-profile--phase-one .geekly-profile__avatar-wrap,
    .geekly-profile--phase-one .geekly-profile__hero-body .geekly-profile__avatar-wrap {
        top: -59px;
        width: 118px;
        height: 118px;
    }

    .geekly-profile--phase-one .geekly-profile__avatar-wrap--shape-hexagon {
        left: calc(clamp(20px, 3.5vw, 48px) - 9px);
        width: 136px;
    }

    .geekly-profile--phase-one .geekly-profile__identity {
        padding-top: 75px;
    }

    .geekly-profile--phase-one .geekly-profile__hero-action {
        top: 75px;
    }
}

@media (min-width: 700px) and (max-width: 1179px) {
    .geekly-profile--phase-one .geekly-profile__hero-body {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(230px, 0.4fr);
        column-gap: clamp(32px, 4vw, 66px);
        min-height: 318px;
    }

    .geekly-profile--phase-one .geekly-profile__identity {
        grid-column: 1;
        grid-row: 1;
        padding-top: 78px;
    }

    .geekly-profile--phase-one .geekly-profile__utility {
        grid-column: 2;
        grid-row: 1;
        align-self: start;
        gap: 9px;
        margin: 0;
        padding-top: 78px;
    }

    .geekly-profile--phase-one .geekly-profile__utility-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        margin-top: auto;
    }

    .geekly-profile--phase-one .geekly-profile__socials {
        margin-top: 12px;
    }

    .geekly-profile--phase-one .geekly-profile__hero-action {
        top: 78px;
    }
}

@media (min-width: 1180px) {
    .geekly-profile--phase-one .geekly-profile__layout {
        grid-template-columns: minmax(0, 1.4fr) minmax(310px, 0.6fr);
        gap: 22px;
        align-items: start;
    }

    .geekly-profile--phase-one .geekly-profile__hero-body {
        min-height: clamp(280px, 17.5vw, 292px);
    }

    .geekly-profile--phase-one .geekly-profile__identity {
        padding-top: 78px;
    }

    .geekly-profile--phase-one .geekly-profile__counts {
        margin-top: 22px;
    }

    .geekly-profile--phase-one .geekly-profile__utility,
    .geekly-profile--phase-one .geekly-profile__mobile-record {
        display: none;
    }

    .geekly-profile--phase-one .geekly-profile__hero-action {
        top: 78px;
    }

    .geekly-profile--phase-one .geekly-profile__aside {
        position: sticky;
        top: calc(var(--topbar-height) + 20px);
        display: grid;
        gap: 12px;
    }

    .geekly-profile--phase-one .geekly-profile__meta-card {
        display: grid;
        gap: 12px;
        padding: 17px 20px;
    }

    .geekly-profile--phase-one .geekly-profile__meta-list {
        min-width: 0;
        align-items: center;
        gap: 8px 13px;
    }

    .geekly-profile--phase-one .geekly-profile__social-row {
        display: flex;
        align-items: center;
        min-height: 36px;
    }

    .geekly-profile--phase-one .geekly-profile__rail-socials {
        flex-wrap: wrap;
        gap: 8px;
    }
}

@media (max-width: 699px) {
    .geekly-profile--phase-one .geekly-profile__hero-card {
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }

    .geekly-profile--phase-one .geekly-profile__cover {
        height: 130px;
        border-radius: 0;
    }

    .geekly-profile--phase-one .geekly-profile__hero-body {
        min-height: 280px;
        padding: 0 20px 18px;
    }

    .geekly-profile--phase-one .geekly-profile__avatar-wrap,
    .geekly-profile--phase-one .geekly-profile__hero-body .geekly-profile__avatar-wrap {
        top: -47px;
        left: 20px;
        width: 92px;
        height: 92px;
    }

    .geekly-profile--phase-one .geekly-profile__avatar-wrap--shape-hexagon {
        left: 13px;
        width: 106px;
    }

    .geekly-profile--phase-one .geekly-profile__identity {
        padding-top: 63px;
    }

    .geekly-profile--phase-one .geekly-profile__name {
        font-size: clamp(2.1rem, 11vw, 3rem);
    }

    .geekly-profile--phase-one .geekly-profile__hero-action {
        top: 9px;
        right: 20px;
    }

    .geekly-profile--phase-one .geekly-profile__action {
        min-height: 40px;
        padding: 0 12px;
    }

    .geekly-profile--phase-one .geekly-profile__action svg {
        width: 14px;
        height: 14px;
    }

    .geekly-profile--phase-one .geekly-profile__counts {
        gap: 14px 18px;
        margin-top: 18px;
    }

    .geekly-profile--phase-one .geekly-profile__count strong {
        font-size: 1.4375rem;
    }

    .geekly-profile--phase-one .geekly-profile__utility {
        gap: 9px;
        margin-top: 9px;
    }

    .geekly-profile--phase-one .geekly-profile__utility-meta {
        align-items: flex-start;
        gap: 2px;
    }

    .geekly-profile--phase-one .geekly-profile__mobile-record {
        margin: 16px 16px 0;
    }

    .geekly-profile--phase-one .geekly-profile__record-stat {
        min-height: 68px;
        padding: 11px;
    }

    .geekly-profile--phase-one .geekly-profile__record-stat strong {
        font-size: 1.375rem;
    }
}

@media (max-width: 640px) {
    .geekly-profile--phase-one,
    .geekly-profile--restricted {
        width: calc(100% + 32px);
        margin: -24px -16px 0;
        padding-bottom: 48px;
    }

    .geekly-profile--restricted {
        min-height: calc(100vh - var(--topbar-height) - var(--mobile-bar-h));
        padding: 24px 16px 48px;
    }
}

/*
 * The desktop rail needs enough real content width for identity and action
 * controls to remain distinct. A persistent site navigation can reduce that
 * width even on a large viewport, so use the compact arrangement before the
 * hero becomes cramped rather than allowing controls to collide.
 */
@media (min-width: 700px) {
    @container profile-layout (max-width: 799px) {
        .geekly-profile--phase-one .geekly-profile__layout {
            grid-template-columns: minmax(0, 1fr);
        }

        .geekly-profile--phase-one .geekly-profile__aside {
            display: none;
        }

        .geekly-profile--phase-one .geekly-profile__mobile-record {
            display: block;
        }

        .geekly-profile--phase-one .geekly-profile__utility {
            display: grid;
        }

        .geekly-profile--phase-one .geekly-profile__hero-action {
            top: 20px;
        }
    }
}

@media (max-width: 380px) {
    .geekly-profile--phase-one .geekly-profile__name {
        font-size: 2.3125rem;
        white-space: nowrap;
    }

    .geekly-profile--phase-one .geekly-profile__action {
        width: auto;
        padding: 0 12px;
    }

    .geekly-profile--phase-one .geekly-profile__action span {
        display: inline;
    }

    .geekly-profile--phase-one .geekly-profile__counts {
        gap: 12px 8px;
    }

    .geekly-profile--phase-one .geekly-profile__count strong {
        font-size: 1.25rem;
    }

    .geekly-profile--phase-one .geekly-profile__count span {
        font-size: 0.625rem;
    }

    .geekly-profile--phase-one .geekly-profile__record-trophy-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 4px;
    }

    .geekly-profile--phase-one .geekly-profile__trophy-link {
        justify-self: start;
    }
}

.geekly-profile--phase-one .geekly-profile__action:focus-visible,
.geekly-profile--phase-one [data-follow-action]:focus-visible,
.geekly-profile--phase-one .geekly-profile__count:focus-visible,
.geekly-profile--phase-one .geekly-profile__social-link:focus-visible,
.geekly-profile--phase-one .geekly-profile__author-link:focus-visible,
.geekly-profile--phase-one .geekly-profile__record-stat:focus-visible,
.geekly-profile--phase-one .geekly-profile__trophy-link:focus-visible,
.geekly-profile--phase-one .geekly-profile__mobile-record > summary:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .geekly-profile--phase-one *,
    .geekly-profile--phase-one *::before,
    .geekly-profile--phase-one *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}


/* ── Profile areas ───────────────────────────────────────────────────────── */
/* Reset the retired generic profile grid so the current nested layout can use
   the full available main canvas rather than leaving an empty desktop column. */
.geekly-profile--phase-one {
    display: block;
    color: var(--clr-text-primary);
}

.geekly-profile--phase-one .geekly-profile__content {
    min-width: 0;
    margin-top: 16px;
}

.geekly-profile--phase-one .geekly-profile__tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-width: 0;
    margin: 0;
    padding: 6px 0;
}

.geekly-profile--phase-one .geekly-profile__tab {
    display: inline-flex;
    flex: 0 0 auto;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 13px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: var(--clr-text-muted);
    cursor: pointer;
    font-family: var(--font-display);
    font-size: clamp(0.625rem, 0.78vw, 0.75rem);
    font-weight: 800;
    letter-spacing: 0.055em;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
    white-space: nowrap;
}

.geekly-profile--phase-one .geekly-profile__tab:hover {
    color: #fff;
}

.geekly-profile--phase-one .geekly-profile__tab[aria-selected="true"] {
    border-color: rgba(230, 57, 70, 0.48);
    background: rgba(230, 57, 70, 0.14);
    box-shadow: none;
    color: #fff;
}

.geekly-profile--phase-one .geekly-profile__panel {
    min-width: 0;
    margin-top: 16px;
}

.geekly-profile--phase-one .geekly-profile__panel[hidden] {
    display: none;
}

.geekly-profile--phase-one .geekly-profile__feed {
    display: grid;
    gap: 10px;
}

.geekly-profile--phase-one .geekly-profile__activity-card {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
    min-width: 0;
    padding: 14px;
    border: 1px solid color-mix(in srgb, var(--clr-border) 150%, transparent);
    border-radius: 13px;
    background: var(--clr-bg-surface);
    color: var(--clr-text-primary);
    text-decoration: none;
    transition: border-color 0.16s ease, background-color 0.16s ease, transform 0.16s ease;
}

.geekly-profile--phase-one .geekly-profile__activity-card:hover {
    border-color: rgba(255, 255, 255, 0.24);
    background: var(--clr-bg-hover);
    color: #fff;
    transform: translateY(-1px);
}

.geekly-profile--phase-one .geekly-profile__activity-mark {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 11px;
    background: rgba(139, 92, 246, 0.16);
    color: #d1bcff;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1;
}

.geekly-profile--phase-one .geekly-profile__activity-mark--comment {
    background: rgba(92, 199, 219, 0.15);
    color: #a9ebf6;
}

.geekly-profile--phase-one .geekly-profile__activity-mark--quiz {
    background: rgba(240, 188, 88, 0.15);
    color: #f6cf85;
}

.geekly-profile--phase-one .geekly-profile__activity-mark--saved {
    background: rgba(230, 57, 70, 0.13);
    color: #ffb2b8;
}

.geekly-profile--phase-one .geekly-profile__activity-mark--history {
    background: rgba(16, 185, 129, 0.14);
    color: #9ae8c8;
}

.geekly-profile--phase-one .geekly-profile__activity-mark--article {
    background: rgba(148, 163, 184, 0.15);
    color: #d2dae7;
}

.geekly-profile--phase-one .geekly-profile__activity-mark--personality {
    background: rgba(244, 114, 182, 0.15);
    color: #ffb4d5;
}

.geekly-profile--phase-one .geekly-profile__activity-mark--review {
    background: rgba(240, 188, 88, 0.15);
    color: #f6cf85;
}

.geekly-profile--phase-one .geekly-profile__activity-mark--trailer {
    background: rgba(230, 57, 70, 0.14);
    color: #ffb1b8;
}

.geekly-profile--phase-one .geekly-profile__activity-mark--guide {
    background: rgba(16, 185, 129, 0.14);
    color: #9ae8c8;
}

.geekly-profile--phase-one .geekly-profile__activity-copy {
    display: grid;
    min-width: 0;
    gap: 5px;
}

.geekly-profile--phase-one .geekly-profile__activity-copy > strong {
    overflow: hidden;
    color: #fff;
    font-size: 0.975rem;
    font-weight: 700;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.geekly-profile--phase-one .geekly-profile__activity-meta {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
    color: var(--clr-text-muted);
    font-size: 0.72rem;
    line-height: 1.2;
}

.geekly-profile--phase-one .geekly-profile__activity-meta b {
    overflow: hidden;
    color: var(--clr-text-secondary);
    font-size: 0.75rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.geekly-profile--phase-one .geekly-profile__activity-meta time {
    flex: 0 0 auto;
}

.geekly-profile--phase-one .geekly-profile__comment-excerpt {
    display: -webkit-box;
    overflow: hidden;
    color: var(--clr-text-muted);
    font-size: 0.82rem;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.geekly-profile--phase-one .geekly-profile__quiz-score {
    align-self: center;
    min-width: 54px;
    padding: 8px 7px;
    border: 1px solid rgba(240, 188, 88, 0.4);
    border-radius: 10px;
    background: rgba(240, 188, 88, 0.1);
    color: #f5ca70;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1;
    text-align: center;
}

.geekly-profile--phase-one .geekly-profile__empty-state {
    padding: clamp(32px, 6vw, 58px) 24px;
    border: 1px solid color-mix(in srgb, var(--clr-border) 145%, transparent);
    border-radius: 13px;
    background: var(--clr-bg-surface);
    color: var(--clr-text-muted);
    text-align: center;
}

.geekly-profile--phase-one .geekly-profile__empty-state strong {
    display: block;
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.35rem;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.geekly-profile--phase-one .geekly-profile__empty-state p {
    max-width: 420px;
    margin: 8px auto 0;
    font-size: 0.875rem;
    line-height: 1.5;
}

.geekly-profile--phase-one .geekly-profile__pagination {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    color: var(--clr-text-muted);
    font-size: 0.75rem;
}

.geekly-profile--phase-one .geekly-profile__pagination a {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    padding: 0 12px;
    border: 1px solid var(--clr-border);
    border-radius: 8px;
    color: var(--clr-text-primary);
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: uppercase;
}

.geekly-profile--phase-one .geekly-profile__pagination a:hover {
    border-color: rgba(255, 255, 255, 0.35);
    background: var(--clr-bg-hover);
    color: #fff;
}

.geekly-profile--phase-one .geekly-profile__saved-shelf-link,
.geekly-profile--phase-one .geekly-profile__private-area-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 7px;
    margin-top: 10px;
    color: var(--clr-text-secondary);
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.045em;
    text-decoration: none;
    text-transform: uppercase;
}

.geekly-profile--phase-one .geekly-profile__saved-shelf-link:hover,
.geekly-profile--phase-one .geekly-profile__private-area-link:hover {
    color: #fff;
}

.geekly-profile--phase-one .geekly-profile__trophy-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.geekly-profile--phase-one .geekly-profile__trophy-card {
    display: grid;
    min-height: 130px;
    align-content: start;
    gap: 8px;
    padding: 15px;
    border: 1px solid color-mix(in srgb, var(--clr-border) 150%, transparent);
    border-radius: 13px;
    background: var(--clr-bg-surface);
    color: var(--clr-text-primary);
    text-decoration: none;
    transition: border-color 0.16s ease, background-color 0.16s ease, transform 0.16s ease;
}

.geekly-profile--phase-one .geekly-profile__trophy-card:hover {
    border-color: rgba(240, 188, 88, 0.52);
    background: var(--clr-bg-hover);
    color: #fff;
    transform: translateY(-1px);
}

.geekly-profile--phase-one .geekly-profile__trophy-card > span {
    color: #f2ba59;
    font-size: 1.25rem;
}

.geekly-profile--phase-one .geekly-profile__trophy-card strong {
    color: #fff;
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.015em;
    line-height: 1;
    text-transform: uppercase;
}

.geekly-profile--phase-one .geekly-profile__trophy-card small {
    color: var(--clr-text-muted);
    font-size: 0.72rem;
    line-height: 1.4;
}

.geekly-profile--phase-one .geekly-profile__tab:focus-visible,
.geekly-profile--phase-one .geekly-profile__activity-card:focus-visible,
.geekly-profile--phase-one .geekly-profile__trophy-card:focus-visible,
.geekly-profile--phase-one .geekly-profile__pagination a:focus-visible,
.geekly-profile--phase-one .geekly-profile__saved-shelf-link:focus-visible,
.geekly-profile--phase-one .geekly-profile__private-area-link:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

@media (max-width: 760px) {
    .geekly-profile--phase-one .geekly-profile__content {
        overflow: visible;
    }

    .geekly-profile--phase-one .geekly-profile__tabs {
        display: flex;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        flex-wrap: nowrap;
        gap: 6px;
        overflow-x: auto;
        padding: 6px 16px;
        scroll-padding-inline: 16px;
        scrollbar-width: none;
    }

    .geekly-profile--phase-one .geekly-profile__tabs::-webkit-scrollbar {
        display: none;
    }

    .geekly-profile--phase-one .geekly-profile__tab {
        flex: 0 0 auto;
        min-height: 44px;
        padding: 0 13px;
        font-size: 0.7rem;
    }

    .geekly-profile--phase-one .geekly-profile__panel {
        margin: 12px 16px 0;
    }

    .geekly-profile--phase-one .geekly-profile__activity-card {
        gap: 10px;
        padding: 12px;
    }

    .geekly-profile--phase-one .geekly-profile__activity-copy > strong {
        white-space: normal;
    }

    .geekly-profile--phase-one .geekly-profile__pagination {
        flex-wrap: wrap;
        justify-content: center;
    }

    .geekly-profile--phase-one .geekly-profile__pagination span {
        width: 100%;
        order: -1;
        text-align: center;
    }

    .geekly-profile--phase-one .geekly-profile__trophy-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 380px) {
    .geekly-profile--phase-one .geekly-profile__activity-card {
        grid-template-columns: 36px minmax(0, 1fr);
    }

    .geekly-profile--phase-one .geekly-profile__activity-mark {
        width: 36px;
        height: 36px;
    }

    .geekly-profile--phase-one .geekly-profile__quiz-score {
        display: none;
    }

    .geekly-profile--phase-one .geekly-profile__trophy-grid {
        grid-template-columns: 1fr;
    }
}


/* Keep the tab rail transparent. Only the active item receives a subtle pill. */
.geekly-profile--phase-one .geekly-profile__tabs {
    margin: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

/* Community.css supplied a generic details chevron. This component provides
   its own SVG control, so suppress the inherited pseudo-element here. */
.geekly-profile--phase-one .geekly-profile__mobile-record > summary::after {
    display: none;
    content: none;
}


/* The site shell already clears the fixed header, so tablet layouts need only
   a compact breathing space before the hero. Wider screens define their own
   40px opening rhythm above. */
@media (min-width: 700px) and (max-width: 1279px) {
    .geekly-profile--phase-one,
    .geekly-profile--restricted {
        padding-top: clamp(14px, 1.4vw, 22px);
    }
}


/* On phones the profile starts at the mobile shell edge. The hero is the
   full-width first surface; its inner content retains its own safe padding. */
@media (max-width: 640px) {
    .geekly-profile--phase-one {
        padding: 0 0 48px;
    }
}


/* Preserve the four-part record grid before Geek Score is established. */
.geekly-profile--phase-one .geekly-profile__record-stat--score-pending strong {
    color: var(--clr-text-muted);
}
