/* Profile page. Built on the social.css tokens (colour and the TrailTrack type scale); rarity colours are page tokens with dark variants. */
:root { --pf-rare: #2c66a8; --pf-rare-soft: #e8f0fa; --pf-epic: #74469c; --pf-epic-soft: #f3ecf8; --pf-legend: #9a5a06; --pf-legend-soft: #fcefd9; --pf-gap: 96px; --pf-viewer: rgba(8, 10, 12, 0.94); --pf-glass-14: rgba(255, 251, 247, 0.14); --pf-glass-26: rgba(255, 251, 247, 0.26); }
:root[data-theme="dark"] { --pf-rare: #93bdf0; --pf-rare-soft: #17232f; --pf-epic: #c9a8ea; --pf-epic-soft: #231b2c; --pf-legend: #f2b85f; --pf-legend-soft: #2e2416; }

.pf[data-view="visitor"] [data-owner-only], .pf[data-view="owner"] [data-visitor-only] { display: none !important; }
.pf-hide-sm { display: inline; }
.pf span.bar { display: block; }
.pf-more { display: inline-flex; align-items: center; min-height: 32px; padding: 0; border: 0; background: none; font: var(--fw-button) var(--fs-small)/var(--lh-button) var(--font-text); cursor: pointer; }
.pf-iconbtn { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--quiet); cursor: pointer; }
.pf-iconbtn:hover { background: var(--bg-soft); color: var(--ink); }
.pf-count { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px 4px 8px; border-radius: 999px; background: var(--scrim-66); color: var(--on-accent); font: var(--fw-title) var(--fs-caption-tight)/var(--lh-caption) var(--font-text); font-variant-numeric: tabular-nums; }
.pf-count .icon { width: 15px; height: 15px; }
.pf-h2 { font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-heading); }
.pf-more-row { display: flex; justify-content: center; margin-top: 28px; }
.pf-more-row .icon { width: 18px; height: 18px; }

/* ---------- view switch ---------- */
.pf-viewbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 16px; margin-bottom: 16px; }
.pf-viewbar__note { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: var(--fs-small); font-weight: var(--fw-title); line-height: var(--lh-small); }
.pf-viewbar__note > span { display: inline-flex; align-items: center; gap: 8px; }
.pf-viewbar__note .icon { width: 18px; height: 18px; color: var(--link); }
.pf-viewbar .seg { background: var(--bg-soft); }
.pf-viewbar .seg [aria-pressed="true"] { background: var(--ink); color: var(--bg); box-shadow: none; }
.pf-viewbar .seg .icon { width: 16px; height: 16px; }

/* ---------- head ---------- */
.pf-head { overflow: visible; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); }
.pf-cover { position: relative; overflow: hidden; border-radius: var(--r-lg) var(--r-lg) 0 0; height: clamp(160px, 22vw, 300px); background: var(--bg-soft); }
.pf-cover__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; }
.pf-body { padding: 0 clamp(16px, 3vw, 40px) clamp(24px, 3vw, 36px); }
.pf-idrow { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: -100px; }
.pf-avatar { position: relative; z-index: 1; flex: none; width: 200px; height: 200px; overflow: hidden; border: 5px solid var(--surface); border-radius: 50%; background: var(--bg-soft); box-shadow: var(--shadow); }
.pf-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pf-avatar .avatar { width: 100%; height: 100%; font: var(--fw-heading) var(--fs-h2)/var(--lh-display) var(--font-display); }
.pf-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding-bottom: 4px; }
.pf-fb { width: 44px; min-width: 44px; padding: 0; }
.pf-fb .icon { width: 20px; height: 20px; }
.pf-fb .icon + .icon, .pf-fb[aria-pressed="true"] .icon:first-child { display: none; }
.pf-fb[aria-pressed="true"] .icon + .icon { display: block; }
.pf-follow-hero { min-height: 44px; padding: 0 20px; }

