/* Follow / Following ▾ (Profile tabs brief §1, Leon 11 Oct 2026). Markup: pt_follow_menu_html(); script: js/forum/pt-follow-menu.js.
   Square corners; Follow = ink, Following ▾ = outline. Every button declares background + colour on :hover/:focus/:active (CLAUDE.md 5a:
   GeneratePress's button:hover is (0,1,1); these are (0,2,0)+). A dropdown on desktop, a bottom sheet under 640px. */
.pt-fm { position: relative; display: inline-flex; flex: none; }
.pt-fm .pt-fm__follow, .pt-fm .pt-fm__follow:focus, .pt-fm .pt-fm__follow:active,
.pt-fm .pt-fm__ing, .pt-fm .pt-fm__ing:focus, .pt-fm .pt-fm__ing:active { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border: 1px solid #1A1A1A; border-radius: 0; font-weight: 600; font-size: 14px; line-height: 1.2; font-family: inherit; font-family: inherit; text-transform: none; letter-spacing: 0; white-space: nowrap; cursor: pointer; box-shadow: none; }
.pt-fm .pt-fm__follow, .pt-fm .pt-fm__follow:focus, .pt-fm .pt-fm__follow:active { background: #1A1A1A; color: #fff; }
.pt-fm .pt-fm__follow:hover { background: #1f1f1f; color: #fff; }
.pt-fm .pt-fm__ing, .pt-fm .pt-fm__ing:focus, .pt-fm .pt-fm__ing:active { background: #fff; color: #1A1A1A; border-color: #C9C7BF; }
.pt-fm .pt-fm__ing:hover, .pt-fm .pt-fm__ing[aria-expanded="true"] { background: #F2F1EC; color: #1A1A1A; }
.pt-fm .pt-fm__follow:focus-visible, .pt-fm .pt-fm__ing:focus-visible { outline: 2px solid #1A1A1A; outline-offset: 2px; }
.pt-fm--sm .pt-fm__follow, .pt-fm--sm .pt-fm__follow:focus, .pt-fm--sm .pt-fm__follow:active, .pt-fm--sm .pt-fm__ing, .pt-fm--sm .pt-fm__ing:focus, .pt-fm--sm .pt-fm__ing:active { padding: 7px 12px; font-size: 13px; }
.pt-fm [hidden] { display: none !important; }

.pt-fm__menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; width: 300px; padding: 0 0 4px; background: #fff; border: 1px solid #E4E2DB; box-shadow: 0 10px 28px rgba(0, 0, 0, .12); display: flex; flex-direction: column; text-align: left; color: #1A1A1A; font-size: 14px; }
.pt-fm__h { padding: 12px 14px 6px; font-size: 12px; font-weight: 600; color: #5C5A54; text-transform: uppercase; letter-spacing: .05em; }
.pt-fm__opt { position: relative; display: flex; gap: 10px; align-items: flex-start; padding: 9px 14px; margin: 0; cursor: pointer; font-weight: 400; }
.pt-fm__opt:hover { background: #FAF9F6; }
.pt-fm__opt input { position: absolute; opacity: 0; pointer-events: none; }
.pt-fm__rad { width: 16px; height: 16px; flex: none; margin-top: 2px; border: 1.5px solid #C9C7BF; border-radius: 50%; background: #fff; }
.pt-fm__opt input:checked + .pt-fm__rad { border: 5px solid #1A1A1A; }
.pt-fm__opt input:focus-visible + .pt-fm__rad { outline: 2px solid #1A1A1A; outline-offset: 2px; }
.pt-fm__opt small, .pt-fm__row small { display: block; font-size: 12px; color: #5C5A54; }
.pt-fm .pt-fm__exact, .pt-fm .pt-fm__exact:focus, .pt-fm .pt-fm__exact:active, .pt-fm .pt-fm__un, .pt-fm .pt-fm__un:focus, .pt-fm .pt-fm__un:active { display: block; width: 100%; padding: 10px 14px; border: 0; border-radius: 0; background: #fff; text-align: left; font: inherit; font-size: 13px; text-transform: none; letter-spacing: 0; cursor: pointer; box-shadow: none; }
.pt-fm .pt-fm__exact, .pt-fm .pt-fm__exact:focus, .pt-fm .pt-fm__exact:active { color: #185FA5; }
.pt-fm .pt-fm__exact:hover { background: #FAF9F6; color: #185FA5; text-decoration: underline; }
.pt-fm .pt-fm__un, .pt-fm .pt-fm__un:focus, .pt-fm .pt-fm__un:active { color: #1A1A1A; font-size: 14px; }
.pt-fm .pt-fm__un:hover { background: #F2F1EC; color: #1A1A1A; }
.pt-fm__sw { display: flex; flex-direction: column; border-top: 1px solid #E4E2DB; }
.pt-fm__row { position: relative; display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 8px 14px; margin: 0; cursor: pointer; font-weight: 400; }
.pt-fm__row input { position: absolute; opacity: 0; pointer-events: none; }
.pt-fm__tg { width: 34px; height: 20px; flex: none; border-radius: 10px; background: #C9C7BF; position: relative; transition: background .15s; }
.pt-fm__tg::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .15s; }
.pt-fm__row input:checked + .pt-fm__tg { background: #1A1A1A; }
.pt-fm__row input:checked + .pt-fm__tg::after { transform: translateX(14px); }
.pt-fm__row input:focus-visible + .pt-fm__tg { outline: 2px solid #1A1A1A; outline-offset: 2px; }
.pt-fm__st { min-height: 0; padding: 0 14px; font-size: 12px; color: #2E7D4F; }
.pt-fm__st:empty { display: none; }
.pt-fm__sep { border-top: 1px solid #E4E2DB; margin-top: 4px; }

/* Phones: the menu is a bottom sheet over a dimmed page, above the app's bottom nav. */
@media (max-width: 640px) {
	.pt-fm__menu { position: fixed; left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: 80vh; overflow-y: auto; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); border: 0; border-top: 1px solid #E4E2DB; box-shadow: 0 -10px 30px rgba(0, 0, 0, .18); z-index: 10000; }
	html.pt-fm-sheet-open::after { content: ""; position: fixed; inset: 0; background: rgba(26, 26, 26, .35); z-index: 9999; }
	.pt-fm__h { padding-top: 16px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .pt-fm__tg, .pt-fm__tg::after { transition: none; } }
