/* Warlock house promotion. AdSense/third-party loaders intentionally disabled.
   If enabled for production, ads need a separately consent-gated overlay.
   The hidden overlay must never obstruct a house promotion when empty. */
.warlock-house-ad { position:relative; box-sizing:border-box; width:100%; min-width:0; }
.warlock-house-ad .wh-ad-link { display:flex; flex-direction:column; align-items:center; gap:.4rem;
  padding:.45rem; text-align:center; text-decoration:none; color:var(--text-color,inherit);
  border:1px solid color-mix(in srgb,var(--text-color) 34%,transparent); border-radius:8px;
  background:var(--page-background-color); }
.warlock-house-ad .wh-ad-link:hover { outline:2px solid var(--canvas-linecolor-full); outline-offset:1px; }
.warlock-house-ad .wh-ad-image { display:block; width:min(100%,205px); max-height:115px; height:auto; object-fit:contain; }
.warlock-house-ad .wh-ad-title { font-weight:700; font-size:clamp(.85rem,1.12vw,1.05rem); line-height:1.3; }
.warlock-house-ad .wh-ad-description { font-size:clamp(.72rem,.85vw,.92rem); line-height:1.35; }
.warlock-house-ad .wh-ad-label { text-transform:uppercase; letter-spacing:.08em; opacity:.75; font-size:.68rem; }
.warlock-house-ad .wh-google-overlay[hidden] { display:none !important; }

/* Brick 16: compact golden-ratio house promotions between whole Notebook
 * sections; never inside live graph or slider panels. */
.wh-promo-section {
  box-sizing: border-box;
  padding: clamp(12px, 2vw, 22px) clamp(17px, 3vw, 38px);
  color: var(--text-color);
}
.wh-promo-section .warlock-house-ad {
  max-width: 980px;
  margin-inline: auto;
}
.wh-promo-link {
  display: grid;
  grid-template-columns: minmax(0, 38.2114fr) minmax(0, 61.7886fr);
  align-items: center;
  width: 100%;
  min-width: 0;
  gap: clamp(10px, 2.5vw, 24px);
  padding: clamp(12px, 2vw, 22px);
  border: 1px solid color-mix(in srgb, var(--text-color) 28%, transparent);
  border-radius: 10px;
  background-image: var(--linear-gradient-a);
  color: var(--text-color);
  text-decoration: none;
  box-sizing: border-box;
}
.wh-promo-section a.wh-promo-link:link,
.wh-promo-section a.wh-promo-link:visited { color: var(--text-color); }
.wh-promo-link:hover { outline: 2px solid var(--canvas-linecolor-full); outline-offset: 2px; }
.wh-promo-link:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
.wh-promo-image-frame { min-width: 0; display: flex; justify-content: center; align-items: center; }
.wh-promo-image-frame img { display: block; max-width: 100%; width: auto; max-height: 134px; object-fit: contain; }
.wh-promo-copy { display: flex; flex-direction: column; gap: .3rem; min-width: 0; text-align: left; line-height: 1.4; }
.wh-promo-label { font: 700 .7rem/1.4 Arial,sans-serif; letter-spacing: .11em; text-transform: uppercase; opacity: .75; }
.wh-promo-title { font: 500 clamp(1.2rem, 2.2vw, 1.9rem)/1.12 Georgia,serif; }
.wh-promo-description { font-size: clamp(.88rem, 1.2vw, 1rem); }
.wh-promo-prompt { font-size: .82rem; font-weight: 700; margin-top: .25rem; text-decoration: underline; text-underline-offset: 3px; }
.wh-promo-section .wh-google-overlay[hidden] { display: none !important; }
@media (max-width: 480px) {
  .wh-promo-section { padding: 12px; }
  .wh-promo-link { grid-template-columns: minmax(0, 38.2114fr) minmax(0, 61.7886fr); gap: 10px; padding: 12px; }
  .wh-promo-image-frame img { max-height: 110px; }
  .wh-promo-label { font-size: .62rem; letter-spacing: .06em; }
  .wh-promo-title { font-size: 1.12rem; }
  .wh-promo-description { font-size: .79rem; }
  .wh-promo-prompt { font-size: .76rem; }
}
