/* BetAdvisor.ng /predictions/ht-ft/ blocks. Loaded on that page only, after main.css. Prefix htft-. */

/* ----- Key numbers strip ----- */
.htft-keys { list-style: none; margin: 0 0 1.4em; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .htft-keys { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.htft-keys li { margin: 0; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--green-soft); border-left: 4px solid var(--green-2); line-height: 1.3; }
.htft-keys b { display: block; font-family: var(--font-head); font-size: 1.45rem; color: var(--green); }
.htft-keys span { font-size: .82rem; color: var(--ink-soft); }

/* ----- In 30 seconds summary ----- */
.htft-sum { margin: 0 0 1.4em; padding: 16px 18px; border: 2px solid var(--green); border-radius: var(--radius); background: #fbfaf6; }
.htft-sum__t { margin: 0 0 8px; font-family: var(--font-head); font-weight: 800; color: var(--green); font-size: 1.05rem; }
.htft-sum ul { margin: 0; padding-left: 1.2em; }
.htft-sum li { margin: .3em 0; }

/* ----- Reading a pick ----- */
.htft-read { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); margin: 0 0 1.2em; }
@media (min-width: 640px) { .htft-read { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.htft-read div { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; font-size: .92rem; }
.htft-read b { display: block; color: var(--green); font-family: var(--font-head); }

/* ----- Frequency explorer ----- */
.htft-stats { margin: 0 0 1.4em; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.htft-stats__ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 12px; }
.htft-stats__ctl label { font-weight: 700; color: var(--green); font-size: .9rem; }
.htft-stats__ctl select, .htft-value select, .htft-value input { min-height: 42px; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fbfaf6; font: inherit; font-size: .95rem; color: var(--ink); max-width: 100%; }
.htft-grid { display: grid; grid-template-columns: 74px repeat(3, minmax(0, 1fr)); gap: 6px; }
.htft-grid__corner, .htft-grid__ch, .htft-grid__rh { font-size: .78rem; font-weight: 800; color: var(--green); line-height: 1.2; }
.htft-grid__ch { text-align: center; align-self: end; padding-bottom: 2px; }
.htft-grid__rh { align-self: center; }
.htft-grid small { display: block; font-weight: 600; color: var(--ink-soft); font-size: .7rem; }
.htft-grid__corner { display: flex; flex-direction: column; justify-content: flex-end; color: var(--ink-soft); font-size: .7rem; }
.htft-grid__corner span + span::before { content: "rows / columns: "; display: none; }
.htft-cell { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 78px; padding: 8px 4px; border-radius: 10px; text-align: center; line-height: 1.15; }
.htft-cell b { font-family: var(--font-head); font-size: 1rem; }
.htft-cell__p { font-size: 1.25rem; font-weight: 800; margin: 2px 0; }
.htft-cell__o { font-size: .72rem; opacity: .85; }
.htft-h1 { background: #f7f5ef; color: var(--ink-soft); }
.htft-h2 { background: #e8f1ea; color: var(--green); }
.htft-h3 { background: #cfe5d6; color: var(--green); }
.htft-h4 { background: #7fbf96; color: #08281d; }
.htft-h5 { background: var(--green-2); color: #fff; }
.htft-legend { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; font-size: .74rem; }
.htft-legend span { padding: 2px 8px; border-radius: 999px; }
.htft-stats figcaption { margin-top: 10px; font-size: .78rem; color: var(--ink-soft); }
@media (max-width: 420px) { .htft-grid { grid-template-columns: 58px repeat(3, minmax(0, 1fr)); gap: 4px; } .htft-cell { min-height: 68px; } .htft-cell__p { font-size: 1.05rem; } .htft-cell__o { font-size: .66rem; } }

/* ----- After half time ----- */
.htft-flow { margin: 0 0 1.4em; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.htft-flow__row { margin: 0 0 14px; }
.htft-flow__t { margin: 0 0 6px; font-weight: 800; color: var(--green); }
.htft-flow__t small { font-weight: 600; color: var(--ink-soft); }
.htft-flow__bar { display: flex; width: 100%; border-radius: 10px; overflow: hidden; min-height: 46px; }
.htft-seg { display: flex; flex-direction: column; justify-content: center; padding: 4px 8px; min-width: 0; font-size: .78rem; line-height: 1.15; overflow: hidden; white-space: nowrap; flex-grow: 0; flex-shrink: 1; }
.htft-seg b { font-size: .95rem; }
.htft-seg i { font-style: normal; opacity: .9; overflow: hidden; text-overflow: ellipsis; }
.htft-seg--a { background: var(--green-2); color: #fff; }
.htft-seg--b { background: #f2d58a; color: #3a2a00; }
.htft-seg--c { background: #e9a19b; color: #4a0f0b; }
.htft-flow__note { margin: 0; font-size: .78rem; color: var(--ink-soft); }

/* ----- Outcome name translator / pick cards ----- */
.htft-cards { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); margin: 0 0 1.4em; }
@media (min-width: 640px) { .htft-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .htft-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.htft-card { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; min-width: 0; }
.htft-card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.htft-card p { margin: 0 0 .5em; font-size: .94rem; }
.htft-card p:last-child { margin-bottom: 0; }
.htft-card__tag { display: inline-block; margin: 0 0 8px; padding: 2px 10px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: .75rem; font-weight: 800; letter-spacing: .04em; }
.htft-card__tag--risk { background: var(--red-soft); color: #a4511b; }
.htft-card__stat { font-weight: 800; color: var(--green); }

/* ----- Keep / watch boxes ----- */
.htft-kw { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); margin: 0 0 1.4em; }
@media (min-width: 760px) { .htft-kw { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.htft-kw > div { padding: 14px 16px; border-radius: var(--radius); }
.htft-keep { background: var(--green-soft); border: 1px solid #b9d6c4; }
.htft-watch { background: var(--red-soft); border: 1px solid var(--red-line); }
.htft-kw p.htft-kw__t { margin: 0 0 6px; font-weight: 800; font-family: var(--font-head); }
.htft-keep .htft-kw__t { color: var(--green); }
.htft-watch .htft-kw__t { color: #8a3f10; }
.htft-kw ul { margin: 0; padding-left: 1.2em; font-size: .94rem; }

/* ----- Price checker ----- */
.htft-value { margin: 0 0 1.4em; padding: 16px; border: 2px solid var(--green); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.htft-value__in { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .htft-value__in { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.htft-value label { display: flex; flex-direction: column; gap: 4px; font-size: .82rem; font-weight: 700; color: var(--ink-soft); min-width: 0; }
.htft-value select, .htft-value input { width: 100%; }
.htft-value__out { margin-top: 14px; }
.htft-value__cards { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .htft-value__cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.htft-value__cards div { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--green-soft); }
.htft-value__cards span { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); }
.htft-value__cards b { font-size: 1.25rem; color: var(--green); font-family: var(--font-head); }
.htft-value__verdict { margin: 12px 0 6px; padding: 10px 12px; border-radius: var(--radius-sm); border-left: 4px solid var(--green-2); background: #fbfaf6; font-weight: 600; }
.htft-v--mid { border-left-color: #d99a00; }
.htft-v--bad { border-left-color: #b3261e; }
.htft-value__ev { margin: 0; font-size: .9rem; }
.htft-value__note { margin: 10px 0 0; font-size: .78rem; color: var(--ink-soft); }

/* ----- Red flags ----- */
.htft-flags { list-style: none; margin: 0 0 1.4em; padding: 0; display: grid; gap: 8px; }
.htft-flags li { margin: 0; position: relative; padding: 10px 12px 10px 44px; border: 1px solid var(--line); border-left: 4px solid #b3261e; border-radius: var(--radius-sm); background: #fff; font-size: .94rem; }
.htft-flags li::before { content: "!"; position: absolute; left: 12px; top: 10px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--red-soft); color: #a4511b; font-weight: 800; font-size: .8rem; }
.htft-flags strong { display: block; }

/* ----- Rules list ----- */
.htft-rules { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); margin: 0 0 1.4em; }
@media (min-width: 640px) { .htft-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.htft-rules div { padding: 12px 14px; border-radius: var(--radius-sm); background: #fbfaf6; border: 1px solid var(--line); font-size: .93rem; }
.htft-rules b { display: block; color: var(--green); margin-bottom: 2px; }

/* ----- Glossary ----- */
.htft-gloss { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 0 0 1.4em; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
@media (min-width: 640px) { .htft-gloss { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.htft-gloss p { margin: 0; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.htft-gloss b { color: var(--green); }

/* Placeholder for an image the owner will add */
.htft-ph { margin: 0 0 1.4em; display: grid; place-items: center; aspect-ratio: 16 / 7; border: 2px dashed #b9c9bf; border-radius: var(--radius); background: repeating-linear-gradient(45deg, #f1f5f2 0 12px, #e9f0eb 12px 24px); color: var(--ink-soft); text-align: center; padding: 16px; font-size: .9rem; }
.htft-ph strong { display: block; color: var(--green); }
.htft-seg { min-width: 38px; }
.htft-flow__t small { display: block; }
.htft-flow__leg { display: none; margin: 6px 0 0; font-size: .8rem; color: var(--ink-soft); }
.htft-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin: 0 4px 0 8px; vertical-align: 0; }
.htft-dot:first-child { margin-left: 0; }
@media (max-width: 639px) { .htft-seg i { display: none; } .htft-seg { align-items: center; padding: 4px 2px; } .htft-seg b { font-size: .82rem; } .htft-flow__leg { display: block; } }
.htft-value__verdict { font-size: .95rem; }

/* ----- First screen: compact head so today's picks show without scrolling ----- */
.tpl-prediction .page-head--band { padding: 10px 0 12px; margin-bottom: 12px; }
.tpl-prediction .page-head .page-title, .tpl-prediction .page-head h1 { font-size: clamp(1.45rem, 4.4vw, 2.2rem); margin: .1em 0 .2em; }
.tpl-prediction .page-head .lead { font-size: 1rem; margin: 0 0 .4em; }
.tpl-prediction .page-head .meta-line { margin: 0; font-size: .82rem; }
.tpl-prediction .page-head .eyebrow { margin: 0; }
.tpl-prediction .notice { padding: 8px 12px 8px 36px; font-size: .82rem; margin-bottom: 10px; }
.tpl-prediction .notice::before { top: 7px; left: 13px; }
.tpl-prediction .entry { padding-top: 14px; }
@media (max-width: 639px) {
	.tpl-prediction .page-head .lead { display: none; }
	.tpl-prediction .crumbs ol { margin-bottom: 2px; font-size: .78rem; }
	.tpl-prediction .page-head .meta-line span + span { display: none; }
}
.htft-top { margin: 0 0 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.htft-top h2 { margin: 0; font-size: 1.25rem; }
.entry-content .htft-top h2::before { display: none; }
.htft-chip { display: inline-flex; padding: 2px 9px; border-radius: 999px; font-size: .78rem; font-weight: 800; background: var(--green-soft); color: var(--green); }