.pf-grid { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px 24px; margin-top: 16px; }
.pf-name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: var(--ls-display); }
.pf-name .verified { width: 24px; height: 24px; }
.pf-name .verified .icon { width: 15px; height: 15px; }
.pf-handle { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-top: 8px; color: var(--copy); font-size: var(--fs-body); line-height: var(--lh-small); }
.pf-handle__login { display: inline-flex; align-items: center; font-size: var(--fs-body); }
.pf-handle > span { display: inline-flex; align-items: center; gap: 4px; }
.pf-handle .icon { width: 17px; height: 17px; color: var(--quiet); }
.pf-bio { max-width: 40em; margin-top: 16px; color: var(--ink-2); font-size: var(--fs-body); line-height: var(--lh-body); }
.pf-rank { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0 12px; min-height: 32px; margin-top: 4px; padding: 0; border: 0; background: none; color: var(--quiet); font: var(--fw-ui) var(--fs-small)/var(--lh-small) var(--font-text); font-variant-numeric: tabular-nums; cursor: pointer; }
.pf-rank:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.pf-reputation { display:flex; align-items:center; gap:8px; padding:0; border:0; background:none; color:var(--quiet); font:inherit; font-size:var(--fs-small); cursor:pointer; }
.pf-reputation strong { color:var(--ink); font-variant-numeric:tabular-nums; }
.pf-reputation:hover { color:var(--orange); text-decoration:underline; text-underline-offset:3px; }
.pf-reputation:focus-visible { outline:2px solid var(--orange); outline-offset:3px; }
.pf-fill { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; margin-top: 12px; padding: 0; border: 0; background: none; color: var(--link); font: var(--fw-button) var(--fs-small)/var(--lh-button) var(--font-text); cursor: pointer; }
.pf-fill:hover { text-decoration: underline; text-underline-offset: 3px; }
.pf-fill .icon { width: 16px; height: 16px; }
.pf-counts { display: flex; flex-wrap: wrap; gap: 4px; margin: 24px 0 0 -12px; }
.pf-counts a, .pf-counts li > span { display: inline-flex; align-items: baseline; gap: 8px; min-height: 40px; padding: 8px 12px; border-radius: 999px; color: var(--copy); font-size: var(--fs-small); font-weight: var(--fw-ui); line-height: var(--lh-small); white-space: nowrap; }
.pf-counts a:hover { background: var(--bg-soft); color: var(--ink); }
.pf-counts b { color: var(--ink); font: var(--fw-heading) var(--fs-h4)/var(--lh-display) var(--font-display); font-variant-numeric: tabular-nums; }


/* ---------- tabs ---------- */
.pf-anchor { scroll-margin-top: 68px; }
.pf-tabbar { position: sticky; top: 68px; z-index: 30; margin: 32px 0 48px; background: var(--bg); }
.pf-tabs button { min-height: 52px; }
.pf-panel:focus-visible { outline-offset: 8px; }

/* ---------- sections ---------- */
.pf-sec + .pf-sec { margin-top: var(--pf-gap); }
#profile-panel-overview > .pf-sec + .pf-sec { margin-top: clamp(32px, 4vw, 48px); }
.pf-sec__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-bottom: 24px; }
.pf-stream { display: grid; gap: 40px; max-width: none; }
.pf-wide { max-width: none; }

/* completion strip (owner) */

/* feature report */
.pf-feature { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--bg-soft); box-shadow: var(--shadow); }
.pf-feature__media { display: block; width: 100%; aspect-ratio: 21 / 9; padding: 0; overflow: hidden; border: 0; background: var(--bg-soft); cursor: zoom-in; }
.pf-feature__media img { width: 100%; height: 100%; object-fit: cover; }
.pf-feature__card { position: absolute; left: 24px; bottom: 24px; display: grid; gap: 8px; max-width: min(560px, calc(100% - 48px)); padding: 20px 24px; border-radius: var(--r); background: var(--glass-95); color: var(--ink-fixed); box-shadow: var(--shadow); }
.pf-feature__card h3 { font-size: var(--fs-h4); font-weight: var(--fw-title); line-height: var(--lh-h4); }
.pf-feature__card a:hover { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 3px; }
.pf-feature__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; color: var(--copy-fixed); font-size: var(--fs-small); line-height: var(--lh-small); font-variant-numeric: tabular-nums; }
.pf-feature__meta > span { display: inline-flex; align-items: center; gap: 4px; }
.pf-feature__card .icon { width: 16px; height: 16px; }

/* attachment */
.pf-attach { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 16px; align-items: center; width: 100%; padding: 8px 16px 8px 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-soft); color: var(--ink); font: var(--fw-text) var(--fs-small)/var(--lh-small) var(--font-text); text-align: left; cursor: pointer; transition: border-color 160ms; }
.pf-attach:hover { border-color: var(--line-2); }
.pf-attach > img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }
.pf-attach small { display: block; color: var(--quiet); font-size: var(--fs-caption); line-height: var(--lh-caption); font-variant-numeric: tabular-nums; }
.pf-attach b { display: block; overflow: hidden; font-size: var(--fs-small); font-weight: var(--fw-title); line-height: var(--lh-small); text-overflow: ellipsis; white-space: nowrap; }
.pf-attach > .icon { width: 18px; height: 18px; color: var(--quiet); transition: transform 200ms var(--ease-out); }
.pf-attach:hover > .icon { transform: translateX(3px); color: var(--ink); }

