/* ==========================================================================
   BizzPress — home page layer (assets/css/bp-home.css)
   Hero row · dark bands (Opinion / Markets / Technology / Personal Finance) · Latest News · Trending · Top
   Videos · alerts box · Industry / Other News cards · home sidebar widgets · push prompt restyle.
   Tokens and shared components come from bizzpress.css (docs/design-spec.md §1–§2); markup lives in
   index.php + includes/partials/home/*.php. Colours are tokens only; white/white-alpha is written literally
   on the black and teal surfaces, plus the one-off Trending gradient the spec names.
   ========================================================================== */

/* ---- 0. Page frame ------------------------------------------------------------------------- */
.bt-home { margin-top: 16px; }
.bt-home > * + * { margin-top: var(--bt-gap); }
.bt-home .bt-ad { min-height: 0; }
:where(.bt-home) :is(h2, h3, h4) { line-height: 1.3; }   /* beats style.css's bare h2/h3/h4 (800/1.25), loses to every class rule */
.bt-home .bt-list h3 a:hover, .bt-home .bt-story h3 a:hover, .bt-home .bt-leadrow h3 a:hover, .bt-home .bt-mini h3 a:hover { color: var(--bt-link); }
.bt-home .excerpt { color: var(--bt-muted); }
.bt-home :focus-visible { outline: 2px solid var(--bt-cyan); outline-offset: 2px; border-radius: 2px; }
.bt-home .bt-band :focus-visible, .bt-trending :focus-visible, .bt-videos :focus-visible, .bt-widget--dark :focus-visible, .bt-widget--teal :focus-visible, .bt-widget--promo :focus-visible { outline-color: #fff; }
.bt-home .bt-band .bt-card :focus-visible, .bt-home .bt-band .bt-idx-card :focus-visible, .bt-home .bt-band .bt-sector-strip :focus-visible { outline-color: var(--bt-cyan); }   /* white surfaces inside a band keep the cyan ring (spec §8) */

/* ---- 1. Empty state ------------------------------------------------------------------------- */
.bt-home-empty { padding: 56px 24px; text-align: center; }
.bt-home-empty__ic { display: block; width: 48px; height: 48px; margin: 0 auto 14px; color: var(--bt-cyan); }
.bt-home-empty h2 { margin-bottom: 10px; font-size: 24px; font-weight: 700; }
.bt-home-empty p { max-width: 560px; margin: 0 auto; color: var(--bt-muted); font-size: 16px; line-height: 1.7; }

/* ---- 2. Hero row ---------------------------------------------------------------------------- */
.bt-hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.bt-hero__title { margin: 0 0 12px; font-size: 24px; font-weight: 700; line-height: 26px; }
.bt-hero__title a:hover { color: var(--bt-link); }
.bt-hero__img { margin-bottom: 14px; }
.bt-hero__list .bt-cat { margin-bottom: 2px; }
.bt-hero__list h3 { font-size: 14px; font-weight: 500; line-height: 20px; }
.bt-hero__side > * + * { margin-top: 16px; }
.bt-hero__card { background: var(--bt-surface); border: 1px solid var(--bt-line); }
.bt-hero__card .bt-media { border-bottom: 1px solid var(--bt-line); }
.bt-hero__card .bt-cat { margin: 12px 14px 0; }
.bt-hero__card h3 { margin: 8px 14px 12px; font-size: 16px; font-weight: 600; line-height: 1.4; }
.bt-hero__card .bt-cat + h3 { margin-top: 2px; }
.bt-hero__card h3 a:hover { color: var(--bt-link); }
.bt-hero__livebar { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; }
.bt-hero__frame { border-bottom: 0; }
.bt-hero__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.bt-hero__more h3 { font-size: 16px; font-weight: 500; line-height: 24px; }
@media (max-width: 919px) {
  .bt-hero { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .bt-hero__title { font-size: 32px; line-height: 1.25; }
  .bt-hero__list.bt-list--sm .thumb { width: 120px; height: 80px; }
  .bt-hero__list h3 { font-size: 18px; font-weight: 700; line-height: 1.4; }
}

/* ---- 3. Dark bands: shared tweaks ---------------------------------------------------------- */
.bt-band .bt-card { color: var(--bt-ink); }               /* the band is white-on-teal; its cards go back to ink */
.bt-band__body > .bt-more a { color: #fff; }               /* body-level "View more" sits on teal (Markets, Technology) */
.bt-band__body > .bt-more a:hover { color: var(--bt-cyan); }   /* inside a .bt-card (Opinion, Personal Finance) it keeps bizzpress.css's --bt-link */
.bt-band .bt-band__body > .bt-more { margin-top: 4px; }
.bt-tab span { display: block; line-height: 1.3; }
.bt-circle-tabs a > span:last-child { line-height: 1.3; }

/* Opinion & Analysis */
.bt-opinion__lead .bt-tag { margin-bottom: 10px; }
.bt-opinion__lead .bt-by { display: flex; margin-top: 2px; font-size: 13px; }
.bt-opinion__lead .bt-by svg { width: 16px; height: 16px; }
.bt-opinion__lead h3 { margin: 8px 0; font-size: 20px; font-weight: 700; line-height: 1.3; }
.bt-opinion__lead h3 a:hover { color: var(--bt-link); }
.bt-opinion__lead .excerpt { font-size: 15px; line-height: 1.55; }
.bt-opinion__grid { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--bt-line); }
.bt-opinion__grid .bt-story h3 { margin-top: 10px; font-size: 16px; font-weight: 700; line-height: 1.4; }
.bt-opinion__grid .bt-by { margin-top: 6px; }

/* Split cards (Markets: lead 5 / headlines 6 · Technology: big story / medium rows) */
.bt-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px; align-items: start; }
.bt-split--tech { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.bt-split--solo, .bt-split--tech.bt-split--solo { grid-template-columns: minmax(0, 1fr); }   /* lead only (category with one story) */
.bt-split__lead .bt-tag { margin-bottom: 10px; }
.bt-split__lead h3 { margin: 12px 0 6px; font-size: 20px; font-weight: 700; line-height: 1.3; }
.bt-split__lead h3 a:hover { color: var(--bt-link); }
.bt-split__lead .excerpt { margin: 0; font-size: 14px; line-height: 1.5; }
.bt-list--plain li { display: block; padding: 12px 0; }
.bt-list--plain li:first-child { padding-top: 0; }
.bt-list--plain h3 { font-size: 16px; font-weight: 700; line-height: 1.4; }
.bt-split__side.bt-list--md .thumb { width: 100px; height: 66px; }
.bt-split__side h3 { font-size: 16px; line-height: 1.4; }
@media (max-width: 760px) { .bt-split, .bt-split--tech { grid-template-columns: minmax(0, 1fr); gap: 16px; } .bt-split__list li:first-child { padding-top: 12px; border-top: 1px solid var(--bt-line); } }

/* Lead row + 2×2 mini grid (Personal Finance · Industry News · Other News) */
.bt-pf__card > .bt-tag { margin-bottom: 4px; }
.bt-leadrow { display: flex; gap: 16px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--bt-line); }
.bt-leadrow .thumb { flex: 0 0 120px; width: 120px; height: 80px; overflow: hidden; background: var(--surface-2); }
.bt-leadrow .thumb img { width: 100%; height: 100%; object-fit: cover; }
.bt-leadrow .txt { min-width: 0; flex: 1; }
.bt-leadrow .bt-cat { margin-bottom: 2px; }
.bt-leadrow h3 { font-size: 18px; font-weight: 700; line-height: 26px; }
.bt-leadrow .excerpt { margin: 6px 0 0; font-size: 14px; line-height: 1.5; }
.bt-mini { gap: 0 28px; }
.bt-mini article { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--bt-line); }
.bt-mini .thumb { flex: 0 0 80px; width: 80px; height: 56px; overflow: hidden; background: var(--surface-2); }
.bt-mini .thumb img { width: 100%; height: 100%; object-fit: cover; }
.bt-mini .txt { min-width: 0; flex: 1; }
.bt-mini .bt-cat { margin-bottom: 1px; }
.bt-mini h3 { font-size: 14px; font-weight: 500; line-height: 20px; }
.bt-mini article:nth-last-child(-n+2) { border-bottom: 0; }
@media (max-width: 760px) { .bt-mini article:nth-last-child(2) { border-bottom: 1px solid var(--bt-line); } .bt-leadrow h3 { font-size: 16px; line-height: 24px; } }

