/* Calm ads (research council, 21 Nov 2026; owner: "everything looks asthetic even if a ad is running").
   An ad lives in its own labelled frame after the tool, never above it and never beside a button.
   The frame keeps its height from the first paint, so nothing on the page jumps when the ad arrives.
   When Google sends no ad (or it is blocked), js/ads.js puts a small PicoPuff card in the same space. */
div.pp-ad {
  display: block;
  box-sizing: border-box;
  max-width: 1100px;
  min-height: 300px;
  margin: 32px auto;
  padding: 10px 12px 12px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.pp-ad::before {
  content: "Advertisement";
  display: block;
  font: 12px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #5f6b7a;
  margin: 0 0 6px 2px;
}
.pp-ad .ad-label { display: none; }
.pp-ad ins.adsbygoogle { display: block; width: 100%; min-height: 250px; }
/* some pages hide an empty unit, which would give AdSense no width to fill */
div.pp-ad:not(.pp-ad--house) ins.adsbygoogle:empty { display: block !important; }
div.pp-ad--multiplex { min-height: 320px; }
.pp-ad--multiplex ins.adsbygoogle { min-height: 280px; }

/* No ad came: the same frame shows a PicoPuff card instead of a hole */
.pp-ad.pp-ad--house::before { content: "From PicoPuff"; }
.pp-ad.pp-ad--house ins.adsbygoogle { display: none !important; }
.pp-house {
  box-sizing: border-box;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
  padding: 22px 22px;
  border-radius: 14px;
  background: #5bb8f2;
  color: #ffffff;
  text-decoration: none;
  font-family: "Comfortaa", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.pp-house__title { font-size: 1.25rem; font-weight: 700; line-height: 1.3; }
.pp-house__line { font-size: 0.95rem; line-height: 1.5; max-width: 34em; }
.pp-house__go {
  margin-top: 6px;
  background: #ffffff;
  color: #1d3a6b;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 700;
}
.pp-house:hover .pp-house__go, .pp-house:focus-visible .pp-house__go { background: #eaf3ff; }
.pp-house:focus-visible { outline: 3px solid #1d3a6b; outline-offset: 3px; }

@media (max-width: 600px) {
  div.pp-ad { margin: 28px 12px; }
  .pp-house { padding: 18px 16px; }
  .pp-house__title { font-size: 1.1rem; }
}
@media print { div.pp-ad { display: none !important; } }