/* albums */
.pf-albums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
.pf-album { display: grid; align-content: start; gap: 12px; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.pf-album__cover { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r); background: var(--bg-soft); }
.pf-album__cover img { width: 100%; height: 100%; object-fit: cover; }
.pf-album__cover video { width: 100%; height: 100%; object-fit: cover; }
.pf-album__cover { transition: box-shadow 160ms; }
.pf-album:hover .pf-album__cover { box-shadow: var(--shadow-lg); }
.pf-album__title { display: -webkit-box; overflow: hidden; font: var(--fw-title) var(--fs-body)/var(--lh-h4) var(--font-display); letter-spacing: var(--ls-heading); -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pf-album:hover .pf-album__title { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 3px; }
.pf-album-view__head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin-bottom: 24px; }
.pf-album-view__title { flex: 1 1 280px; min-width: 0; }
.pf-album-view__title p { margin-top: 4px; }
.pf-photos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pf-tile { position: relative; display: block; aspect-ratio: 1; padding: 0; overflow: hidden; border: 0; border-radius: 12px; background: var(--bg-soft); cursor: zoom-in; }
.pf-tile img { width: 100%; height: 100%; object-fit: cover; }
.pf-tile:hover, .pf-shot:hover, .pf-post__cover:hover, .pf-feature__media:hover { outline: 3px solid var(--orange); outline-offset: -3px; }

