/* Nudjee 2.15.108 — editorial public-profile story experience. */

#pn-public-profile-modal {
    --pn-story-accent: #ff3d6e;
    --pn-story-accent-soft: color-mix(in srgb, var(--pn-story-accent) 9%, white);
    --pn-story-ink: #202127;
    --pn-story-muted: #737680;
    --pn-story-line: rgba(32, 33, 39, .10);
}

#pn-public-profile-modal[data-connection-mode="platonic"] { --pn-story-accent: #7462f5; }
#pn-public-profile-modal[data-connection-mode="business"] { --pn-story-accent: #119c92; }
#pn-public-profile-modal[data-connection-mode="all"] { --pn-story-accent: #5b6072; }

/* Desktop/tablet profile becomes one continuous reading surface rather than a stack of cards. */
#pn-public-profile-modal:not(.pn-mobile-public-profile-modal) .pn-profile-sheet {
    width: min(94vw, 790px);
    height: min(92dvh, 920px);
    max-height: 92dvh;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.68);
    border-radius: 34px;
    background: #fff;
    text-align: left;
}

#pn-public-profile-modal:not(.pn-mobile-public-profile-modal) #pn-public-profile-content {
    position: relative;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--pn-story-accent) 30%, transparent) transparent;
    background: #fff;
}

#pn-public-profile-modal:not(.pn-mobile-public-profile-modal) #pn-public-profile-content::-webkit-scrollbar { width: 7px; }
#pn-public-profile-modal:not(.pn-mobile-public-profile-modal) #pn-public-profile-content::-webkit-scrollbar-track { background: transparent; }
#pn-public-profile-modal:not(.pn-mobile-public-profile-modal) #pn-public-profile-content::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 999px;
    background: color-mix(in srgb, var(--pn-story-accent) 34%, transparent);
    background-clip: padding-box;
}

#pn-public-profile-modal:not(.pn-mobile-public-profile-modal) .pn-sheet-close {
    position: absolute;
    z-index: 70;
    top: 18px;
    right: 18px;
}

.pn-profile-reading-progress {
    position: sticky;
    z-index: 64;
    top: 0;
    width: 100%;
    height: 3px;
    margin-bottom: -3px;
    overflow: hidden;
    background: rgba(255,255,255,.30);
    pointer-events: none;
}

.pn-profile-reading-progress > span {
    display: block;
    width: 100%;
    height: 100%;
    transform: scaleX(0);
    transform-origin: 0 50%;
    background: linear-gradient(90deg, color-mix(in srgb, var(--pn-story-accent) 68%, white), var(--pn-story-accent));
    box-shadow: 0 0 14px color-mix(in srgb, var(--pn-story-accent) 34%, transparent);
    transition: transform .08s linear;
}

/* Cover */
#pn-public-profile-modal:not(.pn-mobile-public-profile-modal) .pn-public-profile-hero.pn-story-cover {
    min-height: 430px;
    height: min(58dvh, 560px);
    margin: 0;
    border-radius: 0 0 34px 34px;
    background-position: center 26%;
}

.pn-story-cover .pn-public-profile-hero-shade {
    background:
        linear-gradient(180deg, rgba(9,10,14,.10) 0%, rgba(9,10,14,0) 38%, rgba(9,10,14,.22) 62%, rgba(9,10,14,.92) 100%),
        linear-gradient(90deg, rgba(9,10,14,.30), transparent 48%);
}

#pn-public-profile-modal:not(.pn-mobile-public-profile-modal) .pn-story-cover .pn-public-profile-hero-identity {
    right: 46px;
    bottom: 46px;
    left: 46px;
    justify-items: start;
    gap: 9px;
    text-align: left;
}

#pn-public-profile-modal:not(.pn-mobile-public-profile-modal) .pn-story-cover .pn-public-profile-hero-mode {
    margin-bottom: 3px;
}

#pn-public-profile-modal:not(.pn-mobile-public-profile-modal) .pn-story-cover .pn-public-profile-name {
    max-width: 640px;
    font-size: clamp(40px, 6vw, 58px);
    line-height: .96;
    letter-spacing: -.055em;
    text-wrap: balance;
}

