/* House Ads — styles. Pair with house-ads.js */
.hx { display: block; margin: 22px 0; }
.hx-ctx-slot { margin: 14px 0; }
.hx-ctx-slot a { color: inherit; text-decoration: none; }
.hx a { color: inherit; text-decoration: none; }
.hx a:focus-visible, .hx-ticker a:focus-visible, .hx-sticky a:focus-visible, .hx-pop a:focus-visible { outline: 3px solid #F2A900; outline-offset: 3px; }
.hx img { display: block; max-width: 100%; height: auto; }
.hx-tag { position: absolute; top: 6px; right: 8px; font: 600 10px/1 system-ui, sans-serif; background: rgba(255,255,255,.92); color: #444; padding: 3px 6px; border-radius: 4px; pointer-events: none; }

.hx-btn { display: inline-block; background: var(--c, #C81D25); color: #fff; font-weight: 800; padding: 11px 20px; border-radius: 999px; font-size: 1rem; line-height: 1.1; box-shadow: 0 4px 0 rgba(0,0,0,.22); white-space: nowrap; }
.hx-btn.hx-sm { padding: 8px 14px; font-size: .9rem; }
a:hover .hx-btn { filter: brightness(1.08); transform: translateY(-1px); }
a:active .hx-btn { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0,0,0,.22); }
.hx-dom { display: block; font-weight: 700; font-size: .85rem; opacity: .75; margin-top: 6px; }
.hx-odia { display: block; font-weight: 800; color: var(--c); font-size: 1.05rem; }
.hx-n-emoji { font-size: 1.8rem; line-height: 1; }

/* wide image banner */
.hx-banner { position: relative; display: block; border-radius: 14px; overflow: hidden; box-shadow: 0 6px 18px rgba(20,40,20,.18); background: #fff; transition: transform .15s; }
.hx-banner:hover { transform: translateY(-2px); }
.hx-k-banner { transition: opacity .25s; }
.hx-swap { opacity: 0; }

/* composed banner (PM POSHAN) */
.hx-built { display: grid; grid-template-columns: 200px 1fr; align-items: center; gap: 18px; padding: 12px; background: linear-gradient(100deg, #fff 55%, #FFF4C2); }
.hx-built-img img { border-radius: 10px; }
.hx-built-body strong { display: block; font-size: 1.45rem; line-height: 1.15; margin: 4px 0 6px; color: #1B2A1F; }
.hx-built-sub { display: block; font-size: .95rem; color: #3d4a40; margin-bottom: 10px; }

/* feature (art + copy) */
.hx-feature { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; align-items: center; background: #fff; border-radius: 16px; padding: 14px; box-shadow: 0 6px 18px rgba(20,40,20,.16); border: 2px solid #F2A900; }
.hx-feature.hx-sq { grid-template-columns: 300px 1fr; }
.hx-f-art img { border-radius: 10px; }
.hx-f-hook { display: block; font-size: 1.5rem; line-height: 1.15; margin: 4px 0 8px; color: #1B2A1F; }
.hx-f-body ul { list-style: none; padding: 0; margin: 0 0 14px; }
.hx-f-body li { padding-left: 26px; position: relative; margin: 4px 0; font-weight: 600; }
.hx-f-body li::before { content: '✔'; position: absolute; left: 0; top: 0; color: #fff; background: #0F7A3D; width: 19px; height: 19px; border-radius: 50%; font-size: 11px; display: grid; place-items: center; }

/* native (KPI-sized) */
.hx-native { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; height: 100%; padding: 22px 16px; border-radius: 15px; background: #fff; border: 2px dashed #F2A900; }
.hx-n-hook { font-weight: 800; font-size: 1.05rem; line-height: 1.2; color: #1B2A1F; }
.kpi-section .hx { margin: 0; }

/* contextual after-calculation */
.hx-context { display: flex; align-items: center; gap: 14px; background: #FFF8DB; border: 2px solid #F2A900; border-radius: 14px; padding: 14px 16px; }
.hx-ctx-txt { flex: 1; font-size: 1.02rem; }
.hx-ctx-txt strong { color: #0F7A3D; }

/* rails (wide screens only) */
.hx-rails { display: none; }
@media (min-width: 1500px) {
  .hx-rails { display: block; }
  .hx-rails .hx { position: fixed; top: 70px; width: 170px; margin: 0; z-index: 5; }
  .hx-rails .hx[data-side="left"] { left: max(10px, calc(50% - 550px - 195px)); }
  .hx-rails .hx[data-side="right"] { right: max(10px, calc(50% - 550px - 195px)); }
}
.hx-rail { position: relative; display: block; border-radius: 12px; overflow: hidden; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.hx-rail-stack { background: #fff; padding: 10px; display: flex; flex-direction: column; gap: 10px; }
.hx-rail-title { font-weight: 800; font-size: .9rem; text-align: center; color: #145A32; }
.hx-rail-card { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px; border-radius: 10px; background: #F3F7F1; font-size: .85rem; line-height: 1.25; }
.hx-rail-card strong { font-size: .95rem; }
.hx-rail-card .hx-btn { margin-top: 4px; font-size: .8rem; padding: 6px 10px; }

/* tool grid */
.hx-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.hx-tool { display: flex; flex-direction: column; gap: 6px; background: #fff; border-radius: 14px; padding: 16px; box-shadow: 0 4px 14px rgba(20,40,20,.12); }
.hx-tool-top { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--c); font-size: 1.05rem; }
.hx-tool-hook { font-weight: 800; font-size: 1.15rem; line-height: 1.2; color: #1B2A1F; }
.hx-tool-sub { font-size: .92rem; color: #4a584d; flex: 1; }
.hx-tool .hx-btn { align-self: flex-start; }

/* ticker */
.hx-ticker { position: sticky; top: 0; z-index: 50; background: #C81D25; color: #fff; overflow: hidden; white-space: nowrap; font-weight: 700; font-size: .95rem; margin: -20px -20px 16px; }
.hx-ticker-track { display: inline-block; padding: 8px 0; animation: hx-scroll 60s linear infinite; }
.hx-ticker:hover .hx-ticker-track { animation-play-state: paused; }
.hx-tick { color: #fff; text-decoration: none; padding: 0 6px; }
.hx-tick:hover { text-decoration: underline; color: #FFE680; }
.hx-dot { color: #FFE680; padding: 0 10px; }
@keyframes hx-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* sticky bottom */
.hx-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; border-top: 4px solid var(--c, #C81D25); box-shadow: 0 -6px 20px rgba(0,0,0,.18); padding-bottom: env(safe-area-inset-bottom, 0); }
.hx-sticky-link { display: flex; align-items: center; gap: 12px; max-width: 1100px; margin: 0 auto; padding: 10px 48px 10px 16px; color: #1B2A1F; text-decoration: none; }
.hx-sticky-txt { flex: 1; display: flex; flex-direction: column; line-height: 1.2; }
.hx-sticky-txt strong { font-size: 1rem; }
.hx-sticky-txt span { font-size: .8rem; opacity: .7; font-weight: 700; }
body.hx-has-sticky { padding-bottom: 90px !important; }
.hx-x { position: absolute; top: 50%; right: 10px; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; border: 0; background: #eee; color: #333; font-size: 20px; line-height: 1; cursor: pointer; }
.hx-x:focus-visible { outline: 3px solid #F2A900; }

/* popup */
.hx-pop { position: fixed; inset: 0; z-index: 100; background: rgba(10,25,15,.6); display: grid; place-items: center; padding: 16px; animation: hx-in .25s ease-out; }
.hx-pop-box { position: relative; width: min(760px, 100%); max-height: 92vh; overflow: auto; background: #fff; border-radius: 18px; padding: 44px 16px 16px; }
.hx-pop-x { top: 10px; transform: none; }
.hx-pop-q { display: block; text-align: center; font-weight: 800; font-size: 1.1rem; margin-bottom: 10px; color: #145A32; }
.hx-pop .hx-feature { box-shadow: none; }
@keyframes hx-in { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 700px) {
  .hx-built, .hx-feature, .hx-feature.hx-sq { grid-template-columns: 1fr; }
  .hx-built-img { max-width: 240px; margin: 0 auto; }
  .hx-feature.hx-sq .hx-f-art { max-width: 280px; margin: 0 auto; }
  .hx-f-hook, .hx-built-body strong { font-size: 1.25rem; }
  .hx-context { flex-direction: column; text-align: center; }
  .hx-sticky-link .hx-n-emoji { display: none; }
  .hx-sticky-txt strong { font-size: .9rem; }
  .hx-ticker { margin: -10px -10px 12px; }
  .hx-banner .hx-tag { font-size: 8px; padding: 2px 4px; top: 3px; right: 4px; }
  .header .ladoo { font-size: 2.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hx-ticker-track { animation-duration: 180s; }
  .hx-pop, .hx-k-banner { animation: none; transition: none; }
}
