/* Public ad creative styles; the full original admin CSS is loaded only in wp-admin. */
.mima-ad-slot{position:relative;width:100%;max-width:100%;margin:20px auto;text-align:center;min-height:1px;clear:both}
.mima-ad-slot.is-loading{min-height:70px;display:flex;align-items:center;justify-content:center}
.mima-ad-loading{display:none;width:24px;height:24px;border:2px solid #e2e8f0;border-top-color:#6366f1;border-radius:50%;animation:mima-spin .7s linear infinite}
.mima-ad-slot.is-loading .mima-ad-loading{display:inline-block}
.mima-ad-inner{display:inline-flex;max-width:100%;flex-direction:column;align-items:flex-end;gap:4px}
.mima-ad-label{font:600 9px/1.1 system-ui,-apple-system,"Segoe UI",sans-serif;letter-spacing:.07em;text-transform:uppercase;color:#94a3b8}
.mima-ad-slot a{display:block;max-width:100%;line-height:0}
.mima-ad-slot img{display:block;max-width:100%;height:auto;margin:auto;border:0}
.mima-ad-in-content{margin:28px auto}
.mima-ad-admin-empty{padding:12px;border:1px dashed #cbd5e1;background:#f8fafc;color:#64748b;text-align:center;font:12px system-ui;border-radius:8px}
@keyframes mima-spin{to{transform:rotate(360deg)}}
.mima-ad-shell{position:relative;display:inline-block;max-width:100%}
.mima-ad-slot video{display:block;max-width:100%;height:auto;margin:auto;border:0;background:#000}
.mima-ad-close{position:absolute;z-index:5;right:-10px;top:-10px;width:30px;height:30px;border:1px solid rgba(15,23,42,.14);border-radius:999px;background:#fff;color:#0f172a;box-shadow:0 6px 18px rgba(15,23,42,.18);font:700 20px/27px system-ui;cursor:pointer;padding:0}
.mima-ad-close:hover{background:#f8fafc}
.mima-ad-slot.is-intrusive{z-index:99990;margin:0!important;clear:none}
.mima-ad-slot.is-intrusive .mima-ad-shell{background:#fff;border-radius:14px;padding:8px;box-shadow:0 22px 70px rgba(15,23,42,.28)}
.mima-ad-slot.is-intrusive .mima-ad-label{padding:0 3px}
.mima-format-sticky_top,.mima-format-slide_top{position:fixed!important;left:50%;top:12px;transform:translateX(-50%);width:min(970px,calc(100vw - 28px));z-index:99990}
.mima-format-sticky_bottom,.mima-format-slide_bottom{position:fixed!important;left:50%;bottom:12px;transform:translateX(-50%);width:min(970px,calc(100vw - 28px));z-index:99990}
.mima-format-slide_top{animation:sma-slide-top .42s cubic-bezier(.2,.9,.2,1)}
.mima-format-slide_bottom{animation:sma-slide-bottom .42s cubic-bezier(.2,.9,.2,1)}
.mima-format-popup{position:fixed!important;inset:0;display:flex!important;align-items:center;justify-content:center;width:100%!important;max-width:none!important;z-index:99995;background:rgba(2,6,23,.62);backdrop-filter:blur(5px);padding:24px;margin:0!important}
.mima-format-popup .mima-ad-shell{max-width:min(920px,calc(100vw - 48px));max-height:calc(100vh - 48px);overflow:visible}
.mima-format-popup img,.mima-format-popup video{max-height:calc(100vh - 90px);object-fit:contain}
.mima-ad-slot.is-popup-dismissed{display:none!important}
@keyframes sma-slide-top{from{opacity:0;transform:translate(-50%,-110%)}to{opacity:1;transform:translate(-50%,0)}}
@keyframes sma-slide-bottom{from{opacity:0;transform:translate(-50%,110%)}to{opacity:1;transform:translate(-50%,0)}}
@media(max-width:780px){.mima-format-sticky_top,.mima-format-slide_top{top:8px}
.mima-format-sticky_bottom,.mima-format-slide_bottom{bottom:8px}}
@media(max-width:480px){.mima-format-popup{padding:15px}
.mima-format-popup .mima-ad-shell{max-width:calc(100vw - 30px)}}
.mima-ad-admin-empty{border-radius:14px}
.mima-ad-slot[data-has-fallback="0"]:not(.is-filled){margin:0 auto;min-height:1px;height:1px;overflow:hidden}
.mima-ad-slot[data-has-fallback="0"].is-loading{display:block}
.mima-ad-slot[data-has-fallback="0"].is-loading .mima-ad-loading{display:none}
.mima-ad-slot.is-empty{display:none!important;min-height:0!important;height:0!important;margin:0!important;padding:0!important}
.mima-political-label{box-sizing:border-box;display:flex;flex-wrap:wrap;align-items:center;gap:3px 9px;width:100%;max-width:100%;padding:6px 8px;text-align:left;background:#f7fafe;border:1px solid #bdcee1;border-radius:6px;color:#18283d;font:500 12px/1.35 system-ui,-apple-system,"Segoe UI",sans-serif;overflow-wrap:anywhere}
.mima-political-label strong{font-weight:800;color:#152842;letter-spacing:.015em}
.mima-ad-slot .mima-political-label a{display:inline;max-width:none;line-height:inherit;text-decoration:underline;text-underline-offset:2px;font:700 12px/1.35 system-ui,-apple-system,"Segoe UI",sans-serif;color:#1559a6}
.mima-ad-slot .mima-political-label a:focus-visible{outline:2px solid #1559a6;outline-offset:2px}

/* Publisher: matching the compact Infoden mobile header slot.
   Only the explicit normal-flow theme-managed header slot is affected. */
@media (max-width:780px) {
  .nm-ad-area--header.nm-ad-host .mima-ad-slot[data-mima-ad="1"]:not(.is-intrusive) {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0 auto;
    padding: 0;
    clear: none;
  }
  .nm-ad-area--header.nm-ad-host .mima-ad-slot[data-mima-ad="1"].is-loading:not(.is-intrusive) {
    min-height: 0;
  }
  .nm-ad-area--header.nm-ad-host .mima-ad-slot:not(.is-intrusive) .mima-ad-shell,
  .nm-ad-area--header.nm-ad-host .mima-ad-slot:not(.is-intrusive) .mima-ad-inner {
    box-sizing: border-box;
    max-width: 100%;
    max-height: 100%;
  }
  /* Own paid creatives scale proportionally to fit; legal disclosure labels remain intact. */
  .nm-ad-area--header.nm-ad-host .mima-ad-slot:not(.is-intrusive) img,
  .nm-ad-area--header.nm-ad-host .mima-ad-slot:not(.is-intrusive) video {
    max-width: 100%;
    max-height: calc(min(320px, 100vw - 24px) - 26px);
    width: auto;
    height: auto;
    object-fit: contain;
  }
}

/* Header AdSense: always give the empty INS a measurable width inside flex. */
@media (max-width:780px){
  .nm-ad-area--header.nm-ad-host .mima-ad-slot.is-fallback ins.adsbygoogle[data-nm-mobile-header-fixed="1"]{
    box-sizing:border-box;
    display:block;
    flex:0 0 auto;
    width:min(300px,100%);
    height:250px;
    max-width:100%;
    margin:0 auto;
  }
}
