/**
 * Extension detail – PX Forums animated hero (html/com_content/article/ext-hero/px-forums.php, js/px-ext-forums.js).
 * Same frame as the PX Site Kit hero: a forum window (a Q&A topic with three answers) and three cards overlapping its
 * lower edge. Scoped under .pxfh. Every box has a fixed size; the animation only changes text, opacity and colours.
 */
.tp-ext-detail .txd-hero .visual.pxt { background: none; padding: 0; border-radius: 0; display: block; overflow: visible; }

.pxfh {
	--pxfh-navy: var(--tp-navy, #050038);
	--pxfh-or: #ff6a00;
	--pxfh-mute: #8a93a6;
	--pxfh-text: #3b4256;
	--pxfh-line: #e3e7ee;
	--pxfh-soft: #eef1f5;
	--pxfh-green: #2f9e44;
	position: relative; padding: 8px 0 30px; font-size: 12px; line-height: 1.35; color: var(--pxfh-navy);
	font-family: Inter, "SF Pro Text", system-ui, -apple-system, sans-serif; text-align: left;
}
.pxfh *, .pxfh *::before, .pxfh *::after { box-sizing: border-box; }

/* window */
.pxfh-win { position: relative; width: 100%; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px rgba(5,0,56,.07), 0 10px 26px rgba(5,0,56,.10); }
.pxfh-bar { display: flex; align-items: stretch; background: #f7f9fb; border-bottom: 1px solid var(--pxfh-line); white-space: nowrap; overflow: hidden; }
.pxfh-app { display: flex; align-items: center; gap: 6px; padding: 9px 13px; font-weight: 700; border-right: 1px solid var(--pxfh-line); }
.pxfh-app i { color: var(--pxfh-or); }
.pxfh-crumb { display: flex; align-items: center; padding: 9px 12px; color: var(--pxfh-text); min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pxfh-tabs { margin: 6px 10px 6px auto; display: flex; gap: 4px; }
.pxfh-tab { display: flex; align-items: center; padding: 0 9px; border-radius: 99px; border: 1px solid var(--pxfh-line); background: #fff; color: var(--pxfh-mute); font-size: 10.5px; font-weight: 600; }
.pxfh-tab.is-on { background: var(--pxfh-navy); border-color: var(--pxfh-navy); color: #fff; }

.pxfh-stage { padding: 12px 14px 92px; }
.pxfh-q { height: 50px; }
.pxfh-title { display: block; font-size: 15px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pxfh-meta { display: flex; align-items: center; gap: 5px; margin-top: 6px; white-space: nowrap; overflow: hidden; }
.pxfh-pill { padding: 1px 7px; border-radius: 99px; background: var(--pxfh-soft); color: var(--pxfh-text); font-size: 9.5px; font-weight: 700; transition: opacity .35s; }
.pxfh-pill.is-qa { background: #fff4e6; color: #b45309; }
.pxfh-pill.is-ok { background: #e7f6ec; color: var(--pxfh-green); }
.pxfh-n { margin-left: 4px; color: var(--pxfh-mute); font-size: 10px; }
.pxfh-n b { font-weight: 600; color: var(--pxfh-text); font-variant-numeric: tabular-nums; }

/* answers: fixed rows; the accepted one gets a green rail, a tick and its label */
.pxfh-a { position: relative; display: grid; grid-template-columns: 26px 26px 1fr; gap: 9px; height: 56px; padding: 8px 8px 8px 6px; border-top: 1px solid var(--pxfh-soft); border-radius: 0; transition: opacity .35s, transform .35s, background-color .4s; }
.pxfh-a::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--pxfh-green); opacity: 0; transition: opacity .4s; }
.pxfh-a.is-acc { background: #f3fbf5; border-radius: 9px; }
.pxfh-a.is-acc::before { opacity: 1; }
.pxfh-vote { display: flex; flex-direction: column; align-items: center; color: #b3bacb; font-size: 10px; line-height: 1; gap: 1px; }
.pxfh-vote b { color: var(--pxfh-text); font-size: 12.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pxfh-vote i.is-pop { color: var(--pxfh-or); }
.pxfh-tick { margin-top: 3px; color: #d5dae3; transition: color .4s; }
.pxfh-a.is-acc .pxfh-tick { color: var(--pxfh-green); }
.pxfh-av { width: 26px; height: 26px; border-radius: 50%; opacity: .85; }
.pxfh-body { min-width: 0; }
.pxfh-who { display: block; font-size: 10px; color: var(--pxfh-text); white-space: nowrap; overflow: hidden; }
.pxfh-who b { color: var(--pxfh-navy); }
.pxfh-accl { margin-left: 6px; font-style: normal; font-weight: 700; color: var(--pxfh-green); transition: opacity .4s; }
.pxfh-a:not(.is-acc) .pxfh-accl { opacity: 0; }
.pxfh-ln { display: block; height: 6px; margin-top: 6px; border-radius: 4px; background: var(--pxfh-soft); }

/* cards */
.pxfh-cards { position: relative; display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 10px; align-items: stretch; margin: -76px 18px 0; }
.pxfh-card { display: flex; flex-direction: column; gap: 4px; height: 98px; padding: 11px 12px; background: #fff; border-radius: 13px; box-shadow: 0 0 0 1px rgba(5,0,56,.06), 0 10px 24px rgba(5,0,56,.13); min-width: 0; overflow: hidden; transition: opacity .35s, transform .35s; }
.pxfh-h { display: flex; align-items: center; gap: 6px; font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--pxfh-mute); white-space: nowrap; }
.pxfh-h b { width: 7px; height: 7px; border-radius: 2px; background: var(--pxfh-or); flex: none; }
.pxfh-card strong { font-size: 13px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pxfh-card strong i { color: #f59f00; }
.pxfh-wait { font-variant-numeric: tabular-nums; }
.pxfh-t { font-size: 10px; color: var(--pxfh-text); }
.pxfh-t.is-ok { color: var(--pxfh-green); font-weight: 700; }

.pxfh .is-hidden { opacity: 0; }
.pxfh-a.is-hidden, .pxfh-card.is-hidden { transform: translateY(8px); }

.pxfh-rp { all: unset; position: absolute; right: 2px; bottom: 6px; cursor: pointer; color: var(--pxfh-mute); font-size: 12px; padding: 4px; }
.pxfh-rp:hover, .pxfh-rp:focus-visible { color: var(--pxfh-or); }

/* narrow column: cards under the window */
@media (max-width: 640px) {
	.pxfh { font-size: 11px; }
	.pxfh-tabs .pxfh-tab:nth-child(-n+2), .pxfh-crumb { display: none; }
	.pxfh-title { font-size: 13.5px; }
	.pxfh-stage { padding-bottom: 12px; }
	.pxfh-cards { grid-template-columns: 1fr; margin: 10px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
	.pxfh *, .pxfh *::before, .pxfh *::after { animation: none !important; transition: none !important; }
}
