/* ─── Resume / Experts frontend ─── */
:root {
    --ex-ink: #0b1220;
    --ex-muted: #5b6577;
    --ex-line: rgba(15, 23, 42, 0.08);
    --ex-soft: #f1f5f9;
    --ex-card: #ffffff;
    --ex-accent: #0f766e;
    --ex-accent-2: #0e7490;
    --ex-accent-soft: #ccfbf1;
    --ex-navy: #115e59;
    --ex-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 14px 40px rgba(15, 23, 42, 0.07);
    --ex-shadow-hover: 0 2px 8px rgba(15, 23, 42, 0.06), 0 22px 50px rgba(15, 23, 42, 0.11);
    --ex-radius: 18px;
    --ex-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/*
  base.html already applies main { margin-top: 85px } for the fixed header.
  Page padding must NOT add another ~110px or content/footer spacing breaks.
*/
.experts-page {
    position: relative;
    isolation: isolate;
    padding: 2.25rem 0 4.5rem;
    background:
        radial-gradient(ellipse 70% 50% at 90% 0%, rgba(15, 118, 110, 0.1), transparent 55%),
        radial-gradient(ellipse 55% 40% at 0% 10%, rgba(14, 116, 144, 0.07), transparent 50%),
        linear-gradient(180deg, #f0fdfa 0%, #f8fafc 40%, #eef2f7 100%);
    min-height: 60vh;
    overflow: visible;
}

.experts-page.no-page-bg,
.experts-page.fullstory-page {
    background: none;
}

.experts-ambient {
    position: absolute;
    inset: 0 0 auto 0;
    height: 420px;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(ellipse 60% 55% at 80% 0%, rgba(15, 118, 110, 0.12), transparent 60%),
        radial-gradient(ellipse 45% 40% at 10% 20%, rgba(14, 116, 144, 0.08), transparent 55%);
}

/* Never use global .wrapper here — it has height:85px for the header */
.experts-shell,
.au-shell {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.25rem;
    box-sizing: border-box;
    height: auto !important;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 1.75rem;
    overflow: visible;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ═══ Hub /resume ═══ */
.hub-hero-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.15rem;
}

.hub-build-cta {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    margin: 0;
    padding: 1.1rem;
    border-radius: 18px;
    color: #1e293b;
    background: linear-gradient(165deg, #ffffff 0%, #f7f8fa 48%, #eef1f4 100%);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    text-align: right;
}

.hub-build-cta h2,
.hub-hero .hub-build-cta h2 {
    margin: 0;
    color: #0f172a;
    font-size: 1.2rem;
}

.hub-hero .hub-build-label {
    margin: 0;
    max-width: none;
    color: #475569;
    font-size: 0.92rem;
    font-weight: 700;
}

.hub-step-flow {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    margin: 0.15rem 0 0;
    padding: 0;
    list-style: none;
}

.hub-step-flow li {
    display: flex;
    min-width: 0;
}

.hub-step-flow a {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.65rem 0.85rem;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f3f5f8 100%);
    border: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.04);
    color: #0f172a;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}

.hub-step-flow a:hover {
    border-color: rgba(15, 23, 42, 0.18);
    color: #0f766e;
}

.hub-step-flow a:focus-visible {
    outline: 3px solid #94a3b8;
    outline-offset: 2px;
}

.hub-step-sep {
    align-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: #64748b;
    font-weight: 800;
    line-height: 1;
}

.hub-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    color: var(--ex-muted);
    font-size: 0.9rem;
}

.hub-breadcrumb a {
    color: var(--ex-accent-2);
    text-decoration: none;
    font-weight: 600;
}

.hub-breadcrumb a:hover {
    text-decoration: underline;
}

.hub-breadcrumb i {
    font-size: 0.65rem;
    opacity: 0.5;
}

@media (min-width: 900px) {
    .hub-hero-layout {
        flex-direction: row;
        align-items: stretch;
        gap: 1.5rem;
    }

    .hub-hero-copy {
        flex: 1.15 1 0;
        align-items: flex-start;
        margin: 0;
        text-align: right;
    }

    .hub-hero-copy p {
        margin-inline: 0;
    }

    .hub-build-cta {
        flex: 0.9 1 280px;
    }

    .hub-step-flow {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }

    .hub-step-flow li:not(.hub-step-sep) {
        flex: 1 1 7rem;
    }
}

.hub-hero {
    background: #fff;
    border: 1px solid var(--ex-line);
    border-radius: 24px;
    box-shadow: var(--ex-shadow);
    padding: clamp(1.5rem, 3vw, 2.35rem);
    position: relative;
    overflow: hidden;
}

.hub-hero::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--ex-accent), var(--ex-accent-2));
}

.hub-hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
}

.hub-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.1);
    color: var(--ex-navy);
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid rgba(15, 118, 110, 0.14);
}

.hub-hero h1 {
    margin: 0.85rem 0 0.55rem;
    font-size: clamp(1.65rem, 3.5vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ex-ink);
    line-height: 1.25;
}

.hub-hero p {
    margin: 0 auto;
    color: var(--ex-muted);
    line-height: 1.85;
    max-width: 560px;
}

.hub-search {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.hub-search-field {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex: 1 1 280px;
    max-width: 460px;
    min-height: 52px;
    padding: 0 1rem;
    background: #f8fafc;
    border: 1px solid rgba(14, 116, 144, 0.22);
    border-radius: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hub-search-field:focus-within {
    border-color: var(--ex-accent);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
    background: #fff;
}

.hub-search-field i {
    color: var(--ex-accent);
}

.hub-search-field input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    font: inherit;
    color: var(--ex-ink);
    padding: 0.75rem 0;
}

.hub-search-btn {
    min-height: 52px;
    padding: 0 1.45rem;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--ex-accent), var(--ex-accent-2));
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(15, 118, 110, 0.25);
    transition: transform 0.2s var(--ex-ease);
}

.hub-search-btn:hover {
    transform: translateY(-2px);
}

.hub-search-btn:focus-visible {
    outline: 3px solid rgba(14, 116, 144, 0.35);
    outline-offset: 2px;
}

.hub-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
    margin-top: 1.15rem;
    color: var(--ex-navy);
    font-size: 0.9rem;
}

.hub-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.08);
}

