/* Recent Posts widget – theme-switch aware */
.widget_recent_posts_widget{
  --rpw-accent: #cc0000;     /* title accent */
  --rpw-link:   #9508fb;     /* post title base */
}

.rpw-title-wrapper{
  font-size: 18px;
  font-weight: 700;
  color: var(--rpw-accent);
  margin-bottom: 12px;
  border-left: 4px solid var(--rpw-accent);
  padding-left: 10px;
  text-transform: uppercase;
}

.rpw-list{ list-style: none; padding: 0; margin: 0; }

.rpw-item{
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.rpw-item:last-child{ border-bottom: 0; padding-bottom: 0; }

.rpw-thumb{ flex-shrink: 0; width: 80px; }
.aspect-wrapper{ position: relative; overflow: hidden; border-radius: 6px; }
.aspect-ratio{
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: var(--base-3);
}
.aspect-ratio img{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover !important;
  display: block;
}

.rpw-info{ flex: 1; min-width: 0; }

.rpw-title{
  font-size: 14px;
  font-weight: 600;
  color: var(--rpw-link);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}
.rpw-title:hover{ text-decoration: underline; }
.rpw-title:focus-visible{
  outline: 2px solid color-mix(in srgb, var(--rpw-link) 70%, #fff 30%);
  outline-offset: 2px;
  border-radius: 4px;
}

.rpw-date{
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

@media (max-width: 480px){
  .rpw-thumb{ width: 72px; }
}
