/* v6.30: matched homepage commercial panels + reliable standalone-page scrolling. */
body.o112cp-body .o112cp-home .o112cp-commercial-row {
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:16px!important;
  align-items:stretch!important;
}
body.o112cp-body .o112cp-home .o112cp-commercial-card {
  display:flex!important; flex-direction:column!important; min-width:0!important;
  width:100%!important; max-width:none!important; margin:0!important;
  padding:16px!important; background:#0b2431!important;
  color:#eff8ff!important; border:1px solid #325268!important;
  border-radius:16px!important; box-sizing:border-box!important;
}
body.o112cp-body .o112cp-commercial-card .o112cp-commercial-heading,
body.o112cp-body .o112cp-commercial-card .o112s-section-head {
  display:flex!important; justify-content:space-between!important;
  align-items:center!important; gap:12px!important; min-height:35px!important;
  padding:0 0 12px!important; margin:0 0 12px!important;
  border-bottom:1px solid rgba(151,202,226,.16)!important;
}
body.o112cp-body .o112cp-commercial-card .o112cp-commercial-heading h2,
body.o112cp-body .o112cp-commercial-card .o112s-section-head h2 {
  margin:0!important; font-size:1.08rem!important; line-height:1.3!important;
  font-weight:750!important; color:#eff8ff!important;
}
body.o112cp-body .o112cp-commercial-heading span {font-size:10px;letter-spacing:.08em;color:#91aab9}
body.o112cp-body .o112cp-home-sponsor>.o112s-home {
  flex:1 1 auto!important; border:0!important; padding:0!important;
  background:transparent!important; border-radius:0!important; margin:0!important;
}
body.o112cp-body .o112cp-home-ad>.o112-direct-ad {
  flex:1 1 auto!important; border:0!important; padding:0!important;
  margin:0!important; background:transparent!important; border-radius:0!important;
}
body.o112cp-body .o112cp-home-ad .o112-direct-ad-label {display:none!important}
body.o112cp-body .o112cp-commercial-card .o112-direct-ad-creative,
body.o112cp-body .o112cp-commercial-card .o112s-carousel{width:100%!important;min-width:0!important;max-width:none!important}
body.o112cp-body .o112cp-commercial-card .o112-direct-ad-option img,
body.o112cp-body .o112cp-commercial-card .o112-direct-ad-option video,
body.o112cp-body .o112cp-commercial-card .o112s-creative img,
body.o112cp-body .o112cp-commercial-card .o112s-creative video {
  max-height:260px!important;object-fit:contain!important;
}
@media(max-width:880px){
  body.o112cp-body .o112cp-home .o112cp-commercial-row{grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
}

/* Ordinary public WordPress pages are *documents*, not fixed-height map apps.
   Give the iframe document one natural vertical scroll root. The map and
   history/monitor apps retain their established independent scrollers. */
html:has(body.odin112-next-body.o112-cc-embed.page:not(.o112-history-page-body):not(.o112-history-body):not(.o112-monitor-page)),
body.odin112-next-body.o112-cc-embed.page:not(.o112-history-page-body):not(.o112-history-body):not(.o112-monitor-page) {
  position:static!important; inset:auto!important;
  width:100%!important;height:auto!important;min-height:100%!important;
  max-height:none!important;overflow-x:hidden!important;overflow-y:auto!important;
  overscroll-behavior-y:auto!important;
  -webkit-overflow-scrolling:touch!important;
}
body.odin112-next-body.o112-cc-embed.page:not(.o112-history-page-body):not(.o112-history-body):not(.o112-monitor-page) > .o112-content-app,
body.odin112-next-body.o112-cc-embed.page:not(.o112-history-page-body):not(.o112-history-body):not(.o112-monitor-page) > .o112-app {
  display:block!important;position:relative!important;
  width:100%!important;height:auto!important;min-height:100%!important;
  max-height:none!important;overflow:visible!important;
}
body.odin112-next-body.o112-cc-embed.page:not(.o112-history-page-body):not(.o112-history-body):not(.o112-monitor-page) .o112-content-workspace {
  display:block!important;position:relative!important;inset:auto!important;
  width:100%!important;height:auto!important;min-height:0!important;
  max-height:none!important;overflow:visible!important;
  padding-bottom:max(30px,env(safe-area-inset-bottom))!important;
  -webkit-overflow-scrolling:touch!important;
}
body.odin112-next-body.o112-cc-embed.page:not(.o112-history-page-body):not(.o112-history-body):not(.o112-monitor-page) .o112-content-body,
body.odin112-next-body.o112-cc-embed.page:not(.o112-history-page-body):not(.o112-history-body):not(.o112-monitor-page) .o112-history-page,
body.odin112-next-body.o112-cc-embed.page:not(.o112-history-page-body):not(.o112-history-body):not(.o112-monitor-page) .o112-page-content {
  display:block!important;position:relative!important;
  width:100%!important;height:auto!important;min-height:0!important;
  max-height:none!important;overflow:visible!important;
}
@media(max-width:780px){
  /* Keep the iframe within the viewport while the inner page owns scrolling. */
  body.o112cp-body .o112cp.is-content-view .o112cp-workspace,
  body.o112cp-body .o112cp.is-content-view .o112cp-main,
  body.o112cp-body .o112cp.is-content-view .o112cp-view,
  body.o112cp-body .o112cp.is-content-view .o112cp-frame-wrap{
    min-height:0!important;
  }
  body.o112cp-body .o112cp.is-content-view .o112cp-frame-wrap iframe{
    display:block!important;touch-action:pan-x pan-y!important;
    -webkit-overflow-scrolling:touch!important;
  }
}