.pn-story-cover-meta {
    color: rgba(255,255,255,.94);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px 11px;
    font-size: 12px;
    font-weight: 760;
}

.pn-story-cover-meta > span::before {
    content: '—';
    margin-right: 11px;
    color: rgba(255,255,255,.56);
}

.pn-story-cover-place {
    color: rgba(255,255,255,.82);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 720;
}

.pn-story-cover-place .pn-icon-svg { width: 14px; height: 14px; color: var(--pn-story-accent); }

.pn-story-cover-cue {
    position: absolute;
    z-index: 4;
    right: 28px;
    bottom: 27px;
    color: rgba(255,255,255,.68);
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}

.pn-story-cover-cue > span {
    width: 26px;
    height: 1px;
    position: relative;
    overflow: hidden;
    background: rgba(255,255,255,.28);
}

.pn-story-cover-cue > span::after {
    content: '';
    width: 10px;
    height: 1px;
    position: absolute;
    inset: 0 auto 0 -10px;
    background: #fff;
    animation: pnStoryCue 2.2s ease-in-out infinite;
}

.pn-story-cover-cue small {
    font-size: 8px;
    font-weight: 760;
    letter-spacing: .08em;
    text-transform: uppercase;
}

@keyframes pnStoryCue {
    0%, 18% { transform: translateX(0); opacity: 0; }
    35% { opacity: 1; }
    76%, 100% { transform: translateX(36px); opacity: 0; }
}

/* Reading body */
.pn-profile-story-body {
    --pn-story-gutter: 54px;
    max-width: 700px;
    margin: 0 auto;
    padding: 42px 48px 58px;
    color: var(--pn-story-ink);
    text-align: left;
}

.pn-profile-story-body > .pn-public-preview-banner {
    margin: 0 0 34px;
}

.pn-profile-story-flow {
    position: relative;
}

.pn-profile-story-flow::before {
    content: '';
    position: absolute;
    top: 20px;
    bottom: 24px;
    left: 19px;
    width: 1px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--pn-story-accent) 32%, transparent), rgba(32,33,39,.08) 22%, rgba(32,33,39,.08) 86%, transparent);
}

.pn-story-chapter {
    position: relative;
    padding: 4px 0 56px var(--pn-story-gutter);
    opacity: .34;
    transform: translateY(12px);
    transition: opacity .48s ease, transform .48s cubic-bezier(.2,.75,.25,1);
}

.pn-story-chapter:last-child { padding-bottom: 20px; }
.pn-story-chapter.is-visible { opacity: 1; transform: translateY(0); }

.pn-story-chapter::before {
    content: '';
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 14px;
    width: 11px;
    height: 11px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--pn-story-accent);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--pn-story-accent) 30%, transparent), 0 7px 18px color-mix(in srgb, var(--pn-story-accent) 20%, transparent);
}

.pn-story-chapter-head {
    margin: 0 0 23px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 13px;
}

