/* RICCOM publications — DLE specifics (built on /assets/css/app.css) */

.crumbs:empty { display: none; }
.side-cats { list-style: none; display: grid; gap: 8px; }.side-cats a { font-size: 14px; line-height: 20px; color: var(--text-2); padding: 4px 0; display: inline-block; }
.side-cats a:hover { color: var(--accent); }

/* publication list grid */
.dle-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dle-list > .navigation { grid-column: 1 / -1; }
.dle-list:has(.fullstory),
.dle-list:has(.dle-page),
.dle-list:has(.searchresult),
.dle-list:has(.static-page),
.dle-list:has(form) { display: block; }
.dle-list .shortstory .card__img { aspect-ratio: 16/9; }
.dle-list .shortstory { min-width: 0; }

/* hide inline preview images inside short story text (already shown as card image) */
.card--news .card__text img,
.card--news .card__text .highslide-image { display: none !important; }
.card--news .card__text { overflow: hidden; }

/* full story: spacing around images, incl. floated TBegin blocks.
   article itself carries both classes (prose + fullstory) — compound selector */
.prose.fullstory img,
.prose.fullstory .highslide img,
.prose.fullstory a > img {
  margin: 12px 16px 12px 0 !important;
  border-radius: var(--r-md);
  max-width: 100%;
  height: auto;
}
.prose.fullstory img[style*="float:left"] { margin: 8px 16px 8px 0 !important; }
.prose.fullstory img[style*="float:right"] { margin: 8px 0 8px 16px !important; }

/* sidebar fresh block with thumbnail */
.mini-story { display: grid; gap: 6px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.mini-story:last-child { border-bottom: 0; padding-bottom: 2px; }
.mini-story__img { aspect-ratio: 16/9; border-radius: var(--r-sm); overflow: hidden; background: var(--surface-2); display: block; }
.mini-story__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mini-story__title { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--text); text-wrap: balance; }
.mini-story__title:hover { color: var(--accent); }
a.mini-story { text-decoration: none; }

/* category block items (text list) */
.cat-item { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cat-item:last-child { border-bottom: 0; }
.cat-item__title { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--text); text-wrap: balance; }
.cat-item__title:hover { color: var(--accent); }

/* vertical mini cards: image on top, title below */
.cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.v-card { display: grid; gap: 6px; align-content: start; min-width: 0; }
.v-card__img {
  aspect-ratio: 16/10; border-radius: var(--r-md); overflow: hidden;
  background: var(--surface-2); margin-bottom: 2px;
}
.v-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 500ms var(--ease); }
.v-card:hover .v-card__img img { transform: scale(1.04); }
.v-card__title { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--text); text-wrap: balance; }
.v-card:hover .v-card__title { color: var(--accent); }

@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .cat-grid { grid-template-columns: 1fr; }
}

/* DLE {pages} pagination */
.dle-pages a, .dle-pages span,
.navigation a, .navigation > span:not(.btn) {
  min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm); font-size: 14px; font-weight: 600;
  border: 1px solid var(--line); color: var(--text-2); padding: 0 8px;
}
.dle-pages a:hover, .navigation a:hover { color: var(--text); border-color: var(--text-3); }
.dle-pages span.nav_ext { border-color: transparent; color: var(--text-3); }
.navigation > span:not(.btn) { background: var(--surface-2); color: var(--text); border-color: var(--surface-3); }

@media (max-width: 720px) {
  .dle-list { grid-template-columns: 1fr; }
}

.shortstory .card__img { aspect-ratio: 16/9; border-radius: var(--r-md); overflow: hidden; background: var(--surface-2); margin: -8px 0 4px; }
.shortstory .card__img img { width: 100%; height: 100%; object-fit: cover; }

.prose img { border-radius: var(--r-md); }
.prose blockquote { border-left: 3px solid var(--accent); padding: 8px 16px; background: var(--surface-2); border-radius: 0 var(--r-sm) var(--r-sm) 0; margin: 16px 0; }
.prose blockquote p { margin-bottom: 0; }

/* comments */
.comments-list { display: grid; gap: 16px; margin: 24px 0; }
.comment-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 24px; }
.comment-card .comment-author { font-weight: 600; color: var(--text); font-size: 14px; }
.comment-card .comment-meta { font-size: 12px; color: var(--text-3); }
.comment-card .comment-body { margin-top: 8px; color: var(--text-2); font-size: 14px; line-height: 20px; text-wrap: pretty; }

/* dle editor */
.bbcodes button, .bbcodes a { background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); border-radius: var(--r-sm); padding: 4px 8px; font-size: 12px; }
.bbcodes button:hover { color: var(--text); border-color: var(--text-3); }

/* login popup */
.logintitle, .profile { color: var(--text); }

/* engine.css replacements for legacy widgets */
.xfields textarea { background: var(--surface); border: 1px solid var(--line); color: var(--text); border-radius: var(--r-sm); font-family: inherit; }
.dle-panel .dle-panel-content { background: var(--surface); color: var(--text-2); }
.ui-widget { font-family: 'Manrope', sans-serif; }

/* topnews / tags */
.topnews { list-style: none; display: grid; gap: 8px; }
.tagscloud a { display: inline-block; margin: 0 8px 8px 0; color: var(--text-2); font-size: 14px; }
.tagscloud a:hover { color: var(--accent); }

@media (max-width: 1024px) {
  #dle-layout { grid-template-columns: 1fr !important; }
}
