.pe-body { min-height: 100vh; background: var(--bg); }
.pe-topbar { position: sticky; top: 0; z-index: 20; background: var(--bg-3); border-bottom: 1px solid var(--line); }
.pe-topbar__inner { width: min(1180px, calc(100% - 40px)); min-height: 72px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.pe-topbar .public-header { display: flex; align-items: center; }
.pe-auth { display: flex; align-items: center; gap: 10px; }
.pe-button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 10px 19px; font-size: 13.5px; font-weight: 600; border: 1px solid var(--line-2); border-radius: 999px; }
.pe-button--quiet { color: var(--text); background: var(--surface); }
.pe-button--quiet:hover { color: var(--text); border-color: var(--accent); }
.pe-button--primary { color: #fff; background: var(--accent); border-color: transparent; }
.pe-button--primary:hover { color: #fff; background: var(--accent-hover); }
.pe-main { padding: 42px 20px 70px; background: radial-gradient(850px 380px at 50% 0%, oklch(0.22 0.035 20), transparent 72%); }
.pe-explore { width: min(1120px, 100%); margin: 0 auto; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 20px; box-shadow: 0 30px 80px oklch(0.07 0.01 20 / 0.36); }
.pe-hero { padding: 62px 48px 46px; text-align: center; background: radial-gradient(620px 250px at 50% 0%, oklch(0.4 0.1 22 / 0.35), transparent 75%), var(--surface); border-bottom: 1px solid var(--line); }
.pe-eyebrow { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: oklch(0.77 0.1 22); }
.pe-hero h1 { max-width: 760px; margin: 14px auto 0; font-size: clamp(31px, 5vw, 48px); line-height: 1.12; letter-spacing: -0.035em; }
.pe-hero h1 span { color: var(--accent); }
.pe-hero > p { margin: 14px auto 0; font-size: 15px; color: var(--text-2); }
.pe-search { width: min(690px, 100%); min-height: 56px; margin: 30px auto 0; display: flex; align-items: center; gap: 12px; padding: 6px 7px 6px 18px; background: var(--bg-3); border: 1px solid var(--line-2); border-radius: 999px; }
.pe-search:focus-within { border-color: var(--accent); }
.pe-search > span { color: var(--text-3); }
.pe-search input { min-width: 0; flex: 1; padding: 10px 0; font: inherit; font-size: 14px; color: var(--text); background: transparent; border: 0; }
.pe-search input:focus { outline: 0; }
.pe-search input::placeholder { color: var(--text-3); }
.pe-results-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 32px 36px 18px; }
.pe-results-head h2 { margin: 5px 0 0; font-size: 22px; }
.pe-results-head > span { font-family: var(--mono); font-size: 10.5px; color: var(--text-3); }
.pe-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 0 36px 42px; }
.pe-card { min-width: 0; padding: 18px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; transition: border-color .16s ease, transform .16s ease; }
.pe-card:hover { border-color: oklch(0.44 0.07 22); transform: translateY(-2px); }
.pe-card__identity { min-width: 0; display: flex; align-items: center; gap: 13px; color: var(--text); }
.pe-card__identity:hover { color: var(--text); }
.pe-card__identity img, .pe-card__initial { width: 54px; height: 54px; flex: none; display: flex; align-items: center; justify-content: center; object-fit: cover; font-size: 20px; font-weight: 600; color: var(--text); background: var(--surface-3); border: 1px solid var(--line-2); border-radius: 50%; }
.pe-card__copy { min-width: 0; }
.pe-card__copy strong, .pe-card__copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pe-card__copy strong { font-size: 14.5px; }
.pe-card__copy span { margin-top: 3px; font-family: var(--mono); font-size: 10.5px; color: var(--text-3); }
.pe-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.pe-card__foot > span { overflow: hidden; font-size: 12px; color: var(--text-3); text-overflow: ellipsis; white-space: nowrap; }
.pe-card__foot a { flex: none; font-size: 12px; font-weight: 600; }
.pe-empty { margin: 0 36px 42px; padding: 52px 24px; text-align: center; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; }
.pe-empty h2 { margin: 0; font-size: 19px; }
.pe-empty p { margin: 8px 0 20px; font-size: 13px; color: var(--text-3); }
.pe-join { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 34px; margin: 0 36px 40px; padding: 26px 28px; background: radial-gradient(520px 190px at 0 0, oklch(0.4 0.12 22 / 0.42), transparent 72%), var(--surface); border: 1px solid oklch(0.34 0.05 22); border-radius: 16px; }
.pe-join h2 { margin: 9px 0 0; font-size: 20px; }
.pe-join p { max-width: 620px; margin: 7px 0 0; font-size: 13px; line-height: 1.6; color: var(--text-2); }
.pe-join > div:last-child { min-width: 230px; display: flex; flex-direction: column; gap: 10px; }
.pe-join > div:last-child > a:last-child { text-align: center; font-size: 12px; color: var(--text-3); }