.hub-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.hub-card {
    background: #fff;
    border: 1px solid var(--ex-line);
    border-radius: var(--ex-radius);
    box-shadow: var(--ex-shadow);
    overflow: hidden;
    transition: transform 0.3s var(--ex-ease), box-shadow 0.3s var(--ex-ease), border-color 0.25s ease;
}

.hub-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--ex-shadow-hover);
    border-color: rgba(15, 118, 110, 0.22);
}

.hub-card-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    height: 100%;
    min-height: 320px;
    padding: 0 1.25rem 1.4rem;
}

.hub-card-cover {
    width: calc(100% + 2.5rem);
    height: 84px;
    margin: 0 -1.25rem;
    background:
        linear-gradient(125deg, rgba(15, 118, 110, 0.95), rgba(14, 116, 144, 0.9));
}

.hub-card-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    margin: -48px 0 1rem;
    border: 4px solid #fff;
    background: #e2e8f0;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
    flex-shrink: 0;
}

.hub-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hub-card-avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ex-muted);
    background: var(--ex-accent-soft);
    font-size: 1.8rem;
}

.hub-card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
    width: 100%;
    flex: 1;
}

.hub-card-body h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--ex-ink);
    line-height: 1.4;
}

.hub-card-role {
    margin: 0;
    color: var(--ex-accent);
    font-weight: 650;
    font-size: 0.92rem;
}

.hub-card-bio {
    margin: 0.25rem 0 0;
    color: var(--ex-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.hub-card-cta {
    margin-top: auto;
    padding-top: 1rem;
    color: var(--ex-accent-2);
    font-size: 0.88rem;
    font-weight: 750;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.hub-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    margin-top: 0.5rem;
}

.hub-page-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 44px;
    padding: 0.55rem 1.1rem;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--ex-line);
    color: var(--ex-accent-2);
    text-decoration: none;
    font-weight: 700;
    box-shadow: var(--ex-shadow);
    transition: transform 0.2s ease;
}

.hub-page-btn:hover {
    transform: translateY(-1px);
}

.hub-page-current {
    color: var(--ex-muted);
    font-size: 0.92rem;
}

.hub-empty {
    text-align: center;
    padding: 3.5rem 1.25rem;
    background: #fff;
    border: 1px dashed #cbd5e1;
    border-radius: var(--ex-radius);
    color: var(--ex-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
}

.hub-empty-icon {
    font-size: 2.2rem;
    color: var(--ex-accent);
}

/* ═══ Homepage resume feature unveil ═══ */
.resume-feature-section {
    width: 100%;
    max-width: none !important;
    margin: 0 !important;
    padding: 3.5rem 0 4rem !important;
    box-sizing: border-box;
    background:
        radial-gradient(ellipse 60% 50% at 100% 0%, rgba(15, 118, 110, 0.12), transparent 55%),
        radial-gradient(ellipse 50% 40% at 0% 40%, rgba(14, 116, 144, 0.08), transparent 50%),
        linear-gradient(180deg, #ecfdf5 0%, #f8fafc 55%, #ffffff 100%);
    scroll-margin-top: 100px;
    position: relative;
    overflow: visible;
}

.rf-shell {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
    box-sizing: border-box;
    height: auto !important;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.75rem;
    overflow: visible;
}

.rf-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.rf-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.12);
    color: var(--ex-navy, #115e59);
    font-size: 0.82rem;
    font-weight: 750;
    border: 1px solid rgba(15, 118, 110, 0.16);
}

.rf-header h2 {
    margin: 0.85rem 0 0.5rem;
    font-size: clamp(1.55rem, 3.2vw, 2.15rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #dc2626;
    line-height: 1.3;
}

.rf-lead {
    margin: 0;
    color: var(--ex-muted, #5b6577);
    font-size: 1.05rem;
    line-height: 1.8;
}

.rf-panel {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 20px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 14px 40px rgba(15, 23, 42, 0.07);
    padding: clamp(1.35rem, 3vw, 1.85rem);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rf-panel p {
    margin: 0;
    color: #334155;
    line-height: 2;
    font-size: 1.02rem;
    text-align: justify;
}

.rf-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.rf-steps li {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    padding: 1.1rem 1.15rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.rf-step-num {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f766e, #0e7490);
    color: #fff;
    font-weight: 800;
    flex-shrink: 0;
}

.rf-steps strong {
    display: block;
    color: var(--ex-ink, #0b1220);
    margin-bottom: 0.25rem;
    font-size: 0.98rem;
}

.rf-steps span {
    color: var(--ex-muted, #5b6577);
    font-size: 0.88rem;
    line-height: 1.6;
}

.rf-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.rf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 48px;
    padding: 0.75rem 1.35rem;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.rf-btn:hover {
    transform: translateY(-2px);
}

.rf-btn-primary {
    background: linear-gradient(135deg, #0f766e, #0e7490);
    color: #fff;
    box-shadow: 0 10px 24px rgba(15, 118, 110, 0.25);
}

.rf-btn-primary:hover {
    color: #fff;
}

.rf-btn-ghost {
    background: #fff;
    color: #0b1220;
    border: 1px solid rgba(15, 23, 42, 0.1);
}

.rf-btn:focus-visible {
    outline: 3px solid rgba(14, 116, 144, 0.35);
    outline-offset: 2px;
}

.rf-examples {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.rf-examples-title {
    margin: 0;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 750;
    color: var(--ex-ink, #0b1220);
}

@media (max-width: 900px) {
    .resume-feature-section {
        padding: 2.75rem 0 3.25rem !important;
    }

    .rf-shell {
        padding-inline: 1rem;
        gap: 1.35rem;
    }

    .rf-steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .rf-actions {
        flex-direction: column;
    }

    .rf-actions .rf-btn {
        width: 100%;
    }
}

/* ═══ Homepage active users (legacy + examples) ═══ */
.active-users-section {
    width: 100%;
    max-width: none !important;
    margin: 0 !important;
    padding: 4.5rem 0 5rem !important;
    box-sizing: border-box;
    background:
        radial-gradient(ellipse 60% 50% at 100% 0%, rgba(15, 118, 110, 0.1), transparent 55%),
        radial-gradient(ellipse 50% 40% at 0% 30%, rgba(14, 116, 144, 0.07), transparent 50%),
        linear-gradient(180deg, #f8fafc 0%, #ecfdf5 45%, #f8fafc 100%);
    scroll-margin-top: 100px;
    position: relative;
    overflow: visible;
}

.au-shell {
    gap: 2rem;
}

.au-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.au-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.1);
    color: var(--ex-navy);
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid rgba(15, 118, 110, 0.14);
}

.au-header h2 {
    margin: 0.85rem 0 0.5rem;
    font-size: clamp(1.55rem, 3.2vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ex-ink);
}

.au-header p {
    margin: 0;
    color: var(--ex-muted);
    line-height: 1.85;
}

.au-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.15rem;
}

.au-card {
    background: #fff;
    border: 1px solid var(--ex-line);
    border-radius: var(--ex-radius);
    box-shadow: var(--ex-shadow);
    overflow: hidden;
    transition: transform 0.3s var(--ex-ease), box-shadow 0.3s var(--ex-ease);
}

.au-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--ex-shadow-hover);
}

.au-card-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    height: 100%;
    min-height: 280px;
    padding: 0 1.1rem 1.3rem;
}

.au-card-cover {
    width: calc(100% + 2.2rem);
    height: 72px;
    margin: 0 -1.1rem;
    background: linear-gradient(125deg, rgba(15, 118, 110, 0.95), rgba(14, 116, 144, 0.88));
}

.au-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    overflow: hidden;
    margin: -44px 0 0.9rem;
    border: 4px solid #fff;
    background: #e2e8f0;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
    flex-shrink: 0;
}

.au-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.au-avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ex-muted);
    background: var(--ex-accent-soft);
}

.au-card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
    width: 100%;
    flex: 1;
}

.au-card-body h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--ex-ink);
    line-height: 1.4;
}

