/* Public post pages share the application palette and retain readable media. */
body.bex-post-detail-page {
  margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  background: var(--bex-bg, #f5f7fa); color: var(--bex-text, #18232e);
  font: 15px/1.6 var(--bex-font, Inter, system-ui, sans-serif);
  -webkit-font-smoothing: antialiased;
}
.bex-post-detail-page *, .bex-post-detail-page *::before, .bex-post-detail-page *::after { box-sizing: border-box; }
.bex-post-detail-page :focus-visible { outline: 3px solid var(--bex-brand); outline-offset: 4px; }
.bex-post-detail-page [hidden] { display: none !important; }
.post-skip { position: fixed; top: -80px; left: 16px; z-index: 10; padding: 12px 20px; background: var(--bex-surface); color: var(--bex-brand); border-radius: 10px; }
.post-skip:focus { top: 12px; }
.post-topbar { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 16px; min-height: 76px; padding: 12px max(20px, env(safe-area-inset-right)) 12px max(20px, env(safe-area-inset-left)); background: var(--bex-surface); border-bottom: 1px solid var(--bex-border); }
.post-brand { display: inline-flex; align-items: center; justify-self: center; gap: 9px; color: var(--bex-text); text-decoration: none; font-size: 22px; font-weight: 800; letter-spacing: -.8px; }
.post-brand img { display: block; border-radius: 10px; }
.post-icon-button { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--bex-border); border-radius: 14px; color: var(--bex-text); background: var(--bex-surface); cursor: pointer; }
.post-icon-button:hover { color: var(--bex-brand); background: var(--bex-surface-muted); }
.post-page-content { flex: 1; width: min(1120px, 100%); padding: 32px 28px 48px; margin-inline: auto; }
.post-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; color: var(--bex-muted); font-size: 13px; }
.post-breadcrumb a { color: var(--bex-brand); text-decoration: none; }
.post-detail-card { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, 1fr); overflow: hidden; border: 1px solid var(--bex-border); border-radius: 24px; background: var(--bex-surface); box-shadow: var(--bex-shadow); }
.post-detail-media { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 420px; background: #090d12; }
.post-detail-media :is(img, video) { display: block; width: 100%; max-width: 100%; max-height: min(78vh, 760px); object-fit: contain; }
.post-detail-media.is-text { background: linear-gradient(145deg, #086951, #113d54); }
.post-text-canvas { margin: 0; padding: clamp(28px, 6vw, 60px); font-size: clamp(24px, 3vw, 38px); line-height: 1.5; font-weight: 650; text-align: center; color: #fff; overflow-wrap: anywhere; }
.post-detail-info { display: flex; flex-direction: column; min-width: 0; padding: 26px; }
.post-author-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 22px; border-bottom: 1px solid var(--bex-border); }
.post-author { display: flex; min-width: 0; align-items: center; gap: 12px; color: var(--bex-text); text-decoration: none; }
.post-author > img { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--bex-surface-muted); }
.post-author-copy { display: flex; flex-direction: column; min-width: 0; }
.post-author-copy strong { font-weight: 650; overflow-wrap: anywhere; }
.post-author-copy > span { font-size: 12px; color: var(--bex-muted); overflow-wrap: anywhere; }
.post-verified { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; margin-inline-start: 5px; border-radius: 50%; background: var(--bex-accent-blue, #1877f2); color: #fff; font-size: 11px; }
.post-profile-link { color: var(--bex-brand); font-weight: 600; font-size: 13px; text-decoration: none; flex-shrink: 0; }
.post-caption { flex: 1; padding-block: 26px; }
.post-eyebrow { color: var(--bex-brand); letter-spacing: .13em; font-size: 11px; font-weight: 700; }
.post-caption h1 { margin: 12px 0 16px; font-size: 18px; line-height: 1.65; font-weight: 550; white-space: pre-wrap; overflow-wrap: anywhere; }
.post-caption time { font-size: 12px; color: var(--bex-muted); }
.post-stats { display: flex; flex-wrap: wrap; gap: 16px; padding-block: 18px; border-top: 1px solid var(--bex-border); color: var(--bex-muted); font-size: 12px; }
.post-stats strong { color: var(--bex-text); font-size: 15px; font-weight: 700; }
.post-detail-actions { display: flex; flex-direction: column; gap: 10px; }
.post-primary-action, .post-share-action { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid transparent; border-radius: 13px; padding: 11px 16px; font: inherit; font-size: 13px; font-weight: 650; line-height: 1.5; cursor: pointer; text-align: center; text-decoration: none; }
.post-primary-action { color: var(--bex-on-brand); background: var(--bex-brand); }
.post-primary-action:hover { background: var(--bex-brand-hover); }
.post-share-action { background: var(--bex-surface-muted); color: var(--bex-text); border-color: var(--bex-border); }
.post-share-action:disabled { opacity: .65; cursor: progress; }
.post-action-status { margin: 10px 0 0; min-height: 1.5em; color: var(--bex-muted); font-size: 12px; }
.post-copy-fallback { margin-block: 8px; font-size: 12px; color: var(--bex-muted); }
.post-copy-fallback input { display: block; width: 100%; min-height: 44px; margin-top: 6px; padding: 10px; color: var(--bex-text); background: var(--bex-surface-muted); border: 1px solid var(--bex-border); border-radius: 10px; font-size: 16px; }
.post-signin-note { font-size: 12px; color: var(--bex-muted); margin: 14px 0 0; }
.post-signin-note a { color: var(--bex-brand); font-weight: 600; }
.post-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; width: min(1120px, 100%); padding: 20px 28px max(24px, env(safe-area-inset-bottom)); margin-inline: auto; color: var(--bex-muted); font-size: 12px; }
.post-footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
.post-footer a { color: inherit; text-decoration: none; }
.post-footer a:hover { color: var(--bex-brand); }
.post-not-found { width: min(480px, 100%); margin: 7vh auto; padding: 40px 28px; text-align: center; border: 1px solid var(--bex-border); border-radius: 24px; background: var(--bex-surface); }
.post-not-found-mark { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; background: var(--bex-danger-soft); color: var(--bex-danger); border-radius: 22px; font-size: 32px; font-weight: 700; }
.post-not-found h1 { font-size: 24px; letter-spacing: -.7px; line-height: 1.3; }
.post-not-found p { color: var(--bex-muted); font-size: 14px; margin-bottom: 24px; }
@media (min-width: 1440px) { .post-page-content { padding-top: 48px; } }
@media (max-width: 767px) {
  .post-topbar { min-height: 66px; padding-inline: max(14px, env(safe-area-inset-left)); }
  .post-page-content { padding: 18px 0 28px; }
  .post-breadcrumb { padding-inline: 18px; }
  .post-detail-card { grid-template-columns: minmax(0, 1fr); border-radius: 0; border-inline: 0; box-shadow: none; }
  .post-detail-media { min-height: 260px; }
  .post-detail-media :is(img, video) { max-height: 70dvh; }
  .post-detail-info { padding: 20px 18px; }
  .post-author-row { padding-bottom: 18px; }
  .post-caption { padding-block: 20px; }
  .post-caption h1 { font-size: 16px; }
  .post-detail-actions { flex-direction: row; flex-wrap: wrap; }
  .post-primary-action { flex: 1 1 180px; }
  .post-share-action { flex: 0 1 auto; }
  .post-footer { padding-inline: 18px; justify-content: center; text-align: center; }
  .post-not-found { width: calc(100% - 32px); }
}
