/* Shared styling for legacy demos whose upstream API has shut down: a corner
   ribbon on load, and an inline note where the dead request would have
   rendered its result. The demos still render, so the ribbon must never
   intercept a click. */

.archived-ribbon {
  position: fixed;
  top: 0;
  right: 0;
  width: 160px;
  height: 160px;
  overflow: hidden;
  pointer-events: none;
  z-index: 1000;
}

.archived-ribbon span {
  position: absolute;
  top: 34px;
  right: -46px;
  width: 240px;
  padding: 8px 0;
  transform: rotate(45deg);
  background: #111827;
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.35);
  color: #e5e7eb;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 10px;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
}

.archived-ribbon strong {
  display: block;
  color: #f4b740;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

@media (max-width: 575px) {
  .archived-ribbon {
    width: 124px;
    height: 124px;
  }

  .archived-ribbon span {
    top: 26px;
    right: -54px;
    width: 200px;
    padding: 6px 0;
    font-size: 9px;
  }

  .archived-ribbon strong {
    font-size: 11px;
  }
}

/* Sits on whatever background the demo happens to paint, so it carries its
   own surface rather than inheriting one. */
.archived-note {
  display: block;
  max-width: 30em;
  margin: 1.5em auto;
  padding: 0.85em 1.15em;
  border: 1px solid #f4b740;
  border-radius: 8px;
  background: #111827;
  color: #e5e7eb;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
}
