/* Site-specific additions. Original layout rules are preserved in the archived stylesheet bundles. */

/* Archived social widgets no longer render; remove their empty panel. */
#content #main #fb { display: none !important; }

/*
 * Newer cssloader bundle uses margin-top:-98.5% which pulls #main off-screen
 * against the current bg.jpg (2400x761). Keep the older/working overlap.
 */
#content #main {
  margin-top: -19% !important;
}

/* Keep top nav (incl. Cyklistika) on one row on desktop. */
@media (min-width: 992px) {
  #header .navbar > .container,
  .navbar > .container {
    width: auto;
    max-width: 1340px;
    padding-left: 10px;
    padding-right: 10px;
  }
  .navbar-header {
    margin-right: 8px;
  }
  .navbar-default .navbar-nav > li > a {
    padding-left: 6px;
    padding-right: 6px;
    font-size: 12px;
    white-space: nowrap;
  }
  .navbar-collapse {
    padding-left: 0;
    padding-right: 0;
  }
  .navbar-nav.pull-right {
    float: right !important;
  }
}

/* Listing thumbs: show when present; collapse empty image columns. */
.articles.layout2 .article .left .img img {
  display: block;
  width: 100%;
  height: auto;
}
.articles.layout2 .article .left.romli-no-thumb,
.articles.layout2 .article .left .img.romli-no-thumb {
  display: none !important;
}
.articles.layout2 .article .right.romli-full {
  width: 100%;
  float: none;
}
@supports selector(:has(*)) {
  .articles.layout2 .article .left:not(:has(img)) {
    display: none;
  }
  .articles.layout2 .article .left:not(:has(img)) + .right {
    width: 100%;
    float: none;
  }
}

/* Homepage cards: show thumbs when archived file exists; hide empty slots. */
#layout6 #top .layout3 .article .date { position: static; display: inline-block; margin: 0 0 10px; }
#layout6 #top .layout3 .article .middle { height: auto; min-height: 0; }
#layout6 #top .layout3 .article .middle .img { display: block; margin-bottom: 8px; }
#layout6 #top .layout3 .article .middle .img.romli-no-thumb,
#layout6 #top .layout3 .article .middle.romli-no-thumb { display: none !important; }
@supports selector(:has(*)) {
  #layout6 #top .layout3 .article .middle .img:not(:has(img)) { display: none; }
}

/* Restore article rhythm against the archived theme's ID-based reset. */
#content #main .rr0la4d { font-size: 16px; line-height: 1.65; padding: 18px; }
#content #main .rr0la4d p { font-size: inherit; line-height: inherit; margin: 0 0 1em; }
#content #main .rr0la4d h2 { font-size: 1.65em; margin: 1.4em 0 .6em; }
#content #main .rr0la4d h3 { font-size: 1.3em; margin: 1.3em 0 .5em; }
#content #main .rr0la4d h4 { font-size: 1.1em; margin: 1.2em 0 .5em; }
#content #main .rr0la4d h2, #content #main .rr0la4d h3, #content #main .rr0la4d h4 { line-height: 1.3; text-transform: none; letter-spacing: normal; }
#content #main .rr0la4d ul, #content #main .rr0la4d ol { margin: 0 0 1em; padding-left: 1.5em; }
#content #main .rr0la4d li { margin-bottom: .4em; }
#content #main .rr0la4d ul { list-style: disc; }
#content #main .rr0la4d ol { list-style: decimal; }
#content #main .rr0la4d table { display: block; overflow-x: auto; }
