/**
 * Homepage vertical rhythm — ONLY body.page-hero-zone-b #lotto-result.index-home-band.
 * Lang-specific top/trail gaps (TH vs other): index.php #index-home-rhythm-critical only.
 */

body.page-hero-zone-b main#main-content > #lotto-result.index-home-band.index-hero-band {
    display: flex !important;
    flex-direction: column !important;
    row-gap: 0 !important;
    padding-bottom: 0 !important;
    box-sizing: border-box !important;
    --index-hero-inner-gap: 0.5rem;
    --index-hero-clocks-to-cards: 0.375rem;
    --index-hero-ticker-to-latest: 0.375rem;
    --index-home-ticker-pad-y: 0.5rem;
}

body.page-hero-zone-b main#main-content #lotto-result.index-home-band .index-hero-head {
    gap: var(--index-hero-inner-gap) !important;
}

body.page-hero-zone-b main#main-content #lotto-result.index-home-band .index-hero-head > div.mb-2 {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 3.25rem !important;
    margin: 0 !important;
}

@media (min-width: 640px) {
    body.page-hero-zone-b main#main-content #lotto-result.index-home-band .index-hero-head > div.mb-2 {
        min-height: 3rem !important;
    }
}

/* แถบเวลา — ไม่ใส่ trail ที่นี่ (ย้ายไป padding-top ของ .index-home-hero-dynamic ให้คู่ margin-bottom ของ ticker) */
body.page-hero-zone-b main#main-content #lotto-result.index-home-band .index-hero-head > .world-clocks-wrap {
    margin-top: 0 !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

body.page-hero-zone-b main#main-content #lotto-result.index-home-band .world-clocks-inner {
    display: flex !important;
    align-items: center !important;
    min-height: 0 !important;
}

body.page-hero-zone-b main#main-content #lotto-result.index-home-band .world-clocks-wrap .wclk-item {
    padding-top: var(--index-home-ticker-pad-y) !important;
    padding-bottom: var(--index-home-ticker-pad-y) !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    box-sizing: border-box !important;
}

body.page-hero-zone-b main#main-content #lotto-result.index-home-band .index-home-hero-dynamic,
body.page-hero-zone-b main#main-content #lotto-result.index-home-band > #indexHomeHeroMount.index-home-hero-dynamic {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    width: 100% !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: var(--index-home-ticker-trail-gap) !important;
    overflow: visible !important;
    box-sizing: border-box !important;
}

/* การ์ดผลหวยเลื่อน — ภาษาอื่น; ไทย: index.php #index-home-rhythm-critical */
html:not([lang="th"]) body.page-hero-zone-b main#main-content #lotto-result.index-home-band .index-home-hero-dynamic .featured-solo-wrap {
    margin-top: -0.5rem !important;
    padding-top: 0 !important;
    padding-bottom: 0.25rem !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
}

body.page-hero-zone-b main#main-content #lotto-result.index-home-band .featured-solo-track {
    align-items: stretch !important;
    padding-bottom: 0 !important;
}

body.page-hero-zone-b #lotto-result.index-home-band .featured-solo-card {
    min-height: 22rem !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

/* แถบน้ำเงิน — trail ขาว = margin-bottom (คู่กับ padding-bottom ของ .world-clocks-wrap) */
body.page-hero-zone-b main#main-content #lotto-result.index-home-band .index-home-hero-dynamic > .lotto-ticker-wrap {
    margin-top: var(--index-hero-cards-to-ticker) !important;
    margin-bottom: var(--index-home-ticker-trail-gap) !important;
    padding-top: var(--index-home-ticker-pad-y) !important;
    padding-bottom: var(--index-home-ticker-pad-y) !important;
    flex-shrink: 0;
    box-sizing: border-box !important;
}

body.page-hero-zone-b main#main-content #lotto-result.index-home-band .lotto-ticker-inner {
    display: flex !important;
    align-items: center !important;
    min-height: 1.75rem !important;
}

/* ระยะล่างแถบน้ำเงิน → section: ใช้ margin-bottom ของ ticker เท่านั้น (ไม่แยก :has แบนเนอร์) */
body.page-hero-zone-b main#main-content > #lotto-result.index-home-band + section.lotto-latest-section {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

body.page-hero-zone-b main#main-content #lotto-result.index-home-band + section.lotto-latest-section > .max-w-7xl > .index-banners-stack:first-child {
    margin-top: 0 !important;
    margin-bottom: 0.25rem !important;
}

body.page-hero-zone-b main#main-content #lotto-result.index-home-band + section.lotto-latest-section .index-banners-stack {
    margin-top: 0 !important;
}

body.page-hero-zone-b main#main-content #lotto-result.index-home-band + section.lotto-latest-section > .max-w-7xl > .lotto-latest-head:first-child {
    margin-top: 0 !important;
}

body.page-hero-zone-b main#main-content #lotto-result.index-home-band + section.lotto-latest-section .index-banners-stack.banner-stack--desktop {
    display: flex !important;
}

@media (max-width: 1023px) and (not ((hover: hover) and (pointer: fine))) {
    body.page-hero-zone-b main#main-content #lotto-result.index-home-band + section.lotto-latest-section .index-banners-stack:not(.banner-stack--desktop) {
        display: flex !important;
    }
}

body.page-hero-zone-b main#main-content #lotto-result.index-home-band + section.lotto-latest-section .lotto-latest-head {
    margin: 0 0 0.75rem 0 !important;
    padding: 0 !important;
    gap: 0.625rem;
}

body.page-hero-zone-b main#main-content #lotto-result.index-home-band + section.lotto-latest-section .lotto-latest-title {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    min-height: 3.25rem !important;
    height: 3.25rem !important;
    max-height: 3.25rem !important;
    padding: 0 1.75rem !important;
    margin: 0 !important;
    line-height: 1.25 !important;
    overflow: hidden;
}

body.page-hero-zone-b main#main-content #lotto-result.index-home-band + section.lotto-latest-section .lotto-latest-head-meta {
    min-height: 0 !important;
    margin: 0;
    gap: 0.5rem;
}

body.page-hero-zone-b main#main-content #lotto-result.index-home-band .index-home-skeleton--hero {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
}

body.page-hero-zone-b main#main-content #lotto-result.index-home-band .index-home-skeleton-pulse--ticker {
    margin-top: var(--index-hero-cards-to-ticker);
}

body.page-hero-zone-b #lotto-result.index-home-band .lotto-ticker-item {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 1.4rem !important;
    padding-right: 1.4rem !important;
    line-height: 1.2 !important;
    box-sizing: border-box !important;
}

body.page-hero-zone-b #lotto-result.index-home-band .lotto-ticker-item .t-name,
body.page-hero-zone-b #lotto-result.index-home-band .lotto-ticker-item .t-top3,
body.page-hero-zone-b #lotto-result.index-home-band .lotto-ticker-item .t-bot2 {
    display: inline-flex !important;
    align-items: center !important;
    line-height: 1 !important;
}
