/**
 * Extension detail – PX Editor animated hero (html/com_content/article/ext-hero/px-editor.php, js/px-ext-editor.js).
 * Same frame as the PX Atlas hero: an article edit window with the PX Editor toolbar, a fixed-size document (heading,
 * paragraph, gallery, video, callout, "/" menu) and two cards (saved HTML, checks) overlapping its lower edge.
 * Every changing box has a fixed size: blocks only fade, so the hero never changes height. Scoped under .pxed.
 */
.tp-ext-detail .txd-hero .visual.pxt { background: none; padding: 0; border-radius: 0; display: block; overflow: visible; }

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

/* window */
.pxed-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); }
.pxed-bar { display: flex; align-items: stretch; background: #f7f9fb; border-bottom: 1px solid var(--pxed-line); white-space: nowrap; overflow: hidden; }
.pxed-app { display: flex; align-items: center; gap: 6px; padding: 9px 13px; font-weight: 700; border-right: 1px solid var(--pxed-line); }
.pxed-app i { color: var(--pxed-or); }
.pxed-crumb { display: flex; align-items: center; padding: 9px 12px; color: var(--pxed-text); overflow: hidden; text-overflow: ellipsis; }

/* PX Editor toolbar */
.pxed-tb { display: flex; align-items: center; gap: 3px; margin: 12px 12px 0; padding: 5px; border: 1px solid var(--pxed-line); border-bottom: 0; border-radius: 9px 9px 0 0; white-space: nowrap; overflow: hidden; }
.pxed-btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 24px; height: 24px; padding: 0 5px; border-radius: 5px; color: var(--pxed-text); font-size: 11px; transition: background .2s, color .2s, transform .12s; }
.pxed-btn b, .pxed-btn > i:not([class]) { font-family: Georgia, serif; font-size: 12.5px; }
.pxed-btn.is-add { background: var(--pxed-green); color: #fff; }
.pxed-btn.is-label { border: 1px solid var(--pxed-line); font-weight: 600; }
.pxed-btn.is-end { margin-left: auto; }
.pxed-btn.is-press { background: var(--pxed-navy); color: #fff; transform: scale(.9); }
.pxed-sep { width: 1px; height: 16px; background: var(--pxed-line); margin: 0 2px; flex: none; }

/* document: fixed size, blocks only fade */
.pxed-doc { position: relative; margin: 0 12px; height: 300px; padding: 14px 18px 0; border: 1px solid var(--pxed-line); border-top-color: #eef1f5; overflow: hidden; }
.pxed-h { height: 26px; font-size: 18px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; }
.pxed-p { height: 36px; margin-top: 6px; color: var(--pxed-text); font-size: 11.5px; line-height: 1.55; overflow: hidden; }
.pxed-bold { font-weight: 800; color: var(--pxed-navy); transition: font-weight .2s; }
.pxed-bold.is-plain { font-weight: 400; color: var(--pxed-text); }
.pxed-t.is-typing::after { content: ""; display: inline-block; width: 1.5px; height: 1em; margin-left: 1px; vertical-align: -2px; background: var(--pxed-navy); animation: pxed-blink .8s steps(1) infinite; }
@keyframes pxed-blink { 50% { opacity: 0; } }

.pxed-gal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 12px; height: 78px; }
.pxed-gal img { width: 100%; height: 78px; object-fit: cover; border-radius: 5px; display: block; transition: opacity .3s, transform .3s cubic-bezier(.3,1.4,.6,1); }
.pxed-gal.is-off img, .pxed-gal img.is-off { opacity: 0; transform: scale(.85); }

.pxed-row { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 10px; margin-top: 10px; height: 104px; }
.pxed-vid { position: relative; border-radius: 6px; overflow: hidden; background: #1b2a4a; transition: opacity .3s, transform .3s; }
.pxed-vid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pxed-play { position: absolute; left: 50%; top: 50%; width: 36px; height: 26px; margin: -13px 0 0 -18px; border-radius: 7px; background: #e03131; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 10px; box-shadow: 0 3px 8px rgba(0,0,0,.25); }
.pxed-vlabel { position: absolute; left: 6px; bottom: 6px; padding: 2px 6px; border-radius: 4px; background: rgba(5,0,56,.7); color: #fff; font-size: 9.5px; font-weight: 600; }
.pxed-call { display: flex; gap: 8px; align-items: flex-start; padding: 10px 11px; border-radius: 6px; border-left: 3px solid var(--pxed-or); background: var(--pxed-or-soft); color: var(--pxed-text); font-size: 11px; line-height: 1.45; transition: opacity .3s, transform .3s; }
.pxed-call i { color: var(--pxed-or); font-size: 13px; margin-top: 1px; }
.pxed-call b { display: block; color: #b34a00; }
.pxed-vid.is-off, .pxed-call.is-off { opacity: 0; transform: translateY(6px); }
.pxed-h.is-off, .pxed-p.is-off, .pxed-tail.is-off { opacity: 0; }
.pxed-tail { transition: opacity .2s; }

/* "/" menu */
.pxed-slash { position: absolute; left: 18px; top: 128px; z-index: 3; width: 150px; padding: 5px; border-radius: 9px; background: #fff; box-shadow: 0 0 0 1px rgba(5,0,56,.07), 0 10px 24px rgba(5,0,56,.2); display: flex; flex-direction: column; gap: 1px; opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity .2s, transform .2s; }
.pxed-slash.is-open { opacity: 1; transform: none; }
.pxed-opt { display: flex; align-items: center; gap: 8px; height: 22px; padding: 0 7px; border-radius: 5px; color: var(--pxed-text); font-weight: 600; font-size: 11px; transition: background .15s, color .15s; }
.pxed-opt i { width: 13px; text-align: center; color: var(--pxed-mute); }
.pxed-slash.is-open .pxed-opt.is-on { background: #e9f8ee; color: #1e7b3c; box-shadow: inset 2px 0 0 var(--pxed-green); }
.pxed-slash.is-open .pxed-opt.is-on i { color: #1e7b3c; }

.pxed-cur { position: absolute; left: 78%; top: 70%; z-index: 4; font-size: 15px; color: var(--pxed-navy); filter: drop-shadow(0 1px 1px #fff) drop-shadow(0 2px 3px rgba(0,0,0,.25)); transition: left .6s ease-in-out, top .6s ease-in-out, opacity .25s, transform .12s; }
.pxed-cur.is-press { transform: scale(.82); }
.pxed-cur.is-hidden { opacity: 0; }

.pxed-foot { display: flex; justify-content: space-between; margin: 0 12px 76px; padding: 5px 9px; border: 1px solid var(--pxed-line); border-top-color: #eef1f5; border-radius: 0 0 9px 9px; font-size: 9.5px; color: var(--pxed-mute); }
.pxed-foot b { color: #1e7b3c; }

/* cards */
.pxed-cards { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; align-items: start; margin: -64px 18px 0 18px; }
.pxed-card { background: #fff; border-radius: 14px; padding: 13px 14px 14px; box-shadow: 0 0 0 1px rgba(5,0,56,.06), 0 10px 24px rgba(5,0,56,.13); min-width: 0; }
.pxed-k { display: flex; align-items: center; gap: 6px; font-size: 9.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--pxed-mute); margin: 0 0 6px 2px; }
.pxed-k b { width: 7px; height: 7px; border-radius: 2px; background: var(--pxed-or); }

.pxed-line { display: flex; align-items: center; height: 20px; padding: 0 6px; border-radius: 5px; font: 500 10.5px/1 "SF Mono", Menlo, Consolas, monospace; white-space: nowrap; overflow: hidden; transition: opacity .25s, background .4s; }
.pxed-line u { text-decoration: none; color: #7048e8; }
.pxed-line em { font-style: normal; color: #b34a00; margin-left: .6ch; }
.pxed-line > span { margin-left: 6px; color: var(--pxed-mute); font-family: Inter, system-ui, sans-serif; overflow: hidden; text-overflow: ellipsis; }
.pxed-line.is-new { background: var(--pxed-or-soft); }
.pxed-line.is-off { opacity: 0; }

.pxed-check { display: flex; align-items: center; gap: 8px; height: 22px; padding: 0 4px; color: var(--pxed-text); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .25s; }
.pxed-check s { position: relative; width: 14px; height: 14px; border-radius: 50%; background: var(--pxed-green); flex: none; transition: background .2s, box-shadow .2s, transform .25s cubic-bezier(.3,1.6,.6,1); }
.pxed-check s::after { content: ""; position: absolute; left: 5px; top: 2px; width: 4px; height: 7px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.pxed-check.is-off { color: #a0a8b8; }
.pxed-check.is-off s { background: #fff; box-shadow: inset 0 0 0 1.5px #b9c1cf; transform: scale(.85); }
.pxed-check.is-off s::after { display: none; }
.pxed-note { display: block; margin: 7px 4px 0; padding-top: 7px; border-top: 1px dashed var(--pxed-line); color: var(--pxed-mute); font-size: 10.5px; transition: opacity .25s; }
.pxed-note.is-off { opacity: 0; }

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

@media (max-width: 640px) {
	.pxed { font-size: 11px; }
	.pxed-tb .pxed-btn:nth-child(n+7):not(.is-end), .pxed-tb .pxed-sep:nth-of-type(2) { display: none; }
	.pxed-doc { height: 282px; padding: 12px 12px 0; }
	.pxed-h { font-size: 16px; }
	.pxed-p { height: 54px; font-size: 11px; }
	.pxed-gal { height: 64px; }
	.pxed-gal img { height: 64px; }
	.pxed-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); height: 96px; }
	.pxed-call { font-size: 10.5px; padding: 8px; }
	.pxed-slash { top: 140px; }
	.pxed-foot { margin-bottom: 14px; }
	.pxed-cards { grid-template-columns: 1fr; margin: 10px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
	.pxed *, .pxed *::before, .pxed *::after { animation: none !important; transition: none !important; }
}
.pxed-line em:empty { display: none; }