.au-role {
    margin: 0;
    color: var(--ex-accent);
    font-size: 0.9rem;
    font-weight: 650;
}

.au-bio {
    margin: 0.15rem 0 0;
    color: var(--ex-muted);
    font-size: 0.88rem;
    line-height: 1.7;
}

.au-cta {
    margin-top: auto;
    padding-top: 0.9rem;
    color: var(--ex-accent-2);
    font-size: 0.88rem;
    font-weight: 750;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.au-footer {
    text-align: center;
    margin-top: 0.5rem;
}

.au-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0.75rem 1.4rem;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--ex-accent), var(--ex-accent-2));
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(15, 118, 110, 0.25);
    transition: transform 0.2s var(--ex-ease);
}

.au-btn:hover {
    transform: translateY(-2px);
    color: #fff;
}

.au-btn:focus-visible {
    outline: 3px solid rgba(14, 116, 144, 0.35);
    outline-offset: 2px;
}

@media (max-width: 1100px) {
    .hub-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .au-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .experts-page {
        padding: 1.5rem 0 3.25rem;
    }

    .experts-shell,
    .au-shell {
        padding-inline: 1rem;
        gap: 1.35rem;
    }

    .active-users-section {
        padding: 3.25rem 0 3.75rem !important;
    }
}

@media (max-width: 640px) {
    .hub-grid,
    .au-grid {
        grid-template-columns: 1fr;
    }

    .hub-search {
        flex-direction: column;
        align-items: stretch;
    }

    .hub-search-field {
        max-width: none;
    }

    .hub-search-btn {
        width: 100%;
    }

    .hub-card-link,
    .au-card-link {
        min-height: 280px;
    }
}

/* Safety: never let global .wrapper height:85px clip resume pages */
.experts-page .wrapper,
.hub-page .wrapper,
.active-users-section .wrapper,
.rp .wrapper {
    height: auto !important;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    overflow: visible;
}

.resume-app-dock {
    display: none !important;
}

/* Breadcrumb */
.experts-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
    margin-bottom: 1.4rem;
    color: var(--ex-muted);
    font-size: 0.92rem;
}

.experts-breadcrumb a {
    color: var(--ex-accent-2);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.breadcrumb-sep {
    font-size: 0.65rem;
    opacity: 0.55;
}

/* Hero / Hub header */
.experts-hero,
.profile-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f0fdfa 55%, #ecfeff 100%);
    border: 1px solid rgba(15, 118, 110, 0.18);
    border-radius: 28px;
    padding: 2.2rem 1.6rem;
    text-align: center;
    margin-bottom: 1.75rem;
    box-shadow: var(--ex-shadow);
}

.experts-hero-glow {
    position: absolute;
    inset: auto auto -40% -10%;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(15, 118, 110, 0.18), transparent 70%);
    pointer-events: none;
}

.experts-hero h1,
.profile-hero h1 {
    font-size: clamp(1.55rem, 3vw, 2.1rem);
    margin: 0.65rem 0 0.45rem;
    color: var(--ex-ink);
    font-weight: 800;
}

.experts-hero p,
.profile-hero p {
    color: var(--ex-muted);
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.8;
}

.experts-hero-badge,
.profile-hero-badge,
.profile-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: linear-gradient(135deg, var(--ex-accent), var(--ex-accent-2));
    color: #fff;
    border-radius: 999px;
    padding: 0.4rem 0.95rem;
    font-size: 0.84rem;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(15, 118, 110, 0.25);
}

.hub-stats {
    margin-top: 1.1rem;
    color: var(--ex-navy);
    font-size: 0.92rem;
}

.hub-stats span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(15, 118, 110, 0.08);
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
}

/* Search */
.experts-search-form {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.35rem;
    flex-wrap: wrap;
}

.search-field-wrap {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.25rem 1rem;
    background: #fff;
    border: 1px solid rgba(14, 116, 144, 0.25);
    border-radius: 999px;
    min-width: min(420px, 100%);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.search-field-wrap i {
    color: var(--ex-accent);
}

.experts-search-form input {
    flex: 1;
    min-width: 0;
    padding: 0.8rem 0.2rem;
    border: none;
    outline: none;
    background: transparent;
}

.experts-search-form button {
    padding: 0.8rem 1.35rem;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--ex-accent), var(--ex-accent-2));
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 10px 22px rgba(15, 118, 110, 0.28);
}