.pn-story-chapter-number {
    color: color-mix(in srgb, var(--pn-story-accent) 46%, #c8c9d0);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    line-height: 1.2;
}

.pn-story-chapter-head small {
    color: var(--pn-story-accent);
    display: block;
    margin-bottom: 5px;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.pn-story-chapter-head h3 {
    max-width: 520px;
    margin: 0;
    color: var(--pn-story-ink);
    font-size: clamp(23px, 3.2vw, 31px);
    font-weight: 760;
    line-height: 1.08;
    letter-spacing: -.04em;
    text-wrap: balance;
}

.pn-story-chapter-body { min-width: 0; }

.pn-story-intention {
    width: fit-content;
    max-width: 100%;
    margin: 0 0 18px;
    padding: 8px 12px 8px 9px;
    border-radius: 999px;
    background: var(--pn-story-accent-soft);
    color: color-mix(in srgb, var(--pn-story-accent) 82%, #1d1e24);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 10px;
    font-weight: 820;
}

.pn-story-intention > span {
    width: 23px;
    height: 23px;
    border-radius: 50%;
    background: #fff;
    display: grid;
    place-items: center;
}

.pn-story-intention .pn-icon-svg { width: 13px; height: 13px; }

.pn-story-business-line {
    margin: 0 0 19px;
    padding-left: 15px;
    border-left: 2px solid color-mix(in srgb, var(--pn-story-accent) 64%, white);
    display: grid;
    gap: 5px;
}

.pn-story-business-line strong { font-size: 13px; line-height: 1.35; }
.pn-story-business-line span {
    color: var(--pn-story-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 9px;
    line-height: 1.4;
}
.pn-story-business-line .pn-icon-svg { width: 13px; height: 13px; color: var(--pn-story-accent); }

.pn-story-lede {
    max-width: 590px;
    margin: 0;
    color: #303139;
    font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
    font-size: clamp(22px, 3vw, 29px);
    line-height: 1.42;
    letter-spacing: -.025em;
    text-wrap: pretty;
}

.pn-story-lede::first-letter {
    color: var(--pn-story-accent);
    font-size: 1.12em;
}

.pn-story-character {
    margin-top: 26px;
    display: grid;
    gap: 9px;
}

.pn-story-character > small,
.pn-story-language-line > small {
    color: var(--pn-story-muted);
    font-size: 8px;
    font-weight: 850;
    letter-spacing: .10em;
    text-transform: uppercase;
}

.pn-story-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pn-story-tag-cloud > span {
    min-height: 33px;
    padding: 0 12px;
    border: 1px solid color-mix(in srgb, var(--pn-story-accent) 15%, rgba(32,33,39,.10));
    border-radius: 999px;
    background: color-mix(in srgb, var(--pn-story-accent) 5%, white);
    color: #4e5059;
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    font-weight: 760;
}

.pn-story-tag-cloud.is-qualities > span {
    background: transparent;
    color: color-mix(in srgb, var(--pn-story-accent) 76%, #34353d);
}

.pn-story-tag-cloud.is-interests > span:nth-child(3n + 2) { transform: translateY(4px); }
.pn-story-tag-cloud.is-interests > span:nth-child(4n) { transform: translateY(-2px); }

.pn-story-ledger {
    border-top: 1px solid var(--pn-story-line);
}

.pn-story-ledger-row {
    min-height: 55px;
    padding: 13px 0;
    border-bottom: 1px solid var(--pn-story-line);
    display: grid;
    grid-template-columns: minmax(108px, .42fr) minmax(0, 1fr);
    align-items: baseline;
    gap: 18px;
}

.pn-story-ledger-row > span {
    color: var(--pn-story-muted);
    font-size: 9px;
    font-weight: 760;
    line-height: 1.4;
}

.pn-story-ledger-row > strong {
    min-width: 0;
    color: #2b2c33;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.pn-story-ledger.is-bookmarks .pn-story-ledger-row > strong {
    font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
    font-size: 15px;
    font-weight: 650;
}

.pn-story-language-line {
    margin-top: 22px;
    display: grid;
    gap: 10px;
}

.pn-story-quotes {
    display: grid;
    gap: 38px;
}

.pn-story-quote {
    position: relative;
    margin: 0;
    padding: 2px 0 0 30px;
}

.pn-story-quote::before {
    content: '“';
    position: absolute;
    top: -15px;
    left: 0;
    color: color-mix(in srgb, var(--pn-story-accent) 32%, white);
    font-family: ui-serif, Georgia, serif;
    font-size: 58px;
    font-weight: 800;
    line-height: 1;
}

.pn-story-quote figcaption {
    margin-bottom: 8px;
    color: var(--pn-story-accent);
    font-size: 9px;
    font-weight: 880;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.pn-story-quote blockquote {
    margin: 0;
    color: #2a2b32;
    font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
    font-size: clamp(20px, 2.6vw, 25px);
    line-height: 1.42;
    letter-spacing: -.02em;
    text-wrap: pretty;
}

.pn-story-closing-note {
    margin: 26px 0 2px calc(var(--pn-story-gutter) - 4px);
    padding-top: 25px;
    border-top: 1px solid var(--pn-story-line);
    color: #686a73;
    display: flex;
    align-items: flex-start;
    gap: 11px;
}

.pn-story-closing-note > span {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 50%;
    background: var(--pn-story-accent-soft);
    color: var(--pn-story-accent);
    display: grid;
    place-items: center;
}

.pn-story-closing-note .pn-icon-svg { width: 16px; height: 16px; }
.pn-story-closing-note small,
.pn-story-closing-note strong { display: block; }
.pn-story-closing-note small {
    margin-bottom: 3px;
    color: var(--pn-story-muted);
    font-size: 8px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.pn-story-closing-note strong { color: #3e4048; font-size: 11px; line-height: 1.45; }

.pn-profile-story-empty {
    margin: 18px 0;
    color: var(--pn-story-muted);
    font-family: ui-serif, Georgia, serif;
    font-size: 19px;
    line-height: 1.5;
}

/* Mobile/tablet keeps the immersive cover + fixed connection action, but the readable content uses the same chapters. */
@media (max-width: 860px) {
    #pn-public-profile-modal.pn-mobile-public-profile-modal .pn-profile-reading-progress {
        position: absolute;
        z-index: 18;
        top: 0;
        left: 0;
        height: 3px;
        margin: 0;
        background: rgba(255,255,255,.16);
    }

    .pn-mobile-profile-details.pn-profile-story-body {
        --pn-story-gutter: 44px;
        max-width: none;
        margin: 0;
        padding: 32px 20px calc(44px + env(safe-area-inset-bottom, 0px));
        background: #fff;
    }

    .pn-mobile-profile-details .pn-profile-story-flow::before { left: 15px; }
    .pn-mobile-profile-details .pn-story-chapter { padding: 2px 0 44px var(--pn-story-gutter); }
    .pn-mobile-profile-details .pn-story-chapter:last-child { padding-bottom: 12px; }
    .pn-mobile-profile-details .pn-story-chapter::before { top: 10px; left: 10px; }
    .pn-mobile-profile-details .pn-story-chapter-head { margin-bottom: 19px; gap: 10px; }
    .pn-mobile-profile-details .pn-story-chapter-head h3 { font-size: clamp(22px, 6vw, 27px); }
    .pn-mobile-profile-details .pn-story-lede { font-size: clamp(20px, 5.2vw, 25px); line-height: 1.45; }
    .pn-mobile-profile-details .pn-story-quote { padding-left: 24px; }
    .pn-mobile-profile-details .pn-story-quote blockquote { font-size: clamp(19px, 5vw, 23px); }
    .pn-mobile-profile-details .pn-story-quotes { gap: 31px; }
    .pn-mobile-profile-details .pn-story-ledger-row {
        min-height: 51px;
        grid-template-columns: 104px minmax(0, 1fr);
        gap: 14px;
    }
    .pn-mobile-profile-details .pn-story-ledger-row > strong { font-size: 12px; }
    .pn-mobile-profile-details .pn-story-tag-cloud > span { min-height: 31px; padding: 0 10px; font-size: 9px; }
    .pn-mobile-profile-details .pn-story-closing-note { margin-left: calc(var(--pn-story-gutter) - 2px); }
    .pn-story-cover-cue-mobile { display: none; }
}

@media (max-width: 430px) {
    .pn-mobile-profile-details.pn-profile-story-body {
        --pn-story-gutter: 39px;
        padding-right: 17px;
        padding-left: 17px;
    }
    .pn-mobile-profile-details .pn-profile-story-flow::before { left: 13px; }
    .pn-mobile-profile-details .pn-story-chapter::before { left: 8px; }
    .pn-mobile-profile-details .pn-story-ledger-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    .pn-mobile-profile-details .pn-story-ledger-row > span { font-size: 8px; text-transform: uppercase; letter-spacing: .06em; }
    .pn-mobile-profile-details .pn-story-ledger.is-bookmarks .pn-story-ledger-row > strong { font-size: 14px; }
}

@media (min-width: 861px) and (max-height: 720px) {
    #pn-public-profile-modal:not(.pn-mobile-public-profile-modal) .pn-public-profile-hero.pn-story-cover {
        min-height: 360px;
        height: 50dvh;
    }
    #pn-public-profile-modal:not(.pn-mobile-public-profile-modal) .pn-story-cover .pn-public-profile-hero-identity {
        right: 38px;
        bottom: 38px;
        left: 38px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pn-story-chapter {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .pn-story-cover-cue > span::after { animation: none !important; }
    .pn-profile-reading-progress > span { transition: none !important; }
}
