/* page-people: scoped styles. */

@import url("../components/discovery.css");

@import url("../components/people-card.css");

.people-subheading {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    min-height: 3rem;
}

.people-subheading>a {
    font-size: 2rem;
    text-decoration: none;
    color: #333;
    line-height: 1;
}

.people-subheading h1 {
    font-size: 1.5rem;
    margin: 0;
}

.people-record-tabs {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex: 1;
}

.people-record-tabs a {
    color: #999;
    font-size: 1.15rem;
    text-decoration: none;
    padding: .5rem 0;
}

.people-record-tabs a[aria-current] {
    color: #222;
    font-weight: 700;
}

.people-record-heading-main {
    flex: 1;
}

.people-record-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.4rem;
}

.people-record-mark {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 16px;
    background: var(--color-brand-surface-soft);
    color: var(--color-brand-action);
    font-size: 1.2rem;
}

.people-record-title h1 {
    margin: 0;
    color: var(--color-brand-heading);
    font-size: 1.4rem;
}

.people-record-title p {
    margin: .3rem 0 0;
    color: var(--color-brand-description);
    font-size: .85rem;
}

.people-record-tabs {
    justify-content: flex-start;
    width: fit-content;
    gap: .35rem;
    padding: .3rem;
    border: 1px solid #e6ecea;
    border-radius: 14px;
    background: #edf1f0;
}

.people-record-tabs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-width: 150px;
    padding: .65rem 1rem;
    border-radius: 11px;
    color: #737e7b;
    font-size: .9rem;
    transition: background .18s ease,color .18s ease,box-shadow .18s ease;
}

.people-record-tabs a:hover {
    color: var(--color-brand-heading);
}

.people-record-tabs a[aria-current="page"] {
    background: #fff;
    color: var(--color-brand-action);
    box-shadow: 0 2px 8px #183b3214;
}

.people-record-tabs a:focus-visible {
    outline: 2px solid var(--color-brand-action);
    outline-offset: 2px;
}

.people-record-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 300px;
    padding: 2.5rem 1.5rem;
    border: 1px solid #e9efed;
    border-radius: 22px;
    background: radial-gradient(ellipse at 50% 0,#eef8f5,transparent 62%),#fff;
    text-align: center;
}

.people-record-empty-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    border-radius: 21px;
    background: #e7f6f1;
    color: var(--color-brand-action);
    font-size: 1.5rem;
}

.people-record-empty h2 {
    margin: 0;
    color: var(--color-brand-heading);
    font-size: 1.1rem;
}

.people-record-empty p {
    margin: .55rem 0 1.2rem;
    color: var(--color-brand-description);
    font-size: .88rem;
}

.people-record-empty > a {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .7rem 1rem;
    border-radius: 12px;
    background: var(--color-brand-action);
    color: #fff;
    font-size: .88rem;
    text-decoration: none;
    transition: transform .18s ease,background .18s ease;
}

.people-record-empty > a:hover {
    transform: translateY(-1px);
    background: #087a71;
}

@media(min-width:1025px) {
    .people-record-heading {
        align-items: stretch;
        margin: 1.5rem 0 1.25rem;
    }

    .people-record-heading .people-subheading-back {
        display: none;
    }
}

.people-location-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    color: #777;
    font-size: .85rem;
}

.people-location-controls button {
    border: 1px solid #b8e3da;
    background: #e5f8f3;
    color: #16736d;
    border-radius: 12px;
    padding: .6rem .9rem;
    font: inherit;
    cursor: pointer;
}

.people-location-controls button:disabled {
    opacity: .6;
    cursor: wait;
}

.people-list-end {
    text-align: center;
    color: #aaa;
    padding: 1.5rem;
}

.people-location-controls.people-location-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    box-sizing: border-box;
    max-width: 520px;
    min-height: 350px;
    margin: 3rem auto;
    padding: 2.5rem 2rem;
    text-align: center;
    border: 1px solid #e5efeb;
    border-radius: 24px;
    background: radial-gradient(ellipse at top,#e4fcf5,transparent 65%),#fff;
    box-shadow: 0 14px 40px rgba(21,63,69,.06);
}