/* Cards grid */
.experts-grid,
.experts-grid-compact,
.active-users-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.expert-card {
    flex: 1 1 300px;
    min-width: 0;
    min-height: 340px;
    background: var(--ex-card);
    border: 1px solid var(--ex-line);
    border-radius: var(--ex-radius);
    box-shadow: var(--ex-shadow);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.expert-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 55px rgba(15, 23, 42, 0.12);
}

.expert-card-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1.4rem 1.6rem;
    color: inherit;
    text-decoration: none;
    height: 100%;
    min-height: 340px;
}

.expert-card-topbar {
    width: calc(100% + 2.8rem);
    height: 78px;
    margin: 0 -1.4rem 0;
    background:
        linear-gradient(135deg, rgba(15, 118, 110, 0.92), rgba(14, 116, 144, 0.88)),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.05) 0 8px, transparent 8px 16px);
}

.expert-card-avatar,
.resume-public-avatar,
.fullstory-avatar {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    overflow: hidden;
    margin: -42px auto 1rem;
    background: #e2e8f0;
    border: 4px solid #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16);
    flex-shrink: 0;
    position: relative;
}

.profile-cover-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0;
    background: #e2e8f0;
    border: 4px solid #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16);
    flex-shrink: 0;
    position: relative;
}

.expert-card-avatar img,
.resume-public-avatar img,
.fullstory-avatar img,
.profile-cover-avatar img,
.active-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.expert-card-avatar-fallback,
.resume-public-avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.1rem;
    color: var(--ex-muted);
    background: var(--ex-accent-soft);
}

.expert-card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
    text-align: center;
    flex: 1;
}

.expert-card-body h2,
.expert-card-body h3 {
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--ex-ink);
    margin: 0;
}

.expert-card-title,
.resume-public-title,
.fullstory-title,
.profile-cover-role {
    color: var(--ex-accent);
    margin: 0;
    font-weight: 600;
}

.expert-card-bio {
    color: var(--ex-muted);
    font-size: 0.92rem;
    line-height: 1.7;
    margin: 0.2rem 0 0;
}

.expert-card-cta,
.active-user-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: auto;
    padding-top: 0.9rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--ex-accent-2);
}

/* Profile cover (legacy) + identity card row */
.profile-cover,
.profile-card-row {
    position: relative;
    margin-bottom: 0;
}

.profile-identity-card {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    background: #fff;
    border: 1px solid var(--ex-line);
    border-radius: var(--ex-radius);
    box-shadow: var(--ex-shadow);
    padding: 1.5rem;
}

.profile-identity-main {
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem;
    align-items: center;
}

.profile-cover {
    border-radius: 28px;
    overflow: hidden;
    margin-bottom: 1.6rem;
    box-shadow: var(--ex-shadow);
    border: 1px solid var(--ex-line);
    background: #fff;
}

.profile-cover-bg {
    display: none;
}

.profile-cover-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem;
    align-items: center;
    padding: 1.5rem;
    margin-top: 0;
}

.profile-cover-avatar {
    margin: 0;
    width: 120px;
    height: 120px;
}

.profile-cover-status {
    position: absolute;
    bottom: 8px;
    left: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #10b981;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    border: 3px solid #fff;
}

.profile-cover-info {
    flex: 1 1 260px;
    min-width: 0;
    padding-top: 0;
}

.profile-cover-info h1 {
    margin: 0.55rem 0 0.35rem;
    font-size: clamp(1.45rem, 3vw, 2rem);
    color: var(--ex-ink);
    font-weight: 800;
}

.profile-cover-meta,
.resume-public-meta,
.fullstory-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 0.85rem 0 1rem;
}

.profile-cover-meta span,
.resume-public-meta span,
.fullstory-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--ex-soft);
    color: #334155;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-size: 0.86rem;
}

.profile-cover-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.profile-stat-grid,
.mobile-stat-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.mobile-stat-chip {
    min-width: 0;
    background: var(--ex-soft);
    border: 1px solid var(--ex-line);
    border-radius: 14px;
    padding: 0.85rem 0.7rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    text-align: center;
}

.mobile-stat-chip i {
    color: var(--ex-accent);
}

.mobile-stat-chip strong {
    font-size: 1.15rem;
    color: var(--ex-ink);
}

.mobile-stat-chip span {
    font-size: 0.8rem;
    color: var(--ex-muted);
}

.resume-content-row {
    width: 100%;
}

.resume-content-row .fullstory-main {
    width: 100%;
    flex: 1 1 auto;
}

/* Layout */
.fullstory-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 1.35rem;
    align-items: flex-start;
}

.fullstory-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 0 0 320px;
    max-width: 100%;
}

.fullstory-profile-card,
.fullstory-sidebar-block,
.fullstory-main,
.resume-public-card {
    background: #fff;
    border: 1px solid var(--ex-line);
    border-radius: var(--ex-radius);
    box-shadow: var(--ex-shadow);
}

.fullstory-profile-card,
.fullstory-sidebar-block {
    padding: 1.25rem;
}

.sidebar-card-head,
.section-head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.sidebar-card-head h2,
.section-head h2 {
    margin: 0;
    font-size: 1.12rem;
    color: var(--ex-ink);
}

.section-icon,
.sidebar-card-head > i {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ex-accent-soft);
    color: var(--ex-accent);
    flex-shrink: 0;
}

.sidebar-stats {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.sidebar-stats li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: var(--ex-soft);
    border-radius: 14px;
    padding: 0.75rem 0.9rem;
}

.sidebar-stats i {
    color: var(--ex-accent);
    width: 18px;
}

.sidebar-stats span {
    flex: 1;
    color: #475569;
}

.sidebar-stats strong {
    color: var(--ex-ink);
    font-size: 1.05rem;
}

.fullstory-main,
.resume-public-card {
    flex: 1 1 420px;
    min-width: 0;
    padding: 1.6rem;
}

.resume-section {
    margin-top: 1.5rem;
    padding-top: 1.35rem;
    border-top: 1px solid var(--ex-line);
}

.resume-section:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.resume-prose {
    color: #334155;
    line-height: 1.9;
    margin: 0;
}

.resume-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.resume-list-item {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    padding: 1rem;
    border-radius: 16px;
    background: linear-gradient(180deg, #f8fafc, #ffffff);
    border: 1px solid var(--ex-line);
}

.item-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ex-accent-soft);
    color: var(--ex-accent);
    flex-shrink: 0;
}

