.rec-feed-status {
    margin: 24px auto;
    padding: 24px 16px;
    max-width: 640px;
    text-align: center;
    color: #334155;
    background: #f8fafc;
    border-radius: 8px;
}

.rec-feed-status[hidden],
.rec-feed-retry[hidden],
[class*="rec-skeleton"][hidden] {
    display: none;
}

.rec-feed-status p {
    margin: 0 0 12px;
}

.rec-feed-retry {
    min-height: 44px;
    padding: 10px 20px;
    border: 1px solid #1e293b;
    border-radius: 6px;
    color: #fff;
    background: #1e293b;
    font: inherit;
    cursor: pointer;
}

.rec-feed-retry:focus-visible,
.rec-feed-status p:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 4px;
}

.rec-feed-retry[aria-disabled="true"] {
    cursor: wait;
    opacity: 0.7;
}

[data-slot-state="filled"] { overflow: hidden; box-sizing: border-box; }
/* Reserve the image plus two title lines and the disclosure in every sidebar. */
.rec-skeleton-sidebar > .rec-skeleton-body { min-height: 88px; }
.rec-grid .rec-skeleton-body { min-height: 106px; }
.horizontal-row .rec-skeleton-body { min-height: 90px; }

/* Placements keep their space for the document lifetime, even above the reader. */
[data-slot-state="empty"], [data-slot-state="expired"], [data-slot-state="error"] { visibility: hidden; }
[data-slot-state="empty"], [data-slot-state="expired"], [data-slot-state="error"],
[data-slot-state="reserved"], [data-slot-state="empty"] *, [data-slot-state="expired"] *,
[data-slot-state="error"] *, [data-slot-state="reserved"] * { animation: none !important; }
/* Text places reserve their height before the ad arrives; a template that draws
   its own card (templates.inArticle) sets its height and styles in its own
   stylesheet with `.article-body .rec-slot--in-text`. */
.rec-slot--in-text { height: 160px; margin: 24px 0; overflow: hidden; }
.rec-slot__placeholder { height: 100%; border-radius: 8px; background: #edf0f3; }
.rec-slot__card { box-sizing: border-box; height: 100%; }
/* Shared card for a template without its own in-text renderer. */
.article-body .rec-card-horizontal.rec-slot__card { display: flex; gap: 16px; text-decoration: none; color: var(--text, #1e293b); background: var(--bg-alt, var(--dark-800, #f7f8fa)); border-radius: 8px; }
.rec-card-horizontal.rec-slot__card .rec-card-image { flex: 0 0 40%; width: 40%; height: 100%; }
.rec-card-horizontal.rec-slot__card .rec-card-image img { width: 100%; height: 100%; object-fit: cover; margin: 0; }
.rec-card-horizontal.rec-slot__card .rec-card-body { flex: 1; padding: 12px; min-width: 0; }
.rec-card-horizontal.rec-slot__card .rec-card-title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0 0 8px; font-size: 18px; line-height: 1.3; }
.rec-card-horizontal.rec-slot__card .rec-card-source { font-size: 12px; line-height: 1.4; color: var(--text-light, var(--text-dim, #64748b)); }
@media (max-width: 767px) {
  .rec-slot--in-text { height: 140px; margin: 20px 0; }
  .article-body .rec-card-horizontal.rec-slot__card { gap: 8px; }
  .rec-card-horizontal.rec-slot__card .rec-card-title { font-size: 16px; }
}
