/* Detail článku – v14. Společná hlavička, sidebar a patička zůstávají beze změny. */
.article-detail { color: #555; }
.article-category { font-family: Roboto, sans-serif; font-weight: 700; letter-spacing: .04em; }
.article-title { margin: 0; line-height: 1.14; }
.article-meta strong { color: #555; font-weight: 500; }
.article-hero { margin: 0 0 32px; }
.article-hero img { display: block; width: 100%; height: auto; }
.article-prose { font: 16px/1.78 Lato, sans-serif; color: #555; }
.article-prose p { margin: 0 0 23px; }
.article-prose .article-lead { color: #333; font-size: 18px; line-height: 1.65; }
.article-signature { color: #333; font-style: italic; }

.article-footer-meta { margin-top: 12px; padding: 18px 0; border-top: 1px solid #e5e5e5; border-bottom: 1px solid #e5e5e5; font: 13px/1.5 Roboto, sans-serif; color: #777; }
.article-footer-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.article-rating { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.article-action-label, .article-tags span { color: #555; font-weight: 500; }
.rating-summary { color: #999; font-family: Lato, sans-serif; }
.star-rating { display: inline-flex; flex-direction: row-reverse; align-items: center; }
.star-rating input { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; pointer-events: none; }
.star-rating label { margin: 0 1px; color: #c8c8c8; font-size: 23px; line-height: 1; cursor: pointer; transition: color .15s ease; }
.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label { color: #17a05e; }
.star-rating input:focus-visible + label { outline: 2px solid #17a05e; outline-offset: 2px; }
.rating-star.rating-star-active {
  color: #17a05e;
}

.article-print { padding: 8px 12px; border: 1px solid #d8d8d8; border-radius: 2px; background: #fff; color: #555; font: 500 13px/1.2 Roboto, sans-serif; cursor: pointer; transition: .2s; }
.article-print span { margin-right: 5px; font-size: 12px; }
.article-print:hover { border-color: #17a05e; color: #168454; }
.article-tags { margin-top: 14px; }
.article-tags span { margin-right: 7px; }
.article-tags a { color: #17a05e; }
.article-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 20px 0 34px; font: 13px/1.4 Roboto, sans-serif; }
.article-share > span { margin-right: 6px; color: #555; font-weight: 500; }
.article-share a { padding: 7px 13px; border: 1px solid #ddd; border-radius: 2px; color: #555; transition: .2s; }
.article-share a:hover { border-color: #17a05e; background: #17a05e; color: #fff; }

/* Diskuze je záměrně jen nenápadný doplněk článku. */
.discussion-section { padding-top: 22px; border-top: 1px solid #dedede; }
.discussion-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.discussion-heading h2 { margin: 0; color: #444; font: 500 18px/1.35 Roboto, sans-serif; }
.discussion-count { color: #999; font: 12px/1.4 Lato, sans-serif; white-space: nowrap; }
.discussion-demo-note { margin: -4px 0 18px; color: #999; font: 12px/1.5 Lato, sans-serif; }
.discussion-empty { margin: 0 0 22px; padding: 10px 0 16px; border-bottom: 1px solid #ededed; }
.discussion-empty strong { display: block; margin-bottom: 3px; color: #555; font: 500 14px/1.5 Roboto, sans-serif; }
.discussion-empty p { margin: 0; color: #999; font: 13px/1.5 Lato, sans-serif; }
.comment-thread { margin-bottom: 25px; }
.comment-item { display: flex; gap: 13px; padding: 16px 0; border-bottom: 1px solid #ededed; }
.comment-avatar { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; background: #edf5f1; color: #168454; font: 700 12px/38px Roboto, sans-serif; text-align: center; }
.comment-body { min-width: 0; flex: 1; }
.comment-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 13px; margin-bottom: 6px; }
.comment-meta strong { color: #444; font: 500 14px/1.4 Roboto, sans-serif; }
.comment-meta time { color: #aaa; font: 12px/1.4 Lato, sans-serif; }
.comment-body p { margin: 0 0 8px; color: #666; font: 13px/1.65 Lato, sans-serif; }
.comment-reply { padding: 0; border: 0; background: transparent; color: #168454; font: 500 12px/1.4 Roboto, sans-serif; cursor: pointer; }
.comment-children { margin-left: 51px; padding-left: 15px; border-left: 2px solid #e1eee7; }
.comment-children-level-2 { margin-left: 30px; }
.comment-form-wrap { margin-top: 14px; padding: 20px; border: 1px solid #e7e7e7; background: #fafafa; }
.comment-form-wrap h3 { margin: 0 0 4px; color: #444; font: 500 17px/1.35 Roboto, sans-serif; }
.comment-login-note { margin: 0 0 15px; color: #999; font: 12px/1.5 Lato, sans-serif; }
.comment-form label { display: block; margin-bottom: 7px; color: #666; font: 500 12px/1.4 Roboto, sans-serif; }
.comment-form textarea { display: block; width: 100%; min-height: 120px; resize: vertical; padding: 12px 14px; border: 1px solid #d9d9d9; border-radius: 2px; background: #fff; color: #444; font: 14px/1.6 Lato, sans-serif; outline: none; }
.comment-form textarea:focus { border-color: #17a05e; box-shadow: 0 0 0 2px rgba(23,160,94,.1); }
.comment-form-actions { margin-top: 13px; text-align: right; }
.comment-form button { padding: 10px 17px; border: 0; border-radius: 2px; background: #17a05e; color: #fff; font: 500 13px/1 Roboto, sans-serif; cursor: pointer; transition: .2s; }
.comment-form button:hover { background: #12804a; }

@media (max-width: 575px) {
  .article-title { font-size: 30px !important; }
  .article-prose { font-size: 15px; line-height: 1.72; }
  .article-prose .article-lead { font-size: 17px; }
  .article-footer-tools { align-items: flex-start; }
  .article-rating { width: 100%; }
  .discussion-heading { align-items: baseline; }
  .comment-children { margin-left: 17px; padding-left: 10px; }
  .comment-children-level-2 { margin-left: 5px; }
  .comment-avatar { flex-basis: 34px; width: 34px; height: 34px; line-height: 34px; }
  .comment-form-wrap { padding: 16px 14px; }
}

@media print {
  header, aside, footer, .btn-back-to-top, .article-share, .article-footer-meta, .discussion-section { display: none !important; }
  body, .article-page, .container { background: #fff !important; }
  .article-page { padding: 0 !important; }
  .article-page .container { width: 100% !important; max-width: none !important; padding: 0 !important; }
  .article-page .row { display: block !important; margin: 0 !important; padding: 0 !important; }
  .article-page main { max-width: none !important; flex: none !important; width: 100% !important; padding: 0 !important; }
  .article-detail { padding: 0 !important; }
  .article-category { color: #555 !important; }
  .article-title { color: #000 !important; }
  .article-prose { color: #222 !important; font-size: 12pt; line-height: 1.55; }
  .article-hero img { max-height: 115mm; object-fit: cover; }
  a { color: inherit !important; text-decoration: none !important; }
}

.article-print-icon {
  display: inline-block;
  vertical-align: -3px;
  margin-right: 5px;
}
.article-gallery,
.article-attachments {
  margin-top: 38px;
  padding-top: 30px;
  border-top: 1px solid #e4e7e5;
}

.article-content-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}

.article-content-heading h2 {
  margin: 0;
  color: #2e3431;
  font: 600 22px/1.35 Roboto, Arial, sans-serif;
}

.article-content-count {
  flex: 0 0 auto;
  color: #828783;
  font: 500 12px/1.4 Roboto, Arial, sans-serif;
}

/* Galerie */

.article-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.article-gallery-item {
  min-width: 0;
  margin: 0;
}

.article-gallery-item a {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #edf0ee;
}

.article-gallery-item a::after {
  content: "Zvětšit";
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 8px;
  background: rgba(18, 27, 23, 0.78);
  color: #fff;
  font: 600 10px/1.3 Roboto, Arial, sans-serif;
  opacity: 0;
  transform: translateY(4px);
  transition:
          opacity 0.2s ease,
          transform 0.2s ease;
}

.article-gallery-item a:hover::after,
.article-gallery-item a:focus::after {
  opacity: 1;
  transform: translateY(0);
}

.article-gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.article-gallery-item a:hover img,
.article-gallery-item a:focus img {
  transform: scale(1.035);
}

.article-gallery-item figcaption {
  margin-top: 7px;
  color: #747a76;
  font: 400 12px/1.45 Lato, Arial, sans-serif;
}

/* Ostatní přílohy */

.article-attachment-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #e2e6e4;
}

.article-attachment-item {
  margin: 0;
  border-bottom: 1px solid #e2e6e4;
}

.article-attachment-item > a {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 12px;
  color: #343a37;
  text-decoration: none;
  transition:
          color 0.2s ease,
          background-color 0.2s ease;
}

.article-attachment-item > a:hover,
.article-attachment-item > a:focus {
  background: #f4faf7;
  color: #14744e;
}

.article-attachment-icon {
  display: inline-flex;
  flex: 0 0 35px;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #e9f7f0;
  color: #148257;
}

.article-attachment-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.article-attachment-name {
  min-width: 0;
  flex: 1 1 auto;
  font: 600 14px/1.45 Roboto, Arial, sans-serif;
  overflow-wrap: anywhere;
}

.article-attachment-open {
  flex: 0 0 auto;
  color: #14744e;
  font: 600 12px/1.4 Roboto, Arial, sans-serif;
}

@media (max-width: 767px) {
  .article-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .article-gallery-grid {
    grid-template-columns: 1fr;
  }

  .article-content-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .article-attachment-open {
    display: none;
  }
}

@media print {
  .article-gallery-item a::after,
  .article-attachment-open {
    display: none;
  }
}
.article-lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  overflow: hidden;
}

.article-lightbox::backdrop {
  background: rgba(9, 14, 12, 0.94);
  backdrop-filter: blur(3px);
}

.article-lightbox-window {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 55px 80px 35px;
}

.article-lightbox-figure {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  margin: 0;
}

.article-lightbox-image-wrap {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
}

.article-lightbox-image {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 130px);
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 10px 45px rgba(0, 0, 0, 0.45);
}

.article-lightbox-footer {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  min-height: 45px;
  padding-top: 14px;
}

.article-lightbox-caption {
  color: #eef2f0;
  font: 400 14px/1.5 Lato, Arial, sans-serif;
}

.article-lightbox-counter {
  flex: 0 0 auto;
  color: #b9c0bc;
  font: 600 12px/1.45 Roboto, Arial, sans-serif;
}

.article-lightbox-close,
.article-lightbox-navigation {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition:
          background-color 0.2s ease,
          color 0.2s ease;
}

.article-lightbox-close:hover,
.article-lightbox-close:focus,
.article-lightbox-navigation:hover,
.article-lightbox-navigation:focus {
  color: #fff;
  background: #15855a;
  outline: none;
}

.article-lightbox-close {
  top: 15px;
  right: 20px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font: 300 32px/1 Arial, sans-serif;
}

.article-lightbox-navigation {
  top: 50%;
  width: 48px;
  height: 64px;
  border-radius: 3px;
  transform: translateY(-50%);
  font: 300 47px/1 Arial, sans-serif;
}

.article-lightbox-previous {
  left: 18px;
}

.article-lightbox-next {
  right: 18px;
}

@media (max-width: 767px) {
  .article-lightbox-window {
    padding: 58px 15px 25px;
  }

  .article-lightbox-image {
    max-height: calc(100vh - 145px);
  }

  .article-lightbox-navigation {
    top: auto;
    bottom: 18px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transform: none;
    background: rgba(10, 18, 14, 0.72);
    font-size: 38px;
  }

  .article-lightbox-previous {
    left: 15px;
  }

  .article-lightbox-next {
    right: 15px;
  }

  .article-lightbox-footer {
    padding-right: 52px;
    padding-left: 52px;
  }
}

@media print {
  .article-lightbox {
    display: none;
  }
}
.article-lightbox:not([open]) {
  display: none !important;
}