.item-body h3 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    color: var(--ex-ink);
}

.item-body p {
    margin: 0.15rem 0;
    color: #475569;
}

.resume-muted {
    color: var(--ex-muted) !important;
    font-size: 0.9rem;
}

.org-line {
    font-weight: 600;
    color: #334155 !important;
}

.resume-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.resume-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--ex-accent-soft);
    color: var(--ex-navy);
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
}

.resume-contact-list,
.fullstory-contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.resume-contact-item,
.fullstory-contact-list li {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    background: var(--ex-soft);
    border-radius: 14px;
    padding: 0.85rem 1rem;
}

.contact-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--ex-accent);
    flex-shrink: 0;
}

.fullstory-contact-list strong {
    display: block;
    color: var(--ex-ink);
}

.fullstory-contact-list span {
    color: #475569;
    font-size: 0.92rem;
    word-break: break-word;
}

/* Buttons */
.btn-experts-primary,
.btn-experts-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.7rem 1.15rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.93rem;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-experts-primary {
    background: linear-gradient(135deg, var(--ex-accent), var(--ex-accent-2));
    color: #fff;
    box-shadow: 0 10px 24px rgba(15, 118, 110, 0.28);
}

.btn-experts-outline {
    border: 1px solid #cbd5e1;
    color: #334155;
    background: #fff;
}

.btn-experts-primary:hover,
.btn-experts-outline:hover {
    transform: translateY(-2px);
}

/* Timeline */
.resume-timeline {
    position: relative;
    padding-right: 0.35rem;
}

.resume-timeline::before {
    content: "";
    position: absolute;
    top: 0.4rem;
    bottom: 0.4rem;
    right: 11px;
    width: 2px;
    background: linear-gradient(180deg, var(--ex-accent), transparent);
}

.resume-timeline-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.1rem;
    position: relative;
}

.resume-timeline-marker {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--ex-accent);
    color: var(--ex-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.45rem;
    flex-shrink: 0;
    z-index: 1;
    margin-top: 0.2rem;
}

.resume-timeline-content {
    flex: 1;
    background: linear-gradient(180deg, #f8fafc, #ffffff);
    border: 1px solid var(--ex-line);
    border-radius: 16px;
    padding: 1rem 1.1rem;
}

.resume-timeline-content h3 {
    margin: 0 0 0.3rem;
    color: var(--ex-ink);
}

/* Related + pagination + empty */
.fullstory-related {
    margin-top: 2.4rem;
}

.related-head {
    margin-bottom: 1.1rem;
}

.experts-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.85rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--ex-line);
    color: var(--ex-accent-2);
    text-decoration: none;
    font-weight: 600;
}

.page-current {
    color: var(--ex-muted);
}

.experts-empty {
    text-align: center;
    padding: 3.5rem 1rem;
    color: var(--ex-muted);
    background: #fff;
    border-radius: var(--ex-radius);
    border: 1px dashed #cbd5e1;
}

.empty-icon {
    font-size: 2.2rem;
    color: var(--ex-accent);
    margin-bottom: 0.7rem;
}

/* Home active users */
.active-users-section {
    padding: 4rem 0 4.5rem;
    background:
        radial-gradient(circle at 12% 20%, rgba(15, 118, 110, 0.08), transparent 32%),
        radial-gradient(circle at 88% 0%, rgba(14, 116, 144, 0.08), transparent 30%),
        linear-gradient(180deg, #f8fafc 0%, #eef8f6 55%, #f8fafc 100%);
    scroll-margin-top: 96px;
    position: relative;
}

.active-users-header {
    text-align: center;
    margin: 0 auto 2.4rem;
    max-width: 720px;
}

.active-users-header h2 {
    margin: 0.85rem 0 0.55rem;
    font-size: clamp(1.55rem, 3.2vw, 2.05rem);
    color: var(--ex-ink);
    font-weight: 800;
}

.active-users-header p {
    color: var(--ex-muted);
    line-height: 1.85;
    margin: 0;
    font-size: 1rem;
}

.active-users-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem;
    margin-top: 0;
}

.active-user-card {
    flex: 1 1 240px;
    max-width: 100%;
    min-height: 300px;
    background: #fff;
    border-radius: 24px;
    padding: 0;
    text-align: center;
    border: 1px solid rgba(15, 118, 110, 0.12);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.07);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.active-user-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 24px 52px rgba(15, 23, 42, 0.13);
}

.active-user-card-link {
    display: flex;
    height: 100%;
    min-height: 300px;
    flex-direction: column;
    align-items: center;
    color: inherit;
    text-decoration: none;
}

.active-user-topbar {
    width: 100%;
    height: 72px;
    background:
        linear-gradient(135deg, rgba(15, 118, 110, 0.95), rgba(14, 116, 144, 0.9)),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.05) 0 8px, transparent 8px 16px);
}

.active-user-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: -42px auto 0.85rem;
    border: 4px solid #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
    background: var(--ex-accent-soft);
    flex-shrink: 0;
}

.active-user-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    width: 100%;
    padding: 0 1.2rem 1.45rem;
    flex: 1;
}

.active-user-body h3 {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--ex-ink);
    line-height: 1.45;
}

.active-user-role {
    margin: 0;
    color: var(--ex-accent);
    font-size: 0.92rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.active-user-bio {
    margin: 0.15rem 0 0;
    color: var(--ex-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.active-user-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: auto;
    padding-top: 0.95rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ex-accent-2);
}

.active-users-footer {
    text-align: center;
    margin-top: 2.2rem;
}

@media (max-width: 900px) {
    .active-users-section {
        padding: 3rem 0 3.4rem;
    }

    .active-users-header {
        margin-bottom: 1.8rem;
    }

    .active-user-card {
        flex: 1 1 100%;
        min-height: 280px;
    }

    .active-user-card-link {
        min-height: 280px;
    }
}

/* Public resume card */
.resume-public-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.4rem;
    margin-bottom: 1.4rem;
    padding-bottom: 1.3rem;
    border-bottom: 1px solid var(--ex-line);
}

.resume-public-intro {
    flex: 1;
    min-width: 220px;
}

.resume-public-intro h1 {
    margin: 0 0 0.35rem;
    font-size: 1.55rem;
    color: var(--ex-ink);
}