.people-location-symbol {
    display: grid;
    place-items: center;
    width: 80px;
    height: 80px;
    border-radius: 26px;
    color: #00aaa8;
    background: linear-gradient(135deg,#d3faf1,#effcfa);
    font-size: 2.25rem;
    box-shadow: 0 7px 20px #00bdbd12;
}

.people-location-prompt h2 {
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.5;
    margin: 0;
    color: #153f45;
}

.people-location-description {
    max-width: 350px;
    margin: 0;
    color: #71858a;
    font-size: .95rem;
    line-height: 1.8;
}

.people-location-prompt button {
    min-height: 46px;
    min-width: 190px;
    padding: .7rem 1.5rem;
    border: 0;
    border-radius: 14px;
    background: #00bdbd;
    color: #fff;
    font-size: .95rem;
    font-weight: 600;
}

.people-location-prompt button:hover:not(:disabled) {
    background: #00aaa8;
}

.people-location-prompt button:focus-visible,.people-location-alternative:focus-visible {
    outline: 3px solid #008f91;
    outline-offset: 4px;
}

.people-location-prompt [data-location-status] {
    max-width: 360px;
    min-height: 2.8em;
    color: #859799;
    font-size: .8rem;
    line-height: 1.7;
}

.people-location-alternative {
    font-size: .85rem;
    color: #577679;
    text-decoration: none;
}

.people-location-prompt[data-state="denied"] [data-location-status],.people-location-prompt[data-state="error"] [data-location-status] {
    color: #ab6530;
}

.people-location-prompt[data-state="loading"] .people-location-symbol {
    animation: people-location-pulse 1.5s ease-in-out infinite;
}

@keyframes people-location-pulse {
    50% {
        box-shadow: 0 0 0 12px #00bdbd0c;
    }
}

@media(prefers-reduced-motion:reduce) {
    .people-location-prompt[data-state="loading"] .people-location-symbol {
        animation: none;
    }
}

@media(max-width:1024px) {
    .people-location-controls.people-location-prompt {
        margin: 1rem 0 1.4rem;
    }

    .people-location-prompt h2 {
        font-size: 1.2rem;
    }

    .people-location-description {
        font-size: .9rem;
    }
}

@media(max-width:1024px) {
    body.people_records,body.people_nearby {
        background: #e6e6e6;
    }

    body.people_records .page-main,body.people_nearby .page-main {
        margin-top: 0!important;
        padding: 0!important;
        background: #e6e6e6;
        min-height: 100dvh;
    }

    body.people_records .people-page,body.people_nearby .people-page {
        padding: .5rem .55rem 2rem;
    }

    .people-subheading {
        margin: 0 0 .5rem;
        min-height: 3rem;
    }

    .people-record-tabs {
        gap: 1.25rem;
    }

    .people-record-heading {
        align-items: center;
    }

    .people-record-title {
        display: none;
    }

    .people-record-heading-main {
        display: flex;
        justify-content: center;
    }

    .people-record-tabs {
        width: auto;
        gap: .3rem;
        padding: .2rem;
    }

    .people-record-tabs a {
        min-width: 0;
        padding: .5rem .75rem;
        font-size: 1.05rem;
    }

    .people-record-tabs a i {
        display: none;
    }

    .people-record-empty {
        min-height: 240px;
        padding: 2rem 1rem;
        border-radius: 16px;
    }
}

.people-toolbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1.25rem;
}

.people-toolbar a {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem .9rem;
    border: 1px solid #dce9e7;
    border-radius: 12px;
    background: #fff;
    color: #28636a;
    text-decoration: none;
    font-size: .9rem;
}

.people-toolbar a:hover {
    background: #e5f8f3;
}

.people-toolbar a:focus-visible {
    outline: 3px solid #00aaa8;
    outline-offset: 3px;
}

