/**
 * Extension detail – PX AdHub animated hero (html/com_content/article/ext-hero/px-adhub.php, js/px-ext-adhub.js).
 * A slider of two scenes in the PX Master hero frame: a news page whose zone is sold, and the publisher's dashboard.
 * Every box that changes has a fixed size, so the page never jumps. Scoped under .pxah.
 */
.tp-ext-detail .txd-hero .visual.pxt { background: none; padding: 0; border-radius: 0; display: block; overflow: visible; }

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

/* slider */
.pxah-sl { position: relative; overflow: hidden; height: 352px; padding: 8px 4px 0; }
.pxah-track { display: flex; width: 200%; height: 100%; transition: transform .7s cubic-bezier(.65, 0, .35, 1); }
.pxah-slide { position: relative; width: 50%; flex: none; min-width: 0; padding: 0 6px; }
.pxah-nav { display: flex; justify-content: center; gap: 10px; margin-top: 6px; }
.pxah-dot { all: unset; display: flex; align-items: center; gap: 7px; cursor: pointer; padding: 5px 12px; border-radius: 99px; border: 1px solid var(--pxah-line); background: #fff; font-size: 12px; font-weight: 600; color: var(--pxah-text); }
.pxah-dot i { display: block; width: 22px; height: 4px; border-radius: 9px; background: var(--pxah-line); overflow: hidden; }
.pxah-dot i b { display: block; width: 0; height: 100%; background: var(--pxah-or); }
.pxah-dot.is-on { border-color: var(--pxah-navy); color: var(--pxah-navy); }
.pxah-dot.is-on i b { width: 100%; }
.pxah-dot.is-run i b { width: 0; animation: pxah-fill var(--pxah-dur, 6.5s) linear forwards; }
.pxah-dot:focus-visible { outline: 2px solid var(--pxah-or); outline-offset: 2px; }
@keyframes pxah-fill { to { width: 100%; } }

/* window */
.pxah-win { position: relative; height: 312px; 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); }
.pxah-bar { display: flex; align-items: stretch; background: #f7f9fb; border-bottom: 1px solid var(--pxah-line); white-space: nowrap; overflow: hidden; }
.pxah-app { display: flex; align-items: center; gap: 6px; padding: 9px 13px; font-weight: 700; border-right: 1px solid var(--pxah-line); }
.pxah-app i { color: var(--pxah-or); }
.pxah-crumb { display: flex; align-items: center; padding: 9px 12px; color: var(--pxah-text); overflow: hidden; text-overflow: ellipsis; }
.pxah-steps { margin: 6px 10px 6px auto; display: flex; gap: 4px; }
.pxah-st { display: flex; align-items: center; padding: 0 9px; border-radius: 99px; border: 1px solid var(--pxah-line); background: #fff; color: var(--pxah-mute); font-size: 10.5px; font-weight: 600; transition: background .2s, color .2s, border-color .2s; }
.pxah-st.is-on { background: var(--pxah-navy); border-color: var(--pxah-navy); color: #fff; }

/* scene 1: the news page */
.pxah-a { display: grid; grid-template-columns: 1fr 128px; gap: 12px; margin: 12px; }
.pxah-lines i { display: block; height: 7px; margin: 6px 0; border-radius: 5px; background: #eef1f5; }
.pxah-img { display: block; height: 86px; margin-bottom: 8px; border-radius: 9px; background: linear-gradient(135deg, #dfe5ef, #f1f4f9); }
.pxah-zone { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 8px; border: 2px dashed #ffc499; background: repeating-linear-gradient(135deg, #fff6ef 0 8px, #fff 8px 16px); color: #b34a00; font-weight: 700; font-size: 10.5px; text-align: center; transition: border-color .3s; }
.pxah-zone small { position: absolute; top: 4px; left: 6px; font-size: 8.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--pxah-mute); }
.pxah-ad { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 2px; padding: 10px; background: #3b2a20; color: #fff; text-align: left; opacity: 0; transition: opacity .45s; }
.pxah-ad b { font-size: 13px; }
.pxah-ad em { font-style: normal; font-size: 10px; font-weight: 400; opacity: .8; }
.pxah-ad u { margin-top: 5px; padding: 3px 7px; border-radius: 6px; background: var(--pxah-or); font-size: 9.5px; text-decoration: none; }
.pxah-ad--bank { flex-direction: row; align-items: center; justify-content: center; gap: 10px; background: #1f3561; }
.pxah-zone.is-live { border-style: solid; border-color: transparent; }
.pxah-zone.is-live .pxah-ad { opacity: 1; }
.pxah-rail { height: 140px; }
.pxah-wide { grid-column: 1 / -1; order: -1; height: 44px; }
.pxah-ctr { position: absolute; left: 14px; top: 168px; padding: 6px 9px; border-radius: 10px; border: 1px solid var(--pxah-line); background: #fff; font-size: 10px; white-space: nowrap; box-shadow: 0 6px 16px rgba(5,0,56,.08); }
.pxah-ctr b { display: inline-block; min-width: 3.2em; font-size: 13px; font-variant-numeric: tabular-nums; }

/* scene 2: the dashboard */
.pxah-b { margin: 12px; }
.pxah-kpi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pxah-kpi span { min-width: 0; padding: 6px 8px; border-radius: 9px; border: 1px solid var(--pxah-line); }
.pxah-kpi em { font-style: normal; font-size: 9px; letter-spacing: .06em; text-transform: uppercase; color: var(--pxah-mute); }
.pxah-kpi b { display: block; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pxah-chart { height: 44px; margin-top: 8px; padding: 6px 8px; border-radius: 9px; border: 1px solid var(--pxah-line); }
.pxah-chart svg { display: block; overflow: visible; width: 100%; height: 100%; }
.pxah-line { transition: stroke-dashoffset 1.6s ease; }
.pxah-queue { margin-top: 8px; border-radius: 9px; border: 1px solid var(--pxah-line); }
.pxah-q { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 26px; padding: 0 10px; border-top: 1px solid var(--pxah-line); color: var(--pxah-text); white-space: nowrap; overflow: hidden; }
.pxah-q:first-child { border-top: 0; }
.pxah-q > span { overflow: hidden; text-overflow: ellipsis; }
.pxah-q b { font-weight: 600; color: var(--pxah-navy); }
.pxah-q u { flex: none; width: 76px; padding: 3px 0; border-radius: 99px; background: var(--pxah-or-soft); color: #b34a00; font-size: 10px; font-weight: 700; text-align: center; text-decoration: none; transition: background .25s, color .25s; }
.pxah-q u.is-done { background: var(--pxah-green-soft); color: var(--pxah-green); }

/* cards over the lower edge */
.pxah-cards { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: -62px 18px 0; }
.pxah-card { display: flex; flex-direction: column; gap: 2px; min-width: 0; height: 84px; padding: 12px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px rgba(5,0,56,.07), 0 10px 22px rgba(5,0,56,.12); transition: opacity .35s, transform .35s; }
.pxah-card.is-hidden { opacity: 0; transform: translateY(10px); }
.pxah-card em { font-style: normal; font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pxah-mute); }
.pxah-card b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pxah-ok { color: var(--pxah-green); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 640px) {
	.pxah { font-size: 11px; }
	.pxah-sl { height: 322px; }
	.pxah-win { height: 286px; }
	.pxah-steps { display: none; }
	.pxah-a { grid-template-columns: 1fr 104px; }
	.pxah-img { height: 70px; }
	.pxah-rail { height: 120px; }
	.pxah-ad b { font-size: 11.5px; }
	.pxah-kpi { grid-template-columns: repeat(2, 1fr); }
	.pxah-kpi span:nth-child(n+3) { display: none; }
	.pxah-chart { height: 40px; }
	.pxah-cards { grid-template-columns: 1fr; gap: 6px; margin: -48px 10px 0; }
	.pxah-card { height: 62px; padding: 8px 10px; }
	.pxah-card[data-c="1"], .pxah-card[data-c="3"] { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.pxah *, .pxah *::before, .pxah *::after { animation: none !important; transition: none !important; }
}