/* App face helpers (desktop defaults) */
.resume-app-dock,
.back-chip {
    display: none;
}

.mobile-stat-strip,
.profile-stat-grid {
    display: grid;
}

.breadcrumb-trail {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

/* Responsive + App Face */
@media (max-width: 900px) {
    .experts-page {
        padding-top: 1.5rem;
        padding-bottom: 3rem;
    }

    .experts-page.app-face {
        padding-top: 1.5rem;
        padding-bottom: calc(2.5rem + env(safe-area-inset-bottom, 0px));
        background: none;
    }

    .resume-app-shell.wrapper,
    .resume-app-shell {
        width: 100%;
        max-width: 100%;
        padding-inline: 1rem;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        gap: 1.15rem;
        height: auto !important;
        overflow: visible;
    }

    .resume-app-breadcrumb {
        margin-bottom: 0;
        gap: 0.65rem;
    }

    .back-chip {
        display: inline-flex;
        align-items: center;
        gap: 0.45rem;
        background: #fff;
        border: 1px solid var(--ex-line);
        border-radius: 999px;
        padding: 0.65rem 1rem;
        color: var(--ex-ink);
        text-decoration: none;
        font-weight: 700;
        font-size: 0.92rem;
        box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
        min-height: 44px;
    }

    .breadcrumb-trail {
        display: none;
    }

    .profile-card-row {
        width: 100%;
    }

    .profile-identity-card {
        padding: 1.2rem;
        gap: 1.1rem;
        border-radius: 20px;
        background: #fff;
    }

    .profile-identity-main {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.9rem;
    }

    .profile-cover-avatar {
        width: 104px;
        height: 104px;
    }

    .profile-cover-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 0.5rem;
        padding-top: 0;
    }

    .profile-cover-info h1 {
        font-size: 1.35rem;
        margin: 0;
        line-height: 1.4;
    }

    .profile-cover-role {
        margin: 0;
    }

    .profile-cover-meta {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        width: 100%;
        margin: 0.15rem 0 0;
    }

    .profile-cover-actions {
        justify-content: center;
        width: 100%;
    }

    .profile-stat-grid,
    .mobile-stat-strip {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
        overflow: visible;
        padding: 0;
    }

    .mobile-stat-chip {
        min-width: 0;
        width: 100%;
        background: #fff;
        border: 1px solid var(--ex-line);
        border-radius: 16px;
        padding: 0.9rem 0.75rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.3rem;
        min-height: 84px;
        box-sizing: border-box;
    }

    .mobile-stat-chip i {
        color: var(--ex-accent);
        font-size: 1.05rem;
    }

    .mobile-stat-chip strong {
        font-size: 1.2rem;
        color: var(--ex-ink);
    }

    .mobile-stat-chip span {
        font-size: 0.82rem;
        color: var(--ex-muted);
    }

    .resume-content-row {
        width: 100%;
    }

    .fullstory-layout {
        display: flex;
        flex-direction: column;
        gap: 1.15rem;
        margin: 0;
    }

    .fullstory-main {
        flex: 1 1 auto;
        width: 100%;
        border-radius: 20px;
        padding: 1.35rem 1.15rem;
        box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
        display: flex;
        flex-direction: column;
        gap: 0;
        box-sizing: border-box;
        background: #fff;
    }

    .resume-section {
        margin-top: 1.35rem;
        padding-top: 1.25rem;
    }

    .resume-section:first-child {
        margin-top: 0;
        padding-top: 0;
    }

    .section-head {
        margin-bottom: 0.95rem;
        gap: 0.7rem;
    }

    .resume-list {
        display: flex;
        flex-direction: column;
        gap: 0.85rem;
    }

    .resume-list-item {
        display: flex;
        gap: 0.85rem;
        padding: 1.05rem;
        border-radius: 16px;
        align-items: flex-start;
    }

    .resume-timeline {
        display: flex;
        flex-direction: column;
        gap: 0.85rem;
        padding-right: 0.15rem;
    }

    .resume-timeline-item {
        margin-bottom: 0;
        gap: 0.85rem;
    }

    .resume-timeline-content {
        padding: 1.05rem;
        border-radius: 16px;
    }

    .item-icon {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }

    .resume-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 0.65rem;
    }

    .resume-tag {
        padding: 0.55rem 0.9rem;
    }

    .fullstory-contact-list {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .fullstory-contact-list li {
        padding: 0.95rem 1rem;
        min-height: 56px;
    }

    .mobile-contacts {
        display: block;
    }

    .fullstory-related {
        margin-top: 0.4rem;
        padding-inline: 0;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .related-head {
        margin-bottom: 0;
    }

    /* کارت‌های مرتبط: ستون کامل با فاصله مناسب */
    .related-snap {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        overflow: visible;
        gap: 1rem;
        padding-bottom: 0;
        scroll-snap-type: none;
    }

    .related-snap .expert-card {
        flex: 1 1 auto;
        width: 100%;
        min-height: 300px;
        scroll-snap-align: none;
    }

    .related-snap .expert-card-link {
        min-height: 300px;
        padding: 0 1.25rem 1.45rem;
    }

    .resume-app-dock {
        display: flex;
        position: fixed;
        left: 1rem;
        right: 1rem;
        bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
        z-index: 1200;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        border: 1px solid rgba(15, 118, 110, 0.14);
        border-radius: 18px;
        box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16);
        padding: 0.4rem;
        gap: 0.35rem;
    }

    .dock-btn {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.25rem;
        text-decoration: none;
        color: #475569;
        font-size: 0.75rem;
        font-weight: 700;
        padding: 0.6rem 0.35rem;
        border-radius: 14px;
        min-height: 56px;
    }

    .dock-btn i {
        font-size: 1.05rem;
    }

    .dock-btn-main {
        background: linear-gradient(135deg, var(--ex-accent), var(--ex-accent-2));
        color: #fff;
        box-shadow: 0 8px 18px rgba(15, 118, 110, 0.28);
    }

    .resume-public-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 1rem;
    }

    .resume-public-avatar {
        margin-inline: auto;
    }

    .resume-public-card {
        padding: 1.25rem 1.1rem;
    }

    .search-field-wrap {
        min-width: 100%;
    }

    .experts-grid {
        display: flex;
        flex-direction: column;
        gap: 1.1rem;
    }

    .expert-card {
        flex: 1 1 auto;
        width: 100%;
        min-height: 300px;
    }
}

