/* ═══════════════════════════════════════════════════════════════════════════════════════════════════════════════
   TRIBE MODERATION on the tribe page (PT-Tribe-Manage-Brief.md Part 2, mockup Plan/pt-tribe-manage-v3.html "Your posts", 4 Oct 2026).
   Your posts = a 480px panel on the right (a full-height sheet on a phone) over the old centred "Your content" modal markup
   (#pt-yc-overlay.pt-yp — scoped so tribe-discussion.css's modal rules lose). Plus the reason picker and join-question dialogs
   (.pt-tmr on the Noir dialog). Site tokens only. Square corners. §5a: every button declares background + colour on hover/focus/active.
   ═══════════════════════════════════════════════════════════════════════════════════════════════════════════════ */

.pt-yc-overlay.pt-yp { background: rgba(26, 26, 26, .45); align-items: stretch; justify-content: flex-end; padding: 0; }
.pt-yp .pt-yc-modal { width: 480px; max-width: 100%; max-height: none; height: 100%; margin: 0; border-radius: 0; box-shadow: none; border-left: 1px solid var(--pt-border-strong); background: var(--pt-surface-dim); }
.pt-yp .pt-yc-hdr { background: var(--pt-surface); border-bottom: 1px solid var(--pt-border); padding: 16px 20px; }
.pt-yp .pt-yc-hdr h3 { font-size: 17px; font-weight: 600; color: var(--pt-ink); text-transform: none; letter-spacing: 0; }
.pt-yp .pt-yc-hdr small { display: block; font-size: 12.5px; color: var(--pt-ink-2); }
.pt-yp .pt-yc-close, .pt-yp .pt-yc-close:hover, .pt-yp .pt-yc-close:focus, .pt-yp .pt-yc-close:active { background: transparent; color: var(--pt-ink-3); border-radius: 0; box-shadow: none; }
.pt-yp .pt-yc-close:hover, .pt-yp .pt-yc-close:focus-visible { background: var(--pt-fill-control); color: var(--pt-ink); }
.pt-yp .pt-yc-tabs { background: var(--pt-surface); border-bottom: 1px solid var(--pt-border-strong); padding: 0 20px; gap: 18px; }
.pt-yp .pt-yc-tab, .pt-yp .pt-yc-tab:hover, .pt-yp .pt-yc-tab:focus, .pt-yp .pt-yc-tab:active { padding: 11px 0 10px; font-size: 13.5px; font-weight: 400; color: var(--pt-ink-2); background: transparent; border-radius: 0; box-shadow: none; text-transform: none; letter-spacing: 0; }
.pt-yp .pt-yc-tab:hover, .pt-yp .pt-yc-tab:focus-visible { color: var(--pt-ink); background: transparent; }
.pt-yp .pt-yc-tab.is-active { color: var(--pt-ink); font-weight: 600; border-bottom-color: var(--pt-ink); }
.pt-yp .pt-yc-n { font: 11.5px var(--pt-mono); color: var(--pt-ink-3); }
.pt-yp .pt-yc-body { padding: 16px 20px; }

