/* Medical Krillion Monetize Subdomain Ad Styles (medical.growagardenonline.com)
 * Injected EXCLUSIVELY by workers/growagarden.mjs on 2xx HTML responses.
 * Never referenced or loaded on primary medicalkrillion.net.
 */
:root {
  --mk-bottom-ad-space: 0px;
}

body.mk-monetize-host {
  padding-bottom: var(--mk-bottom-ad-space);
}

.mk-ad-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  margin: 0 auto;
}

.mk-ad-box[hidden],
.mk-ad-box[data-ad-collapsed="true"],
.mk-result-ad-slot[hidden] {
  display: none !important;
}

.mk-ad-label {
  display: block;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.85);
  margin-bottom: 4px;
  text-align: center;
  user-select: none;
}

/* Sticky 160x600 desktop rails: right rail >=1000px, dual left+right rails >=1220px */
.mk-ad-rail {
  display: none;
  position: fixed;
  top: 72px;
  width: 168px;
  z-index: 20;
  pointer-events: auto;
}

.mk-ad-rail--right {
  right: 8px;
}

.mk-ad-rail--left {
  left: 8px;
}

@media (min-width: 1000px) {
  .mk-ad-rail--right {
    display: flex;
  }

  /* Reserve 192px right gutter so 160x600 rail never overlaps stage HUD, ECG readout, or cards */
  body.mk-monetize-host.page-playable .main-shell {
    padding-right: 192px !important;
    box-sizing: border-box;
  }

  body.mk-monetize-host:not(.page-playable) .main-shell {
    max-width: min(780px, calc(100% - 216px));
    margin-left: auto;
    margin-right: 196px;
  }

  body.mk-monetize-host:not(.page-playable) .main-shell--wide {
    max-width: min(980px, calc(100% - 216px));
  }

  body.mk-monetize-host .site-footer {
    padding-right: 192px;
  }
}

@media (min-width: 1220px) {
  .mk-ad-rail--left {
    display: flex;
  }

  /* Reserve symmetric 192px left & right gutters for dual 160x600 rails */
  body.mk-monetize-host.page-playable .main-shell {
    padding-left: 192px !important;
    padding-right: 192px !important;
    box-sizing: border-box;
  }

  body.mk-monetize-host:not(.page-playable) .main-shell {
    max-width: min(780px, calc(100% - 392px));
    margin-inline: auto;
  }

  body.mk-monetize-host:not(.page-playable) .main-shell--wide {
    max-width: min(980px, calc(100% - 392px));
  }

  body.mk-monetize-host .site-footer {
    padding-left: 192px;
    padding-right: 192px;
  }
}

/* Post-completion result-top unit between Shift Report / Breakdown and 8-card waterfall (>= 28px clearance) */
.mk-result-ad-slot {
  width: 100%;
  max-width: 100%;
  margin: 28px auto;
  padding: 6px 0;
  box-sizing: border-box;
  flex-shrink: 0;
}

.mk-ad-box--result-top {
  width: 100%;
  max-width: 100%;
  min-height: 100px;
  flex-shrink: 0;
}