/* Nearby authorization is a compact part of the page, not a standalone title card. */
.people-location-controls.people-location-prompt {
    display: grid;
    grid-template-columns: 66px minmax(0,1fr);
    grid-template-areas: "icon copy" "icon action" "icon status" "icon alternative";
    align-items: center;
    justify-content: initial;
    gap: 8px 18px;
    box-sizing: border-box;
    width: min(880px,100%);
    max-width: 880px;
    min-height: 0;
    margin: clamp(2rem,7vh,5rem) auto;
    padding: 30px 34px;
    border: 1px solid #dceee8;
    border-radius: 22px;
    background: radial-gradient(ellipse at 0 0,#e3faf3 0,transparent 52%),linear-gradient(120deg,#fff,#fafffd);
    box-shadow: 0 16px 44px rgba(22,73,63,.07);
    text-align: left;
}

.people-location-prompt .people-location-symbol { grid-area: icon; width: 62px; height: 62px; border-radius: 20px; font-size: 1.6rem; }
.people-location-prompt .people-location-copy { grid-area: copy; }
.people-location-prompt h2 { font-size: 1.22rem; }
.people-location-prompt .people-location-description { max-width: 100%; margin-top: 4px; font-size: .88rem; }
.people-location-prompt button { grid-area: action; justify-self: start; min-width: 168px; min-height: 42px; margin-top: 5px; border-radius: 12px; cursor: pointer; transition: transform .18s ease,box-shadow .18s ease,background .18s ease; }
.people-location-prompt button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 7px 16px #00aaa826; }
.people-location-prompt [data-location-status] { grid-area: status; min-height: 0; max-width: 100%; }
.people-location-prompt .people-location-alternative { grid-area: alternative; justify-self: start; margin-top: 3px; }

@media(max-width:1024px) {
    body.people_nearby .people-page { padding: .7rem .85rem 1.5rem; }
    .people-location-controls.people-location-prompt {
        grid-template-columns: 42px minmax(0,1fr);
        grid-template-areas: "icon copy" "icon action" "status status" "alternative alternative";
        gap: 7px 12px;
        width: 100%;
        margin: .5rem 0 1rem;
        padding: 16px 14px;
        border-radius: 17px;
        background: linear-gradient(135deg,#f0faf7,#fff 82%);
        box-shadow: 0 5px 18px rgba(22,73,63,.045);
    }
    .people-location-prompt .people-location-symbol { width: 40px; height: 40px; border-radius: 14px; font-size: 1.1rem; }
    .people-location-prompt h2 { font-size: .98rem; }
    .people-location-prompt .people-location-description { font-size: .78rem; line-height: 1.55; }
    .people-location-prompt button { justify-self: stretch; min-width: 0; min-height: 40px; margin: 3px 0 0; font-size: .86rem; }
    .people-location-prompt [data-location-status] { font-size: .72rem; }
    .people-location-prompt .people-location-alternative { justify-self: center; margin: 0; font-size: .78rem; }
}

.people-tool-description,
.people-tool-arrow,
.people-feed-heading {
    display: none;
}

@media(min-width:1025px) {
    .people-intro {
        display: grid;
        grid-template-columns: minmax(0,1fr) minmax(290px,.65fr);
        align-items: center;
        gap: 2rem;
        margin-bottom: 2rem;
        padding: 2rem;
        border: 1px solid var(--color-border);
        border-radius: 24px;
        background: radial-gradient(ellipse at top left,var(--color-brand-surface-soft),transparent 75%),var(--color-bg-card);
    }

    .people-intro .discovery-heading {
        margin: 0;
        text-align: left;
    }

    .people-intro .editorial-kicker {
        margin: 0;
        color: var(--color-brand-action);
        font-size: .8rem;
        font-weight: 600;
        letter-spacing: .08em;
    }

    .people-intro .discovery-heading h1 {
        margin: .8rem 0;
        color: var(--color-brand-heading);
        font-size: clamp(1.6rem,2.5vw,2.2rem);
        font-weight: 700;
        line-height: 1.4;
    }

    .people-intro .discovery-heading > p:last-child {
        margin: 0;
        color: var(--color-brand-description);
        font-size: .9rem;
    }

    .people-intro .people-toolbar {
        display: grid;
        grid-template-columns: minmax(0,1fr);
        justify-content: stretch;
        gap: .75rem;
        margin: 0;
    }

    .people-intro .people-toolbar a {
        gap: .9rem;
        padding: 1rem;
        border-color: var(--color-border);
        border-radius: 16px;
        background: var(--color-bg-card);
        transition: border-color .2s ease,box-shadow .2s ease;
    }

    .people-intro .people-toolbar a:hover {
        border-color: var(--color-primary);
        box-shadow: 0 4px 16px rgba(22,56,50,.07);
    }

    .people-intro .people-toolbar a > i:first-child {
        display: grid;
        place-items: center;
        flex: 0 0 42px;
        height: 42px;
        border-radius: 13px;
        background: var(--color-brand-surface-soft);
        color: var(--color-brand-action);
        font-size: 1.15rem;
    }

    .people-intro .people-toolbar a:last-child > i:first-child {
        background: var(--color-brand-surface-secondary);
        color: var(--color-brand-heading);
    }

    .people-tool-copy {
        display: grid;
        gap: .3rem;
        flex: 1;
        min-width: 0;
    }

    .people-tool-title {
        color: var(--color-brand-heading);
        font-weight: 600;
    }

    .people-tool-description {
        display: block;
        color: var(--color-brand-description);
        font-size: .75rem;
        line-height: 1.5;
    }

    .people-intro .people-tool-arrow {
        display: block;
        color: var(--color-text-tertiary);
        font-size: .7rem;
    }

    .people-feed-heading {
        display: flex;
        align-items: baseline;
        gap: .9rem;
        margin-bottom: 1.1rem;
    }

    .people-feed-heading h2 {
        margin: 0;
        color: var(--color-brand-heading);
        font-size: 1.1rem;
        font-weight: 600;
    }

    .people-feed-heading p {
        margin: 0;
        color: var(--color-text-tertiary);
        font-size: .8rem;
    }
}

@media(min-width:1025px) {
    .people-page .discovery-masonry {
        columns: initial;
        display: grid;
        grid-template-columns: repeat(4,minmax(0,1fr));
        gap: 1rem;
        align-items: start;
    }

    .people-page .discovery-card {
        margin-bottom: 0;
    }
}

@media(max-width:1024px) {
    .people-toolbar {
        justify-content: space-between;
        margin: 0;
        min-height: 3.5rem;
    }

    .people-toolbar a {
        border: 0;
        background: transparent;
        padding: .5rem;
        color: #333;
        font-size: .75rem;
    }

    .people-toolbar a i {
        font-size: 1.4rem;
    }

    .people-toolbar a:last-child i {
        color: #6d9aff;
    }

    .people-page .discovery-heading {
        display: none;
    }

    .people-page .discovery-masonry {
        columns: 2;
        column-gap: .55rem;
    }

    .people-page .discovery-author img {
        width: 30px;
        height: 30px;
    }
}

@media(max-width:1024px) {
    body.people .discovery-page {
        min-height: calc(100dvh - var(--nav-tab-height));
        background: #e6e6e6;
    }
}

.people-page .discovery-masonry.people-waterfall {
    display: grid;
    columns: initial;
    grid-template-columns: repeat(4,minmax(0,1fr));
    grid-auto-rows: 4px;
    gap: 16px;
    align-items: start;
}

.people-waterfall .discovery-card {
    margin-bottom: 0;
}

.people-feed-loader {
    text-align: center;
    padding: 24px 0;
    color: #888;
}

.people-feed-loader[hidden],.people-feed-loader button[hidden],.people-page .discovery-pagination[hidden] {
    display: none;
}

.people-feed-loader button {
    border: 1px solid #b8e7e3;
    border-radius: 12px;
    padding: 10px 24px;
    background: #edfaf8;
    color: #008f91;
    cursor: pointer;
}

.people-feed-loader button:disabled {
    opacity: .6;
    cursor: wait;
}

@media(max-width:1024px) {
    .people-page .discovery-masonry.people-waterfall {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 9px;
    }
}

@media(max-width:1024px) {
body.people .discovery-page {
        padding-top: 0;
    }
body.people .discovery-heading {
        display: none;
    }
}

/* Nearby authorization page composition */
.people-nearby-page { display: flex; flex-direction: column; min-height: min(68vh, 680px); }
.people-nearby-page .people-location-prompt { margin: auto; }
@media (max-width: 1024px) {
    body.people_nearby, body.people_nearby .page-main { background: #f3f6f5; }
    body.people_nearby .page-main { min-height: 100dvh; }
    body.people_nearby .people-nearby-page { box-sizing: border-box; min-height: calc(100dvh - 72px); padding: 0 18px 30px; }
    .people-nearby-page .nearby-mobile-heading { margin: 0 -2px 10px; }
    .people-nearby-page .people-location-controls.people-location-prompt {
        grid-template-columns: minmax(0,1fr); grid-template-areas: "icon" "copy" "action" "status" "alternative";
        justify-items: center; gap: 14px; width: 100%; max-width: 480px; margin: auto auto 0; padding: 28px 22px 24px;
        border: 1px solid #e0ece8; border-radius: 24px; background: radial-gradient(ellipse at 50% 0,#e2f8f2 0,transparent 62%),#fff;
        box-shadow: 0 16px 38px rgba(20,64,58,.075); text-align: center;
    }
    .people-nearby-page .people-location-prompt .people-location-symbol { width: 62px; height: 62px; border-radius: 21px; font-size: 1.55rem; }
    .people-nearby-page .people-location-prompt h2 { font-size: 1.14rem; }
    .people-nearby-page .people-location-prompt .people-location-description { max-width: 290px; margin-top: 5px; font-size: .88rem; line-height: 1.7; }
    .people-nearby-page .people-location-prompt button { width: 100%; max-width: 320px; min-height: 48px; margin: 0; border-radius: 14px; font-size: .94rem; }
    .people-nearby-page .people-location-prompt [data-location-status] { min-height: 0; margin: -2px 0 0; font-size: .76rem; }
    .people-nearby-page .people-location-prompt .people-location-alternative { margin-top: -5px; font-size: .84rem; }
}
@media (max-width: 380px) {
    body.people_nearby .people-nearby-page { padding-right: 14px; padding-left: 14px; }
    .people-nearby-page .people-location-controls.people-location-prompt { padding: 24px 18px 21px; }
}
/* Page key is shared by the Find People subroutes, so scope their layout to view classes. */
.people-nearby-page { background: #f3f6f5; }
@media (max-width: 1024px) {
    body.people, body.people .page-main { background: #f3f6f5; }
    .people-records-page { min-height: calc(100dvh - var(--header-mobile-height) - var(--nav-tab-height)); padding: 0 18px calc(var(--nav-tab-height) + 24px); background: #f3f6f5; }
    .people-records-page .people-subheading { justify-content: center; margin: 0 0 14px; }
    .people-records-page .people-subheading-back { display: none; }
    .people-records-page .people-record-title { display: none; }
    .people-records-page .people-record-heading-main { display: flex; justify-content: center; }
    .people-records-page .people-record-tabs { justify-content: center; }
    .people-nearby-page { min-height: calc(100dvh - var(--header-mobile-height) - var(--nav-tab-height)); }
}
/* Mobile Find People records follow the mini program's two-tab, two-column layout. */
@media (max-width: 1024px) {
    .people-records-page { padding-top: 0; }
    .people-records-page .people-record-heading {
        display: grid; grid-template-columns: 36px minmax(0,1fr) 36px; align-items: center;
        min-height: 50px; margin: 0 0 10px; gap: 0;
    }
    .people-records-page .people-record-heading .people-subheading-back {
        display: grid; place-items: center; width: 34px; height: 38px; color: #333; font-size: 1.25rem;
    }
    .people-records-page .people-record-heading-main { display: flex; justify-content: center; min-width: 0; }
    .people-records-page .people-record-title { display: none; }
    .people-records-page .people-record-tabs {
        display: flex; justify-content: center; gap: 0; width: 100%; padding: 0; border: 0; border-radius: 0; background: transparent;
    }
    .people-records-page .people-record-tabs a {
        display: inline-flex; justify-content: center; min-width: 0; margin: 0 9px; padding: 8px 0;
        border-radius: 0; background: transparent; box-shadow: none; color: #808080; font-size: 1rem; font-weight: 400; white-space: nowrap;
    }
    .people-records-page .people-record-tabs a[aria-current="page"] { background: transparent; box-shadow: none; color: #111; font-weight: 500; }
    .people-records-page .people-record-tabs a i { display: none; }
    .people-records-page .discovery-masonry { columns: 2 145px; column-gap: 10px; }
    .people-record-card .discovery-card { margin-bottom: 10px; border-radius: 12px; background: #fff; box-shadow: 0 8px 12px rgba(77,158,175,.1); }
    .people-record-card .find-post-visual { background: #000; }
    .people-record-card .find-post-visual > .discovery-cover { display: block; width: 100%; height: auto; max-height: none; aspect-ratio: auto; object-fit: cover; opacity: .5; }
    .people-record-card .find-post-visual > .find-post-placeholder { aspect-ratio: 3/4; }
    .people-record-card .find-post-overlay { padding: 10px; gap: 6px; background: transparent; }
    .people-record-card .find-post-location { align-self: start; }
    .people-record-card .find-post-overlay > h2 { width: 80%; max-width: 6em; justify-self: center; padding: 0; font-size: clamp(1rem,4.8vw,1.35rem); line-height: 1.5; text-align: left; text-shadow: 0 1px 5px rgba(0,0,0,.45); }
    .people-record-card .find-post-tags { gap: 5px; }
    .people-record-card .find-post-tags .find-post-reward { align-self: flex-start; }
    .people-record-card .find-post-purpose-row { gap: 5px; }
    .people-record-card .find-post-purpose-row > .find-post-purpose { max-width: calc(100% - 27px); }
    .people-record-card .find-post-purpose-row > .find-post-sex { width: 22px; height: 22px; flex: 0 0 22px; }
    .people-record-card .discovery-card-body { padding: 10px; }
    .people-record-card .find-post-area { display: flex; align-items: flex-start; gap: 5px; padding-bottom: 7px!important; color: #808080!important; font-size: .7rem!important; }
    .people-record-card .discovery-card-body > p:not(.find-post-area) { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0 0 9px; color: #333; font-size: .78rem; line-height: 1.55; }
    .people-record-card .discovery-author { gap: 7px; font-size: .7rem; }
    .people-record-card .discovery-author img { width: 26px; height: 26px; }
    .people-record-card .discovery-author small { display: block; margin-top: 2px; }
    .people-records-page .people-record-empty { min-height: 0; margin: 2px 0 0; padding: 22px 10px 30px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
    .people-records-page .people-record-empty-icon,
    .people-records-page .people-record-empty h2,
    .people-records-page .people-record-empty p,
    .people-records-page .people-record-empty > a { display: none; }
    .people-records-page .people-record-empty::after { content: attr(data-empty-label); color: #999; font-size: .85rem; }
    .people-records-page .people-list-end { padding: 18px 0 28px; color: #999; font-size: .85rem; }
}
@media (max-width: 380px) {
    .people-records-page .people-record-tabs a { margin-inline: 6px; font-size: .94rem; }
    .people-record-card .find-post-overlay { padding: 8px; }
    .people-record-card .discovery-card-body { padding: 8px; }
}@media (max-width: 1024px) {
    body.people:has(.people-records-page),
    body.people:has(.people-records-page) .page-main,
    .people-records-page { background: #e5e5e5; }
}