@media (max-width: 860px) {
  .pe-hero { padding: 48px 28px 38px; }
  .pe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pe-join { grid-template-columns: 1fr; }
  .pe-join > div:last-child { min-width: 0; }
}

@media (max-width: 560px) {
  .pe-topbar__inner { width: calc(100% - 24px); min-height: 64px; }
  .pe-topbar .logo__image { width: 142px; }
  .pe-auth .pe-button--quiet { display: none; }
  .pe-auth .pe-button { min-height: 38px; padding: 8px 13px; font-size: 12px; }
  .pe-main { padding: 14px 10px 42px; }
  .pe-explore { border-radius: 15px; }
  .pe-hero { padding: 38px 16px 30px; }
  .pe-search { align-items: stretch; flex-wrap: wrap; padding: 9px 11px; border-radius: 16px; }
  .pe-search > span { display: none; }
  .pe-search input { width: 100%; flex-basis: 100%; padding: 9px 4px; }
  .pe-search .pe-button { width: 100%; }
  .pe-results-head { align-items: flex-start; padding: 26px 16px 16px; }
  .pe-grid { grid-template-columns: 1fr; padding: 0 16px 32px; }
  .pe-empty, .pe-join { margin-left: 16px; margin-right: 16px; }
  .pe-join { padding: 22px 18px; }
}

/* 18+ locked (blurred) avatar for guests */
.pe-card__identity .lockav { width: 54px; height: 54px; flex: none; position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-2); border-radius: 50%; }
.pe-card__identity .lockav__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(2px); transform: scale(1.14); }
.pe-card__identity .lockav__badge { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #fff; background: rgba(12,6,9,.34); }
.pe-card__identity .lockav__badge svg { width: 42%; height: 42%; filter: drop-shadow(0 1px 2px rgba(0,0,0,.55)); }

.post-entity { color:var(--accent); font-weight:600; text-decoration:none; overflow-wrap:anywhere; }
.post-entity:hover,.post-entity:focus-visible { text-decoration:underline; text-underline-offset:3px; }
.pe-content-results { border-top:1px solid var(--line); }
.pe-post-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; padding:0 34px 36px; }
.pe-post { min-width:0; overflow:hidden; border:1px solid var(--line); border-radius:18px; background:var(--surface); }
.pe-post > header { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:16px 18px; }
.pe-post > header a { display:grid; color:var(--text); text-decoration:none; }
.pe-post > header span,.pe-post > header time { color:var(--muted); font-size:12px; }
.pe-post figure { margin:0; background:#090709; }
.pe-post figure img,.pe-post figure video { display:block; width:100%; max-height:520px; object-fit:cover; }
.pe-post > p { margin:0; padding:17px 18px 10px; color:var(--text); line-height:1.65; }
.pe-post__profile { display:inline-block; margin:0 18px 18px; color:var(--accent); font-weight:600; text-decoration:none; }
@media (max-width:760px){.pe-post-grid{grid-template-columns:1fr;padding:0 16px 28px;}}