/* ---- 4. Latest News ------------------------------------------------------------------------- */
.bt-latest .bt-chip-row { padding-bottom: 0; }
.bt-latest__list h3 { font-size: 16px; font-weight: 400; line-height: 24px; }
.bt-latest__list .bt-cat { margin-bottom: 2px; }

/* ---- 5. Trending ---------------------------------------------------------------------------- */
.bt-trending { background: var(--bt-black); color: #fff; }
.bt-trending__head { padding: 16px 20px; background: linear-gradient(90deg, #0b2550, #1b6fd3); }
.bt-trending__head h2 { font-size: 30px; font-weight: 700; line-height: 30px; letter-spacing: .02em; text-transform: uppercase; color: #fff; }
.bt-trending__body { padding: 26px 20px 10px; }
.bt-trending .bt-numbered article::before { -webkit-text-stroke: 2px var(--bt-cyan); }
.bt-trending .bt-more { padding-top: 18px; }
@media (max-width: 760px) { .bt-trending__head { padding: 12px 16px; } .bt-trending__head h2 { font-size: 24px; line-height: 1.1; } .bt-trending__body { padding: 20px 16px 8px; } }

/* ---- 6. Top Videos -------------------------------------------------------------------------- */
.bt-videos { padding: 16px 20px 10px; background: var(--bt-black); color: #fff; }
.bt-chip--onblack { padding-left: 0; background: transparent; color: #fff; }
.bt-videos__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 14px; }
.bt-video h3 { margin-top: 10px; font-size: 14px; font-weight: 600; line-height: 1.4; color: #fff; }
.bt-video h3 a { color: #fff; }
.bt-video h3 a:hover { color: var(--bt-cyan); }
.bt-video .bt-play { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
.bt-video .bt-play svg { width: 16px; height: 16px; }
.bt-videos .bt-more { padding-top: 16px; }
@media (max-width: 1024px) { .bt-videos__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .bt-videos { padding: 14px 16px 8px; } }

/* ---- 7. Alerts box (#alerts) ---------------------------------------------------------------- */
.bt-alerts { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 24px; align-items: center; padding: 22px 24px; background: var(--bt-cyan-soft); color: var(--bt-ink); border: 1px solid var(--bt-line); }
.bt-alerts__title { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; line-height: 1.2; }
.bt-alerts__title i { width: 10px; height: 10px; background: var(--bt-cyan); flex-shrink: 0; }
.bt-alerts__text { margin: 0; font-size: 15px; line-height: 1.5; }
.bt-alerts .bt-btn { grid-column: 2; grid-row: 1 / span 2; }
.bt-alerts .bt-btn svg { width: 16px; height: 16px; }
.bt-alerts__note { grid-column: 1 / -1; margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--bt-muted); }
.bt-alerts__note.is-ok { color: var(--bt-up); font-weight: 500; }
.bt-alerts__note[hidden] { display: none; }
@media (max-width: 600px) {
  .bt-alerts { grid-template-columns: minmax(0, 1fr); padding: 18px 16px; }
  .bt-alerts .bt-btn { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 6px; }
}

/* ---- 8. Industry News / Other News cards ---------------------------------------------------- */
.bt-sec__head { padding: 16px 20px; background: var(--bt-teal); color: #fff; }
.bt-sec__head h2 { font-size: 24px; font-weight: 700; line-height: 1.2; text-transform: uppercase; color: #fff; }
.bt-sec .bt-circle-tabs { border-bottom: 1px solid var(--bt-line); padding: 18px 16px 14px; }
.bt-sec__body { padding: 4px 18px 16px; }
.bt-sec__body > .bt-sector-strip { margin-top: 12px; }
.bt-sec__body > .bt-leadrow:first-child { padding-top: 12px; }
.bt-sec__body .bt-more { padding-bottom: 0; }
@media (max-width: 760px) { .bt-sec__head { padding: 12px 16px; } .bt-sec__head h2 { font-size: 20px; } .bt-sec__body { padding: 4px 14px 14px; } }

/* ---- 9. Home sidebar widgets ---------------------------------------------------------------- */
.bt-follow .dyn-follow { gap: 8px; }
.bt-follow .dyn-follow.sm .fl { width: 34px; height: 34px; background: rgba(255, 255, 255, .12); }
.bt-follow .dyn-follow.sm .fl svg { width: 16px; height: 16px; }
.bt-follow .dyn-follow.sm .fl:hover { background: var(--bt-cyan); transform: none; }
.bt-ws__head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.bt-ws__head svg { width: 18px; height: 18px; color: var(--bt-cyan); }
.bt-ws__cover { aspect-ratio: 4 / 5; }
.bt-ws__title { margin: 12px 0 10px; font-size: 15px; font-weight: 600; line-height: 1.4; color: #fff; }
.bt-ws__title a { color: #fff; }
.bt-ws__title a:hover { color: var(--bt-cyan); }
.bt-ws__links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; font-size: 13px; font-weight: 500; }
.bt-ws__links a { display: inline-flex; align-items: center; gap: 2px; color: var(--bt-cyan); }
.bt-ws__links a:hover { text-decoration: underline; }
.bt-ws__links svg { width: 14px; height: 14px; }
.bt-stocks .bt-list--plain li { padding: 10px 0; }
.bt-stocks .bt-list--plain li:first-child { padding-top: 0; }
.bt-inpics__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bt-inpics__grid a { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface-2); }
.bt-inpics__grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.bt-inpics__grid a:hover img { transform: scale(1.04); }
.bt-inpics__t { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 8px 8px; background: linear-gradient(0deg, rgba(0, 0, 0, .82), rgba(0, 0, 0, 0)); color: #fff; font-size: 12px; font-weight: 600; line-height: 1.3; }
.bt-widget--promo p { margin: 0 0 14px; color: #fff; font-size: 13px; line-height: 1.5; }
.bt-widget--promo .bt-btn svg { width: 16px; height: 16px; }
@media (max-width: 1024px) { .bt-home__side .bt-widget--sticky { position: static; } }

/* ---- 10. Push prompt + toast (push.js; base rules in dynamic.css) --------------------------- */
.push-ask { background: var(--bt-surface); color: var(--bt-ink); border: 1px solid var(--bt-line); border-radius: 6px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); font-family: var(--bt-font); }
.push-ask-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--bt-cyan-soft); color: var(--bt-cyan); }
.push-ask-ic svg { width: 22px; height: 22px; }
.push-ask-tx span { color: var(--bt-muted); }
.push-ask button { border-radius: 4px; border-color: var(--bt-line); font-weight: 600; }
.push-ask .push-yes { background: var(--bt-cyan); border-color: var(--bt-cyan); color: #fff; }
.push-ask .push-yes:hover { background: var(--bt-link); border-color: var(--bt-link); }
.push-toast { background: var(--bt-ink); color: var(--bt-surface); border-radius: 4px; font-family: var(--bt-font); }
[data-theme="dark"] .push-toast { background: var(--bt-cyan); color: #fff; }

/* ---- 11. Motion preferences ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) { .bt-inpics__grid img { transition: none; } }
