/* BetAdvisor.ng /aviator/ page (mu-plugin betadvisor-page-aviator.php). Prefix av-. */

/* First screen: the section image moves down into the text, the answer comes first. */
.tpl-hub > .wrap > .page-hero, .tpl-hub > .page-hero, .tpl-hub .page-hero { display: none; }
.tpl-hub .page-head--band { padding-bottom: 14px; }
@media (max-width: 640px) {
	.tpl-hub .page-head--band { padding-top: 10px; }
	.tpl-hub .page-head--band .page-title { font-size: 1.65rem; margin-bottom: .2em; }
	.tpl-hub .page-head--band .lead { font-size: .95rem; margin-bottom: .4em; }
	.tpl-hub .page-head--band .meta-line { display: none; }
}

/* ----- First-screen block ----- */
.av-top { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); margin: 0 0 22px; }
@media (min-width: 900px) { .av-top { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; } }
.av-where { background: var(--card); border: 2px solid var(--green); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); }
.av-where__h, .av-how__h { margin: 0 0 8px; font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; color: var(--green); display: flex; align-items: center; gap: 8px; }
.av-dot { width: 10px; height: 10px; border-radius: 50%; background: #d7263d; box-shadow: 0 0 0 4px rgba(215, 38, 61, .18); }
.av-where__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.av-row { margin: 0; display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 10px; background: #fbfaf6; }
.av-row__n { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; font-size: .75rem; }
.av-row .rv-tile { width: 56px; height: 34px; padding: 4px 5px; border-radius: 8px; }
.av-row__main { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.av-row__name { font-weight: 800; font-size: .95rem; }
.av-row__name em { font-style: normal; font-weight: 700; color: var(--green-2); font-size: .8rem; }
.av-row__meta { font-size: .72rem; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.av-row__btns { display: flex; align-items: center; gap: 8px; }
.av-btn { min-height: 34px !important; padding: 6px 14px !important; font-size: .88rem !important; margin: 0 !important; }
.av-row__more { font-size: .78rem; font-weight: 700; color: var(--green-2); }
@media (max-width: 420px) { .av-row__more { display: none; } .av-row:nth-child(4) { display: none; } }
.av-where__foot { margin: 8px 0 0; font-size: .76rem; color: var(--ink-soft); }

.av-how { background: var(--green); color: #dbe9e2; border-radius: var(--radius); padding: 12px 14px; }
.av-how__h { color: #fff; }
.av-steps { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; counter-reset: avs; }
.av-steps li { margin: 0; padding: 8px; border-radius: 10px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); counter-increment: avs; font-size: .76rem; line-height: 1.3; }
.av-steps b { display: block; color: var(--lime); font-family: var(--font-head); font-size: .92rem; margin-bottom: 2px; }
.av-steps b::before { content: counter(avs) ". "; }
.av-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.av-facts li { margin: 0; font-size: .68rem; line-height: 1.2; color: #a9c6b7; }
.av-facts b { display: block; font-family: var(--font-head); font-size: 1.05rem; color: #fff; }
.av-how__note { margin: 6px 0 0; font-size: .66rem; color: #8fa99b; }
@media (max-width: 899px) { .av-how { padding: 10px 12px; } }

/* ----- Summary and key numbers ----- */
.av-sum { background: var(--green-soft); border-left: 4px solid var(--lime); border-radius: var(--radius-sm); padding: 14px 16px; margin: 0 0 18px; }
.av-sum__t { margin: 0 0 6px; font-family: var(--font-head); font-weight: 800; color: var(--green); }
.av-sum ul { margin: 0; }
.av-keys { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 760px) { .av-keys { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.av-keys li { margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fbfaf6; font-size: .84rem; color: var(--ink-soft); line-height: 1.3; }
.av-keys b { display: block; font-family: var(--font-head); font-size: 1.4rem; color: var(--green); }

/* ----- Figure ----- */
.av-fig { margin: 0 0 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.av-fig__scroll { overflow-x: auto; }
.av-fig svg { display: block; width: 100%; min-width: 480px; height: auto; }
.av-fig figcaption { font-size: .82rem; color: var(--ink-soft); margin-top: 8px; }
.av-g { stroke: var(--line); stroke-width: 1; }
.av-ax { font-size: 13px; fill: var(--ink-soft); font-family: var(--font); }
.av-line { fill: none; stroke: var(--green-2); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.av-cash { fill: var(--lime); stroke: var(--green); stroke-width: 3; }
.av-crash { fill: #d7263d; stroke: #fff; stroke-width: 3; }
.av-lab { font-size: 15px; font-weight: 700; fill: var(--green); font-family: var(--font); }
.av-lab--red { fill: #b3261e; }

/* ----- Tables ----- */
.av-odds, .av-double { margin: 0 0 22px; overflow-x: auto; }
.av-odds table, .av-double table { width: 100%; border-collapse: collapse; font-size: .92rem; background: var(--card); }
.av-odds th, .av-odds td, .av-double th, .av-double td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.av-odds thead th, .av-double thead th { background: var(--green-soft); color: var(--green); font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; white-space: normal; }
.av-bar { display: inline-block; width: 90px; height: 8px; background: #edf1ee; border-radius: 4px; margin-right: 8px; vertical-align: middle; overflow: hidden; }
.av-bar span { display: block; height: 100%; background: var(--green-2); }
.av-hot td { background: var(--red-soft); }
.av-odds__note { font-size: .82rem; color: var(--ink-soft); margin: 8px 0 0; white-space: normal; }

/* ----- Simulator ----- */
.av-sim { background: var(--card); border: 2px solid var(--green); border-radius: var(--radius); padding: 16px; margin: 0 0 24px; box-shadow: var(--shadow); }
.av-sim__in { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .av-sim__in { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.av-sim__f { display: flex; flex-direction: column; gap: 4px; font-size: .84rem; font-weight: 700; color: var(--ink-soft); }
.av-sim__f input { font: inherit; font-size: 1.05rem; font-weight: 700; color: var(--ink); padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fbfaf6; width: 100%; }
.av-sim__f small { font-weight: 400; font-size: .74rem; }
.av-sim__out { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 14px 0 0; }
@media (min-width: 760px) { .av-sim__out { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.av-sim__out div { background: var(--green-soft); border-radius: 8px; padding: 10px; }
.av-sim__out span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); }
.av-sim__out b { font-family: var(--font-head); font-size: 1.25rem; color: var(--green); }
.av-sim__read { margin: 12px 0 0; font-size: .92rem; }
.av-sim__run { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 12px 0 0; }
.av-sim__btn { margin: 0; }
.av-sim__res { font-size: .88rem; font-weight: 700; }
.av-sim__res.is-up { color: var(--green-2); }
.av-sim__res.is-down { color: #b3261e; }
.av-sim__strip { display: flex; flex-wrap: wrap; gap: 3px; margin: 10px 0 0; }
.av-sim__strip i { width: 10px; height: 10px; border-radius: 2px; }
.av-sim__strip i.w { background: var(--green-2); }
.av-sim__strip i.l { background: #e6b3ae; }
.av-sim__note { font-size: .78rem; color: var(--ink-soft); margin: 10px 0 0; }

/* ----- Provably fair flow ----- */
.av-fair { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .av-fair { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.av-fair li { margin: 0; position: relative; padding: 14px; background: #fbfaf6; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: .88rem; line-height: 1.4; }
.av-fair b { display: block; color: var(--green); font-family: var(--font-head); margin: 4px 0 2px; }
.av-fair__n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: var(--lime); font-weight: 800; }

/* ----- Content helpers used in the page text ----- */
.av-grid { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); margin: 0 0 20px; }
@media (min-width: 760px) { .av-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .av-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.av-card { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fbfaf6; }
.av-card h3 { margin: 0 0 6px; font-size: 1.02rem; }
.av-card p { margin: 0 0 .5em; font-size: .93rem; }
.av-card--warn { border-left: 4px solid var(--red-line); background: var(--red-soft); }
.av-card--ok { border-left: 4px solid var(--green-2); }
.av-verdict { display: inline-block; margin: 0 0 6px; padding: 2px 9px; border-radius: 999px; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; background: var(--green-soft); color: var(--green); }
.av-verdict--bad { background: #f6d9d5; color: #8a2a1e; }
.av-img { margin: 0 0 22px; }
.av-img img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.av-img figcaption { font-size: .8rem; color: var(--ink-soft); margin-top: 6px; }
@media (max-width: 599px) {
	.av-steps { grid-template-columns: minmax(0, 1fr); gap: 4px; }
	.av-steps li { display: flex; gap: 8px; align-items: baseline; padding: 6px 8px; }
	.av-steps b { display: inline; flex: none; margin: 0; font-size: .86rem; }
	.av-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.av-row__meta { white-space: normal; }
}