@media (min-width: 901px) {
    .resume-app-dock {
        display: none !important;
    }

    .profile-stat-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* ═══════════════════════════════════════════
   Fullstory profile page (upgraded UI)
   ═══════════════════════════════════════════ */
.resume-app-dock {
    display: none !important;
}

.fullstory-shell {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.fullstory-breadcrumb {
    margin-bottom: 0;
}

/* Profile hero */
.fs-profile {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(15, 118, 110, 0.14);
    border-radius: 28px;
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
}

.fs-profile-cover {
    position: relative;
    height: 132px;
    background:
        linear-gradient(118deg, #0f766e 0%, #0e7490 52%, #155e75 100%);
    overflow: hidden;
}

.fs-profile-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.fs-profile-orb-a {
    width: 220px;
    height: 220px;
    top: -80px;
    left: -40px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 68%);
}

.fs-profile-orb-b {
    width: 280px;
    height: 280px;
    bottom: -140px;
    right: -60px;
    background: radial-gradient(circle, rgba(204, 251, 241, 0.35), transparent 70%);
}

.fs-profile-main {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-end;
    padding: 0 1.85rem 1.55rem;
    margin-top: -58px;
    position: relative;
    z-index: 1;
}

.fs-avatar {
    width: 132px;
    height: 132px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    background: #e2e8f0;
    border: 5px solid #fff;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.18);
}

.fs-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fs-avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--ex-muted);
    background: linear-gradient(160deg, #ccfbf1, #e0f2fe);
}

.fs-avatar-online {
    position: absolute;
    bottom: 8px;
    left: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #10b981;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    border: 3px solid #fff;
}

.fs-profile-copy {
    flex: 1 1 280px;
    min-width: 0;
    padding-bottom: 0.25rem;
}

.fs-profile-topline {
    margin-bottom: 0.45rem;
}

.fs-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(15, 118, 110, 0.1);
    color: var(--ex-navy);
    border: 1px solid rgba(15, 118, 110, 0.16);
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 700;
}

.fs-profile-copy h1 {
    margin: 0 0 0.35rem;
    font-size: clamp(1.55rem, 3.2vw, 2.15rem);
    color: var(--ex-ink);
    font-weight: 800;
    line-height: 1.3;
}

.fs-role {
    margin: 0;
    color: var(--ex-accent);
    font-weight: 650;
    font-size: 1.05rem;
}

.fs-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.95rem 0 1.1rem;
}

.fs-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--ex-soft);
    color: #334155;
    border-radius: 999px;
    padding: 0.38rem 0.8rem;
    font-size: 0.86rem;
}

.fs-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.fs-stats {
    list-style: none;
    margin: 0;
    padding: 0 1.5rem 1.4rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    border-top: 1px solid var(--ex-line);
    padding-top: 1.15rem;
}

.fs-stats li {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: linear-gradient(165deg, #f0fdfa 0%, #ffffff 70%);
    border: 1px solid rgba(15, 118, 110, 0.12);
    border-radius: 16px;
    padding: 0.95rem 1rem;
    min-height: 78px;
}

.fs-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 118, 110, 0.12);
    color: var(--ex-accent);
    flex-shrink: 0;
}

.fs-stats strong {
    display: block;
    font-size: 1.25rem;
    color: var(--ex-ink);
    font-weight: 800;
    line-height: 1.2;
}

.fs-stats span {
    font-size: 0.82rem;
    color: var(--ex-muted);
}

/* Two-column layout */
.fs-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 1.35rem;
    align-items: start;
}

.fs-document {
    background: #fff;
    border: 1px solid var(--ex-line);
    border-radius: 24px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.07);
    padding: 1.75rem 1.9rem 2rem;
    scroll-margin-top: 110px;
}

.fs-document-head {
    margin-bottom: 1.5rem;
    padding-bottom: 1.15rem;
    border-bottom: 1px solid var(--ex-line);
}

.fs-document-head h2 {
    margin: 0 0 0.35rem;
    font-size: 1.2rem;
    color: var(--ex-ink);
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.fs-document-head h2 i {
    color: var(--ex-accent);
}

.fs-document-head p {
    margin: 0;
    color: var(--ex-muted);
    font-size: 0.92rem;
}

.fs-block {
    margin-top: 1.65rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--ex-line);
    scroll-margin-top: 110px;
}

.fs-block:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.fs-block-head {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1.05rem;
}

.fs-block-head h3 {
    margin: 0;
    font-size: 1.08rem;
    color: var(--ex-ink);
    font-weight: 800;
}

.fs-block-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(15, 118, 110, 0.14), rgba(14, 116, 144, 0.1));
    color: var(--ex-accent);
    flex-shrink: 0;
}

.fs-prose {
    margin: 0;
    color: #334155;
    line-height: 1.95;
    font-size: 1.02rem;
}

.fs-entries {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.fs-entry {
    display: flex;
    gap: 0.95rem;
    align-items: flex-start;
    padding: 1.05rem 1.1rem;
    border-radius: 16px;
    background: linear-gradient(180deg, #f8fafc, #ffffff);
    border: 1px solid var(--ex-line);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.fs-entry:hover {
    border-color: rgba(15, 118, 110, 0.28);
    transform: translateY(-1px);
}

.fs-entry-icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ex-accent-soft);
    color: var(--ex-accent);
    flex-shrink: 0;
}

.fs-entry-body h4 {
    margin: 0 0 0.25rem;
    font-size: 1.02rem;
    color: var(--ex-ink);
    font-weight: 750;
}

.fs-entry-body p {
    margin: 0.15rem 0;
    color: #475569;
}

.fs-muted {
    color: var(--ex-muted) !important;
    font-size: 0.9rem;
}

.fs-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-right: 0.2rem;
}

.fs-timeline::before {
    content: "";
    position: absolute;
    top: 0.55rem;
    bottom: 0.55rem;
    right: 9px;
    width: 2px;
    background: linear-gradient(180deg, var(--ex-accent), rgba(14, 116, 144, 0.15));
}

.fs-timeline-item {
    display: flex;
    gap: 1rem;
    position: relative;
}

