/* Rental Leak — product screenshots on topic pages.
   Loaded ONLY by the topic pages that show a real app screenshot, after
   site.css. Every selector is `tp-`-prefixed, so this file cannot change any
   other page (the homepage never loads it). Same browser/phone frame as the
   landing page, built from the site.css tokens. */

.tp-shot {
  margin: clamp(28px, 4vw, 40px) auto 0;
  max-width: 980px;
}
.tp-shot__frame {
  margin: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.tp-shot__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  background: var(--navy-deep);
  border-bottom: 1px solid var(--border);
}
.tp-shot__dot {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 50%;
  background: var(--surface-2);
}
.tp-shot__url {
  flex: 1;
  min-width: 0;
  margin-left: 10px;
  padding: 4px 12px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tp-shot__frame img {
  width: 100%;
  height: auto;
}
/* A phone-width app screen (the upcoming-charges list, a rental card, the
   Add rental screen): narrower, no browser bar, rounded like a device. */
.tp-shot--narrow {
  max-width: 400px;
}
.tp-shot--narrow .tp-shot__frame {
  border-radius: 24px;
  border: 6px solid var(--surface-2);
}
.tp-shot__caption {
  margin: 12px 0 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.bg-light .tp-shot__caption {
  color: var(--ink-muted);
}
/* Phones: the desktop screenshot would be unreadable edge to edge inside the
   page gutter, so show it full width with a lighter frame. */
@media (max-width: 640px) {
  .tp-shot__bar {
    display: none;
  }
  .tp-shot--narrow {
    max-width: 320px;
  }
}