.pt-yp [hidden], .pt-tmr [hidden] { display: none !important; }
.pt-yp-row { background: var(--pt-surface); border: 1px solid var(--pt-border-strong); margin-bottom: 12px; }
.pt-yp-t { padding: 12px 14px; font-size: 14px; line-height: 1.5; color: var(--pt-ink); }
.pt-yp-m { display: flex; gap: 8px; align-items: center; padding: 0 14px 12px; font-size: 12.5px; color: var(--pt-ink-3); flex-wrap: wrap; }
.pt-yp-tag { font-size: 11px; font-weight: 600; letter-spacing: .04em; padding: 3px 7px; border: 1px solid var(--pt-border-strong); color: var(--pt-ink-2); background: var(--pt-surface); }
.pt-yp-tag--wait { background: var(--pt-amber-bg); border-color: var(--pt-amber-border); color: var(--pt-amber-text); }
.pt-yp-tag--ok { background: var(--pt-green-bg); border-color: var(--pt-green-border); color: var(--pt-green-text); }
.pt-yp-why { margin: 0 14px 12px; padding: 9px 12px; background: var(--pt-surface-dim); border-left: 3px solid var(--pt-border-strong); font-size: 13px; color: var(--pt-ink-2); line-height: 1.45; }
.pt-yp-why b { color: var(--pt-ink); }
.pt-yp-acts { display: flex; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--pt-border); flex-wrap: wrap; }
.pt-yp-edit { display: block; width: calc(100% - 28px); margin: 0 14px 12px; min-height: 80px; border: 1px solid var(--pt-border-strong); border-radius: 0; padding: 10px 12px; font-family: inherit; font-size: 14px; box-sizing: border-box; }
.pt-yp-btn, .pt-yp-btn:hover, .pt-yp-btn:focus, .pt-yp-btn:active { display: inline-flex; align-items: center; font-family: inherit; font-size: 12.5px; font-weight: 600; padding: 6px 10px; border: 1px solid var(--pt-border-strong); border-radius: 0; background: var(--pt-surface); color: var(--pt-ink); text-decoration: none; cursor: pointer; box-shadow: none; text-transform: none; letter-spacing: 0; }
.pt-yp-btn:hover, .pt-yp-btn:focus-visible { background: var(--pt-fill-control); color: var(--pt-ink); }
.pt-yp-btn--pri, .pt-yp-btn--pri:hover, .pt-yp-btn--pri:focus, .pt-yp-btn--pri:active { background: var(--pt-fill-primary); border-color: var(--pt-fill-primary); color: var(--pt-on-primary); }
.pt-yp-btn--pri:hover, .pt-yp-btn--pri:focus-visible { background: #1f1f1f; color: var(--pt-on-primary); }
.pt-yp-empty { background: var(--pt-surface); border: 1px dashed var(--pt-border-strong); padding: 22px; text-align: center; font-size: 14px; color: var(--pt-ink-2); line-height: 1.5; }
.pt-yp-empty b { display: block; color: var(--pt-ink); margin-bottom: 4px; }

/* reason picker + join question, inside the Noir dialog */
.pt-tmr .pt-tmr-reasons { display: flex; flex-direction: column; border: 1px solid var(--pt-border-strong); background: var(--pt-surface); margin-top: 6px; text-align: left; }
.pt-tmr .pt-tmr-reasons label { display: flex; gap: 10px; align-items: center; padding: 9px 12px; font-size: 13.5px; border-top: 1px solid var(--pt-border); cursor: pointer; margin: 0; position: relative; }
.pt-tmr .pt-tmr-reasons label:first-child { border-top: 0; }
.pt-tmr .pt-tmr-reasons input { position: absolute; opacity: 0; pointer-events: none; }
.pt-tmr .pt-tmr-rd { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--pt-border-strong); flex: 0 0 auto; box-sizing: border-box; }
.pt-tmr .pt-tmr-reasons input:checked + .pt-tmr-rd { border: 4px solid var(--pt-ink); }
.pt-tmr .pt-tmr-reasons input:focus-visible + .pt-tmr-rd { outline: 2px solid var(--pt-accent); outline-offset: 2px; }
.pt-tmr .pt-tmr-other { display: block; width: 100%; margin-top: 8px; min-height: 60px; border: 1px solid var(--pt-border-strong); border-radius: 0; padding: 8px 10px; font-family: inherit; font-size: 14px; box-sizing: border-box; }
.pt-tmr .pt-tmr-other[hidden] { display: none; }
.pt-tmr .pt-tmr-err { color: var(--pt-amber-text); font-size: 13px; margin-top: 8px; text-align: left; }

@media (max-width: 760px) {
	.pt-yp .pt-yc-modal { width: 100%; border-left: 0; margin-top: 60px; height: calc(100% - 60px); border-top: 1px solid var(--pt-border-strong); }
	.pt-yp .pt-yc-tabs { padding: 0 14px; overflow-x: auto; }
	.pt-yp .pt-yc-body { padding: 12px 14px; }
}

/* ── Part 3: Manage ▾ counts, the Discussion waiting bar, Report this tribe ── */
.pt-m3-badge { display: inline-block; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px; border-radius: 9px; background: var(--pt-badge); color: #fff; font: 600 10.5px/18px var(--pt-mono); text-align: center; vertical-align: 1px; }
#pt-manage-menu .pt-gh-joined-item { display: flex; align-items: center; justify-content: space-between; text-decoration: none; }
.pt-m3-waiting { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; margin: 10px 0 14px; background: var(--pt-surface); border: 1px solid var(--pt-border-strong); border-left: 3px solid var(--pt-amber-deep); font-size: 13.5px; color: var(--pt-ink); }
.pt-m3-waiting a { color: var(--pt-accent); font-weight: 600; text-decoration: none; }
.pt-m3-report { margin: 14px 0 0; font-size: 12.5px; }
.pt-m3-report-btn, .pt-m3-report-btn:hover, .pt-m3-report-btn:focus, .pt-m3-report-btn:active { background: transparent; color: var(--pt-ink-3); border: 0; padding: 0; font: inherit; text-decoration: underline; cursor: pointer; box-shadow: none; text-transform: none; letter-spacing: 0; }
.pt-m3-report-btn:hover, .pt-m3-report-btn:focus-visible { background: transparent; color: var(--pt-ink); }
/* Phone: the header buttons wrap to the left edge, so a right-pinned menu ran off-screen (Your posts was cut off). Pin it left. */
@media (max-width: 760px) {
	#pt-joined-menu, #pt-manage-menu { left: 0; right: auto; max-width: calc(100vw - 28px); }
}