.fs-timeline-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--ex-accent);
    flex-shrink: 0;
    z-index: 1;
    margin-top: 1.15rem;
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.fs-timeline-item.is-current .fs-timeline-dot {
    background: var(--ex-accent);
    box-shadow: 0 0 0 5px rgba(15, 118, 110, 0.18);
}

.fs-timeline-card {
    flex: 1;
    background: linear-gradient(180deg, #f8fafc, #ffffff);
    border: 1px solid var(--ex-line);
    border-radius: 16px;
    padding: 1.05rem 1.15rem;
}

.fs-timeline-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.35rem;
}

.fs-timeline-top h4 {
    margin: 0;
    color: var(--ex-ink);
    font-size: 1.05rem;
    font-weight: 750;
}

.fs-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 700;
}

.fs-org {
    margin: 0.15rem 0;
    font-weight: 650;
    color: #334155;
}

.fs-desc {
    margin: 0.55rem 0 0;
    color: #475569;
    line-height: 1.8;
}

.fs-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.fs-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--ex-accent-soft);
    color: var(--ex-navy);
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 650;
    border: 1px solid rgba(15, 118, 110, 0.12);
}

.fs-contacts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.fs-contacts li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    background: var(--ex-soft);
    border-radius: 14px;
    padding: 0.9rem 1rem;
    border: 1px solid transparent;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.fs-contacts li:hover {
    background: #fff;
    border-color: rgba(15, 118, 110, 0.2);
}

.fs-contact-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--ex-accent);
    flex-shrink: 0;
    border: 1px solid var(--ex-line);
}

.fs-contacts strong {
    display: block;
    color: var(--ex-ink);
    margin-bottom: 0.15rem;
}

.fs-contacts span {
    color: #475569;
    font-size: 0.92rem;
    word-break: break-word;
}

.fs-empty {
    margin: 0;
    border: none;
    box-shadow: none;
    background: transparent;
}

/* Aside TOC */
.fs-aside {
    position: sticky;
    top: 110px;
}

.fs-aside-card {
    background: #fff;
    border: 1px solid var(--ex-line);
    border-radius: 20px;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
    padding: 1.2rem 1.15rem;
}

.fs-aside-card h3 {
    margin: 0 0 0.9rem;
    font-size: 0.95rem;
    color: var(--ex-ink);
    font-weight: 800;
}

.fs-toc {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.fs-toc a {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    color: #475569;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.65rem 0.75rem;
    border-radius: 12px;
    transition: background 0.2s ease, color 0.2s ease;
}

.fs-toc a i {
    width: 1.1rem;
    color: var(--ex-accent);
    text-align: center;
}

.fs-toc a:hover {
    background: rgba(15, 118, 110, 0.08);
    color: var(--ex-navy);
}

/* Related */
.fs-related {
    margin-top: 0.5rem;
}

.fs-related-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.85rem;
    margin-bottom: 1.2rem;
}

.fs-related-head h2 {
    margin: 0 0 0.25rem;
    font-size: 1.2rem;
    color: var(--ex-ink);
    font-weight: 800;
}

.fs-related-head p {
    margin: 0;
    color: var(--ex-muted);
    font-size: 0.92rem;
}

.fs-related-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--ex-accent-2);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.92rem;
}

.fs-related-link:hover {
    color: var(--ex-accent);
}

/* Fullstory responsive */
@media (max-width: 1100px) {
    .fs-layout {
        grid-template-columns: 1fr;
    }

    .fs-aside {
        display: none;
    }
}

@media (max-width: 900px) {
    .experts-page.fullstory-page {
        padding-top: 1.5rem;
        padding-bottom: calc(2.5rem + env(safe-area-inset-bottom, 0px));
    }

    .fullstory-shell.wrapper,
    .fullstory-shell {
        width: 100%;
        max-width: 100%;
        padding-inline: 1rem;
        box-sizing: border-box;
        gap: 1.15rem;
        height: auto !important;
        overflow: visible;
    }

    .fullstory-breadcrumb .back-chip {
        display: inline-flex;
        align-items: center;
        gap: 0.45rem;
        background: #fff;
        border: 1px solid var(--ex-line);
        border-radius: 999px;
        padding: 0.65rem 1rem;
        color: var(--ex-ink);
        text-decoration: none;
        font-weight: 700;
        font-size: 0.92rem;
        box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
        min-height: 44px;
    }

    .fullstory-breadcrumb .breadcrumb-trail {
        display: none;
    }

    .fs-profile {
        border-radius: 22px;
    }

    .fs-profile-cover {
        height: 96px;
    }

    .fs-profile-main {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-top: -52px;
        padding: 0 1.15rem 1.25rem;
        gap: 0.85rem;
    }

    .fs-avatar {
        width: 112px;
        height: 112px;
        border-width: 4px;
    }

    .fs-profile-copy {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding-bottom: 0;
    }

    .fs-profile-copy h1 {
        font-size: 1.4rem;
    }

    .fs-meta {
        justify-content: center;
    }

    .fs-actions {
        justify-content: center;
        width: 100%;
    }

    .fs-actions .btn-experts-primary,
    .fs-actions .btn-experts-outline {
        flex: 1 1 auto;
        justify-content: center;
        min-height: 46px;
    }

    .fs-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
        padding: 1rem 1.1rem 1.2rem;
    }

    .fs-stats li {
        flex-direction: column;
        text-align: center;
        gap: 0.45rem;
        min-height: 96px;
        padding: 0.9rem 0.7rem;
    }

    .fs-document {
        border-radius: 20px;
        padding: 1.35rem 1.15rem 1.55rem;
    }

    .fs-timeline-dot {
        margin-top: 1.05rem;
    }

    .fs-related-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .related-grid {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .related-grid .expert-card {
        width: 100%;
        flex: 1 1 auto;
    }
}

@media (max-width: 480px) {
    .fs-actions {
        flex-direction: column;
    }

    .fs-actions a {
        width: 100%;
    }

    .fs-stats {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 901px) {
    .fs-stats:has(> :nth-child(1):nth-last-child(1)) {
        grid-template-columns: minmax(0, 240px);
    }

    .fs-stats:has(> :nth-child(2):nth-last-child(1)) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fs-stats:has(> :nth-child(3):nth-last-child(1)) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

