/* ==========================================================================
   ROFSS — news posts (js/news.js) and gallery items (js/gallery.js) from
   the admin panel. Plain colors match the hardcoded palette of the pages;
   html.dark overrides follow css/dark-mode.css.
   ========================================================================== */

/* ---------- news ---------- */
.rofss-post__title { font-size: 15px; margin-bottom: 4px; }
.rofss-post__date { font-weight: normal; font-size: 12px; color: #5a5a5a; }
.rofss-post__body { font-size: 13px; }
.rofss-post__body p { margin: 0 0 8px 0; }
.rofss-post__body a { color: rgb(160,0,0); text-decoration: underline; }
.rofss-post__body ul, .rofss-post__body ol { margin: 0 0 8px 0; padding-left: 22px; }
.rofss-post__body blockquote { margin: 0 0 8px 0; padding-left: 10px; border-left: 3px solid #8aaf7d; }
.rofss-post__body pre { background: #d1dcce; padding: 8px; overflow: auto; font-size: 12px; }
.rofss-post__body code { font-family: 'Courier New', monospace; }
.rofss-post__body img, .rofss-post__body .md-img { max-width: 100%; }
.rofss-post__body table { border-collapse: collapse; margin-bottom: 8px; }
.rofss-post__body th, .rofss-post__body td { border: 1px solid #0f3b00; padding: 3px 6px; }
.rofss-post__images { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.rofss-post__images img { max-width: 100%; height: auto; max-height: 320px; width: auto; border: 1px solid #0f3b00; image-rendering: pixelated; display: block; }
.rofss-post__rule { border: none; border-top: 1px dashed #0f3b00; margin: 14px 0; }

/* ---------- gallery ---------- */
.rofss-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 184px);
  gap: 14px;
  justify-content: center;
  margin: 0 auto;
}
.rofss-gallery-item {
  background: #ffffff;
  border: 1px solid #0f3b00;
  font-family: Arial, sans-serif;
  font-size: 12px;
  color: #103c00;
}
.rofss-gallery-item__pic { display: block; height: 140px; background: #d1dcce; border-bottom: 1px solid #0f3b00; }
.rofss-gallery-item__pic img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; display: block; }
.rofss-gallery-item__line { margin: 6px 8px; word-break: break-word; }
.rofss-gallery-item__line a { color: rgb(160,0,0); text-decoration: underline; }

/* ---------- dark mode ---------- */
html.dark .rofss-post__date { color: #8fa892; }
html.dark .rofss-post__body a,
html.dark .rofss-gallery-item__line a { color: #ff8a7a; }
html.dark .rofss-post__body pre { background: #0e1f16; }
html.dark .rofss-post__rule { border-top-color: #b9d1b7; }
html.dark .rofss-gallery-item { background: #0a140d; color: #b9d1b7; border-color: #03100a; }
html.dark .rofss-gallery-item__pic { background: #0e1f16; border-bottom-color: #03100a; }