/* posts */
.pf-post { gap: 16px; padding: 24px; }
.pf-post .post__head { flex-wrap: nowrap; }
.pf-post .post__head .pill { margin-left: auto; }
.pf-post .post__who { min-width: 0; }
.pf-post .post__who > span { display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; }
.pf-post .post__title a:hover { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 3px; }
.pf-place { display: inline-flex; align-items: center; gap: 4px; }
.pf-place .icon { width: 14px; height: 14px; }
.pf-menu .menu__list { min-width: 240px; }
.pf-menu > summary { margin-right: -8px; }
.pf-post__cover { position: relative; display: block; aspect-ratio: 16 / 9; width: 100%; padding: 0; overflow: hidden; border: 0; border-radius: 14px; background: var(--bg-soft); cursor: zoom-in; }
.pf-post__cover img { width: 100%; height: 100%; object-fit: cover; }
.pf-clamp { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.pf-clamp.is-open { display: block; }
.pf-more-text { justify-self: start; margin-top: -12px; padding: 0; border: 0; background: none; color: var(--link); font: var(--fw-button) var(--fs-small)/var(--lh-button) var(--font-text); cursor: pointer; }
.pf-shots { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: 1fr 1fr; gap: 8px; height: 440px; overflow: hidden; border-radius: 14px; }
.pf-shot { position: relative; display: block; padding: 0; overflow: hidden; border: 0; background: var(--bg-soft); cursor: zoom-in; }
.pf-shot:first-child { grid-row: span 2; }
.pf-shot:nth-child(n+4) { display: none; }
.pf-shot img { width: 100%; height: 100%; object-fit: cover; }
.pf-shot__more { position: absolute; inset: 0; display: grid; place-items: center; background: var(--scrim-50); color: var(--on-accent); font: var(--fw-heading) var(--fs-h3)/var(--lh-display) var(--font-display); font-variant-numeric: tabular-nums; }
.post__act[aria-pressed="true"] { color: var(--cta); }
.post__act[aria-pressed="true"] .icon { fill: currentColor; }
.pf-post .comments { gap: 12px; }
.pf-nocomments { color: var(--quiet); font-size: var(--fs-body); line-height: var(--lh-small); }
.pf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-chips .chip span { color: var(--quiet); font-variant-numeric: tabular-nums; }
.pf-chips .chip[aria-pressed="true"] span { color: inherit; opacity: 0.72; }
.pf-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.pf-filters__sep { width: 1px; height: 24px; background: var(--line-2); }
.pf-compose { display: grid; gap: 12px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }
.pf-compose .compose__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--quiet); }
.pf-compose .compose__tools { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-compose .compose__tools button { min-height: 32px; padding: 0 12px; font-size: var(--fs-caption); cursor: pointer; }
.pf-compose .compose__send { margin-left: auto; }
.pf-compose__input { flex: 1; min-width: 0; min-height: 40px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: var(--fs-body); }
.pf-compose__input::placeholder { color: var(--quiet); }
.pf-compose:focus-within { border-color: var(--focus); box-shadow: 0 0 0 1px var(--focus); }

/* routes */
.pf-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
.pf-toolbar[data-profile-post-filters] { margin-bottom: 24px; }
.pf-toolbar .catalog-select { position: relative; width: 190px; max-width: 100%; }
.pf-toolbar .catalog-select__native { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.pf-toolbar .catalog-select__trigger { width: 100%; min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px; border: 1px solid var(--field-edge, #d4d9d4); border-radius: 999px; background: var(--surface, #fff); color: var(--ink, #151d27); font: inherit; font-size: var(--fs-small, 14px); font-weight: var(--fw-ui, 600); text-align: left; cursor: pointer; }
.pf-toolbar .catalog-select__trigger .icon { width: 16px; height: 16px; flex: none; color: var(--quiet, #65717d); }
.pf-toolbar .catalog-select__menu { position: absolute; z-index: 50; top: calc(100% + 6px); right: 0; min-width: 100%; padding: 6px; border: 1px solid var(--line, #e2e5e1); border-radius: 16px; background: var(--surface, #fff); box-shadow: var(--shadow-lg, 0 12px 32px rgba(18, 25, 33, .14)); }
.pf-toolbar .catalog-select__menu[hidden] { display: none; }
.pf-toolbar .catalog-select__option { display: block; width: 100%; min-height: 40px; padding: 8px 12px; border: 0; border-radius: 10px; background: transparent; color: var(--ink, #151d27); font: inherit; text-align: left; white-space: nowrap; cursor: pointer; }
.pf-toolbar .catalog-select__option:hover, .pf-toolbar .catalog-select__option:focus-visible { background: var(--bg-soft, #f2f3f0); }
.pf-toolbar .catalog-select__option[aria-selected="true"] { color: var(--cta, #c43c00); font-weight: var(--fw-button, 600); }
.select--sm { width: auto; min-height: 38px; padding-left: 16px; border-radius: 999px; font-size: var(--fs-small); font-weight: var(--fw-ui); }
.pf-routes-seg { max-width: 100%; }
.pf-route { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 28px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); scroll-margin-top: 140px; transition: border-color 300ms, box-shadow 300ms; }
.pf-route.is-flash { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-a-18); }
.pf-route__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r); background: var(--bg-soft); }
.pf-route__media img { width: 100%; height: 100%; object-fit: cover; }
.pf-route__latest, .route__media .pf-route__latest { position: absolute; top: 12px; left: 12px; background: var(--on-accent); color: var(--ink-fixed); box-shadow: 0 2px 8px var(--black-15); }
.pf-route__body { display: grid; align-content: center; gap: 16px; min-width: 0; }
.pf-route__where { display: inline-flex; align-items: center; gap: 8px; color: var(--quiet); font-size: var(--fs-small); }
.pf-route__where .icon { width: 16px; height: 16px; }
.pf-route__title { font-size: var(--fs-h4); font-weight: var(--fw-title); line-height: var(--lh-h4); }
.pf-route__title a:hover { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 3px; }
.pf-spec { display: flex; flex-wrap: wrap; gap: 8px 24px; font-variant-numeric: tabular-nums; }
.pf-spec li { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: var(--fs-body); font-weight: var(--fw-title); line-height: var(--lh-small); }
.pf-spec .icon { width: 18px; height: 18px; color: var(--quiet); }
.pf-route__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.pf-route__foot .menu__list { left: 0; right: auto; }
.pf-dl .menu__list { grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 220px; }
.pf-dl summary .icon, .pf-route__foot .btn .icon { width: 18px; height: 18px; }
.pf-sq { width: 44px; padding: 0; }
.pf-route__foot .pf-sq { width: 36px; }
.pf-toggle [data-on], .pf-toggle[aria-pressed="true"] [data-off] { display: none; }
.pf-toggle[aria-pressed="true"] [data-on] { display: inline; }
.pf-toggle[aria-pressed="true"] { border-color: var(--cta); color: var(--cta); }
.pf-toggle[aria-pressed="true"] .icon { fill: currentColor; }
.pf-routes2 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
.pf-routes2 .route { gap: 12px; }
.pf-routes2 .route__media { aspect-ratio: 16 / 9; }
.pf-check { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 16px; align-items: center; }
.pf-checks > li { padding-block: 16px; }
.pf-check > img { width: 104px; height: 78px; border-radius: 12px; object-fit: cover; }
.pf-check b { display: block; font: var(--fw-title) var(--fs-body)/var(--lh-h4) var(--font-display); letter-spacing: var(--ls-heading); }
.pf-check .row { gap: 8px 12px; margin-top: 8px; color: var(--quiet); font-size: var(--fs-caption); }
.pf-empty-lg { padding: 56px 24px; }
.pf .empty b { color: var(--ink); font: var(--fw-title) var(--fs-h4)/var(--lh-h4) var(--font-display); }

/* people & places on the overview */
.pf-people-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.pf-person { display: grid; justify-items: center; align-content: start; gap: 8px; padding: 0; text-align: center; }
.pf-person .avatar { width: 64px; height: 64px; font: var(--fw-heading) var(--fs-h4)/var(--lh-display) var(--font-display); }
.pf-person b { font: var(--fw-title) var(--fs-body)/var(--lh-h4) var(--font-display); }
.pf-person small { margin-top: -8px; color: var(--quiet); font-size: var(--fs-caption); line-height: var(--lh-caption); }
.pf-places { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.pf-place-card { display: grid; align-content: start; gap: 8px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.pf-place-card .icon { width: 22px; height: 22px; color: var(--cta); }
.pf-place-card b { font: var(--fw-title) var(--fs-h4)/var(--lh-h4) var(--font-display); letter-spacing: var(--ls-heading); }
.pf-place-card span { color: var(--quiet); font-size: var(--fs-small); line-height: var(--lh-small); }
.pf-place-card .tag { justify-self: start; margin-top: 4px; color: var(--link); font-size: var(--fs-caption); }

/* awards */
.pf-earned { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px 16px; }
.pf-earned figure { display: grid; justify-items: center; gap: 12px; text-align: center; font-size: var(--fs-small); line-height: var(--lh-small); }
.pf-earned img { width: 96px; height: 96px; background-color: transparent !important; }
.pf-earned figcaption { color: var(--ink-2); font-weight: var(--fw-title); }
.pf-cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 32px; }
.pf-cat { display: grid; align-content: start; gap: 12px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: border-color 160ms, box-shadow 160ms; }
.pf-cat:hover { border-color: var(--line-2); }
.pf-cat[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pf-cat__top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.pf-cat__top b { font: var(--fw-title) var(--fs-h4)/var(--lh-h4) var(--font-display); letter-spacing: var(--ls-heading); }
.pf-cat__top span { white-space: nowrap; color: var(--ink-2); font-size: var(--fs-small); font-weight: var(--fw-title); font-variant-numeric: tabular-nums; }
.pf-cat .bar { height: 6px; }
.pf-filterline { margin-bottom: 24px; }
.pf-badges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pf-badge { position: relative; display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 16px; align-items: center; padding: 20px; border: 0; background: transparent; box-shadow: none; }
.pf-badge > img { width: 80px; height: 80px; }
.pf-badge.is-progress > img { filter: grayscale(0.85); opacity: 0.72; }
.pf-badge.is-locked > img { filter: grayscale(1); opacity: 0.42; }
.pf-badge__body { display: grid; gap: 8px; min-width: 0; }
.pf-badge__meta { display: flex; }
.pf-rarity { padding: 1px 8px; border-radius: 999px; background: var(--bg-soft); color: var(--ink-2); font-size: var(--fs-caption-tight); font-weight: var(--fw-title); line-height: var(--lh-caption); }
.pf-rarity--uncommon { background: var(--ok-soft); color: var(--ok); }
.pf-rarity--rare { background: var(--pf-rare-soft); color: var(--pf-rare); }
.pf-rarity--epic { background: var(--pf-epic-soft); color: var(--pf-epic); }
.pf-rarity--legendary { background: var(--pf-legend-soft); color: var(--pf-legend); }
.pf-badge__title { padding-right: 64px; font-size: var(--fs-h4); font-weight: var(--fw-title); line-height: var(--lh-h4); }
.pf-badge__got { display: inline-flex; align-items: center; gap: 4px; color: var(--ok); font-size: var(--fs-caption); font-weight: var(--fw-title); }
.pf-badge__got .icon { width: 16px; height: 16px; stroke-width: 2.6; }
.pf-badge__prog { display: grid; gap: 8px; }
.pf-badge__prog .bar { height: 6px; }
.pf-badge.is-locked .bar > i { background: var(--line-2); }
.pf-badge__num { color: var(--quiet); font-size: var(--fs-caption); line-height: var(--lh-caption); font-variant-numeric: tabular-nums; }
.pf-badge__xp { position: absolute; top: 20px; right: 20px; color: var(--ink-2); font-size: var(--fs-caption-tight); font-weight: var(--fw-button); font-variant-numeric: tabular-nums; }
.pf-badge.is-earned .pf-badge__xp { color: var(--ok); }
.pf-contrib { display: grid; max-width: 560px; gap: 24px; }
.pf-contrib .card { display: grid; align-content: start; gap: 12px; padding: 24px; }
.pf-kv { gap: 12px 16px; }

/* clubs */
.pf-clubs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.pf-club { display: grid; grid-template-rows: auto 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.pf-club__cover { aspect-ratio: 16 / 7; overflow: hidden; background: var(--bg-soft); }
.pf-club__cover img { width: 100%; height: 100%; object-fit: cover; }
.pf-club__body { display: grid; align-content: start; gap: 16px; padding: 0 24px 24px; }
.pf-club__logo { width: 72px; height: 72px; margin-top: -36px; overflow: hidden; border: 3px solid var(--surface); border-radius: 16px; background: var(--on-accent); box-shadow: var(--shadow); }
.pf-club__logo img { width: 100%; height: 100%; object-fit: cover; }
.pf-club__name { font-size: var(--fs-h4); font-weight: var(--fw-title); line-height: var(--lh-h4); }
.pf-club__name a:hover { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 3px; }
.pf-club__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.pf-club__people { display: flex; align-items: center; gap: 12px; color: var(--quiet); font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
.pf-join[aria-pressed="false"] { border-color: var(--cta); background: var(--cta); color: var(--on-accent); }
.pf-join[aria-pressed="false"]:hover { border-color: var(--cta-hover); background: var(--cta-hover); }
.pf-join[aria-pressed="true"] { border-color: var(--line-2); color: var(--ink); }
.pf-join[aria-pressed="true"]:hover { border-color: var(--ink); }
.pf-join .icon { width: 16px; height: 16px; }
.pf-join[aria-pressed] .icon { fill: none; }
.pf-join [data-on] { align-items: center; gap: 8px; }
.pf-join[aria-pressed="true"] [data-on] { display: inline-flex; }

/* people */
.pf-search { display: flex; flex: 1 1 240px; align-items: center; gap: 8px; max-width: 300px; min-height: 42px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--quiet); }
.pf-search:focus-within { border-color: var(--orange); }
.pf-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: var(--fs-body); }
.pf-people-list { margin-top: 16px; }
.pf-people-list > * { padding-block: 16px; }
.pf-people-list > *:first-child { padding-top: 8px; }
.pf-people-list .person { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 16px; }
.pf-people-list .avatar { width: 52px; height: 52px; font-size: var(--fs-small); }
.pf-people-list .person__name { font: var(--fw-title) var(--fs-body)/var(--lh-h4) var(--font-display); }
.pf-people-list .person__meta { margin-top: 4px; }
.pf-mutual { display: inline-flex; margin-top: 8px; }

/* dialogs */
.pf-dialog { width: calc(100% - 32px); max-width: 560px; max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); }
.pf-dialog::backdrop { background: var(--scrim-50); }
.pf-form { display: grid; gap: 16px; padding: 24px; }
.pf-form textarea.input { min-height: 96px; padding: 12px 16px; resize: vertical; font: var(--fw-text) var(--fs-body)/var(--lh-small) var(--font-text); }
.pf-form__end { justify-content: flex-end; }
.pf-form__top { flex-wrap: nowrap; }
.pf-form__top h2 { min-width: 0; }
.pf-lb { width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: transparent; color: var(--on-accent); }
.pf-lb::backdrop { background: var(--pf-viewer); }
.pf-lb[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.pf-lb__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px; font-size: var(--fs-small); font-weight: var(--fw-title); font-variant-numeric: tabular-nums; }
.pf-lb__stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 76px; }
.pf-lb__stage img { max-width: 100%; max-height: 100%; border-radius: 6px; object-fit: contain; }
.pf-lb__btn { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: var(--pf-glass-14); color: var(--on-accent); cursor: pointer; }
.pf-lb__btn:hover { background: var(--pf-glass-26); }
.pf-lb__nav { position: absolute; top: 50%; transform: translateY(-50%); background: var(--glass-94); color: var(--ink-fixed); }
.pf-lb__nav:hover { background: var(--on-accent); }
.pf-lb__nav--prev { left: 16px; }
.pf-lb__nav--next { right: 16px; }
.pf-lb__cap { padding: 12px 16px 20px; color: var(--glass-86); font-size: var(--fs-small); line-height: var(--lh-small); text-align: center; }
.pf-toast { position: fixed; left: 50%; bottom: 24px; z-index: 95; max-width: min(calc(100% - 32px), 480px); padding: 12px 16px; border-radius: 14px; background: var(--ink); color: var(--bg); font-size: var(--fs-small); line-height: var(--lh-small); box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transform: translate(-50%, 16px); transition: opacity 200ms, transform 240ms var(--ease-out); }
.pf-toast.is-on { opacity: 1; transform: translate(-50%, 0); }


/* two columns: the stream on the left, a sticky summary on the right */
.pf[data-user="NEKKET"] [data-u="berezin97"], .pf[data-user="berezin97"] [data-u="NEKKET"] { display: none !important; }
.pf-ov { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.pf-ov__main { min-width: 0; }
.pf-side { align-self: start; }
@media (min-height: 1000px) { .pf-side { position: sticky; top: 140px; } }
.pf-ranks { display: grid; gap: 12px; }
.pf-ranks li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; font-size: var(--fs-small); line-height: var(--lh-small); }
.pf-side__box { display: grid; gap: 24px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.pf-side section + section { padding-top: 24px; border-top: 1px solid var(--line); }
.pf-h4 { margin-bottom: 12px; font-size: var(--fs-h4); font-weight: var(--fw-title); line-height: var(--lh-h4); letter-spacing: var(--ls-heading); }
.pf-side .pf-ranks { margin-top: 0; }
.pf-side__link { display: inline-flex; align-items: center; min-height: 32px; margin-top: 12px; }
.pf-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-acts .tag { gap: 8px; }
.pf-acts .icon { width: 16px; height: 16px; }
.pf-head__activities { margin: 6px 0 10px; padding: 0; list-style: none; }
.pf-head__regional-ranks { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 10px; padding: 0; list-style: none; }
.pf-head__regional-rank { max-width: 100%; white-space: normal; line-height: 1.4; text-decoration: none; overflow-wrap: anywhere; }
.pf-head__regional-rank:hover { color: var(--link); }
.pf-own { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 48px; }
.pf-months { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; align-items: end; height: 152px; }
.pf-months li { position: relative; display: grid; grid-template-rows: 1fr auto; justify-items: center; gap: 8px; height: 100%; color: var(--quiet); font-size: var(--fs-caption); }
.pf-months i { align-self: end; width: 100%; max-width: 40px; height: calc(var(--n) * 24px + 4px); border-radius: 8px 8px 0 0; background: var(--line-2); }
.pf-months li[style*="--n:0"] i { height: 4px; }
.pf-months li:not([style*="--n:0"]) i { background: var(--orange); }
.pf-facts { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--quiet); font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
.pf-routecard .route__where { color: var(--quiet); font-size: var(--fs-small); }
.pf-people-list .btn-follow { min-height: 36px; }
@media (max-width: 1180px) { .pf-ov { grid-template-columns: minmax(0, 1fr); gap: var(--pf-gap); } .pf-side { position: static; } }
@media (prefers-reduced-motion: reduce) {
    .pf *, .pf *::before { transition: none !important; }
}
.pf-albums--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pf-albums--4 .pf-album__title { font-size: var(--fs-small); }
@media (min-width: 1700px) {
    .pf-albums { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
    .pf-badges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pf-earned { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .pf-cats, .pf-people-row, .pf-places { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
    .pf-grid { grid-template-columns: minmax(0, 1fr); }
    .pf-albums, .pf-albums--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pf-route { grid-template-columns: 260px minmax(0, 1fr); gap: 24px; }
    .pf-photos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    :root { --pf-gap: 56px; }
    .pf-hide-sm { display: none; }
    .pf-viewbar .seg { width: 100%; }
    .pf-viewbar .seg button { flex: 1; justify-content: center; }
    .pf-head { margin-inline: -8px; border-radius: 20px; }
    .pf-idrow { margin-top: -68px; }
    .pf-avatar { width: 136px; height: 136px; border-width: 4px; }
    .pf-actions { flex-wrap: nowrap; }
    .pf-actions .btn { min-height: 44px; padding: 0 16px; }
    .pf-actions .pf-sq { width: 44px; padding: 0; }
    /* every control is at least 44 × 44 on a phone */
    .pf .btn--sm, .pf .btn-follow, .pf .chip, .pf .seg button, .pf-compose .compose__tools .chip, .select--sm, .pf-compose__input { min-height: 44px; }
    .pf-more, .pf-rank, .pf-fill, .pf-more-text, .pf-side__link { min-height: 44px; }
    .pf-months { gap: 4px; }
    .pf-more { padding: 0 8px; margin-right: -8px; }
    .pf-iconbtn, .pf-route__foot .pf-sq { width: 44px; height: 44px; }
    .pf-post .post__act { min-width: 44px; min-height: 44px; justify-content: center; }
    .pf .menu__list a, .pf .menu__list button { min-height: 44px; }
    .pf-search { min-height: 44px; }
    .pf-search input { min-height: 44px; }
    .pf-route__title a, .pf-club__name a, .pf-post .post__title a, .pf-feature__card h3 a { display: inline-block; padding-block: 12px; margin-block: -12px; }
    .pf-counts a { min-height: 44px; }
    .pf-counts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-left: 0; }
    .pf-counts__km { display: none; }
    .pf-counts a, .pf-counts li > span { flex-direction: column; align-items: center; gap: 4px; padding: 8px 0; font-size: var(--fs-caption-tight); }
    .pf-tabbar { top: 60px; margin: 20px calc(var(--gutter) * -1) 32px; padding: 0 8px; }
    .pf-anchor { scroll-margin-top: 60px; }
    .pf-feature { border-radius: var(--r); }
    .pf-feature__media { aspect-ratio: 4 / 3; }
    .pf-feature__card { left: 12px; right: 12px; bottom: 12px; max-width: none; padding: 16px; }
    .pf-albums { gap: 24px 16px; }
    .pf-album__title { font-size: var(--fs-small); }
    .pf-photos { gap: 4px; }
    .pf-tile { border-radius: 8px; }
    .pf-stream { gap: 28px; }
    .pf-post { padding: 16px; }
    .pf-shots { height: 280px; }
    .pf-filters__sep { display: none; }
    .pf-routes2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
    .pf-route { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 16px; }
    .pf-route__media { aspect-ratio: 16 / 10; }
    .pf-routes-seg { overflow-x: auto; scrollbar-width: none; }
    .pf-routes-seg button { flex: none; padding: 0 12px; }
    .pf-routes-seg .count-badge { display: none; }
    .pf-route__foot .menu__list { left: auto; right: 0; }
    .pf-check { grid-template-columns: 80px minmax(0, 1fr); gap: 16px; }
    .pf-check > img { width: 80px; height: 64px; }
    .pf-people-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .pf-person { padding: 16px 12px; }
    .pf-places { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .pf-place-card { padding: 16px; }
    .pf-earned { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 12px; }
    .pf-earned img { width: 72px; height: 72px; }
    .pf-badges, .pf-clubs, .pf-contrib { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .pf-cats { gap: 12px; }
    .pf-cat { padding: 16px; }
    .pf-badge { grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 16px; }
    .pf-badge > img { width: 64px; height: 64px; }
    .pf-badge__xp { top: 16px; right: 16px; }
    .pf-search { max-width: none; }
    .pf-people-list .person { grid-template-columns: 44px minmax(0, 1fr); }
    .pf-people-list .avatar { width: 44px; height: 44px; }
    .pf-people-list .person > :last-child { grid-column: 2; justify-self: start; }
    .pf-club__body { padding: 0 16px 16px; }
    .pf-lb__stage { padding: 0 8px; }
    .pf-lb__nav { top: auto; bottom: -64px; transform: none; }
    .pf-lb__nav--prev { left: calc(50% - 60px); }
    .pf-lb__nav--next { right: calc(50% - 60px); }
    .pf-lb__cap { padding-top: 76px; }
}



/* QA pass */
.pf-rank { gap: 8px 24px; min-height: 44px; color: var(--copy); font-size: var(--fs-small); }
.pf-rank span + span { color: var(--quiet); }
.pf-fill { align-self: flex-start; margin-top: 8px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px; }
.pf .count, .more .count, .btn .count { display: inline-grid; place-items: center; min-width: 24px; padding: 0 8px; border-radius: 999px; background: var(--bg-soft); color: var(--quiet); font: var(--fw-ui) var(--fs-caption)/var(--lh-caption) var(--font-text); font-variant-numeric: tabular-nums; }
.pf-album-view__title .count { margin-top: 8px; }
.pf-album__cover, .pf-tile, .pf-shot, .pf-post__cover, .pf-feature__media, .route__media, .pf-route__media { position: relative; }
.pf-album__cover::after, .pf-tile::after, .pf-shot::after, .pf-post__cover::after, .pf-feature__media::after, .route__media::after, .pf-route__media::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--shade-12); pointer-events: none; }
.pf-people-list .person__name, .pf-people-list .person__meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-people-list .person > span:nth-child(2) { min-width: 0; }
@media (max-width: 767px) {
    .pf-fill { align-self: flex-start; }
    .pf-people-list .person { grid-template-columns: 44px minmax(0, 1fr) 44px; }
    .pf-people-list .person > :last-child { grid-column: auto; justify-self: end; }
    .pf-albums, .pf-albums--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 400px) { .pf-routes2 { grid-template-columns: minmax(0, 1fr); } }

@media (max-width: 420px) {
    .pf-idrow { flex-wrap: wrap; }
    .pf-actions { margin-left: auto; }
}
