/* RNews.cz static archive — palette lifted from the original WordPress
   "Publication" theme (accent #ef7d0b, darks #222/#333/#444). */

:root {
  --accent: #ef7d0b;
  --dark: #222;
  --dark2: #333;
  --dark3: #444;
  --border: #ddd;
  --bg-light: #eee;
  --text: #333;
  --max-width: 1140px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #fff;
  color: var(--text);
  font-family: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--dark); text-decoration: none; box-shadow: inset 0 -1px 0 currentColor; }
a:hover, a:focus { color: var(--accent); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { font-family: "Oswald", "Lato", sans-serif; font-weight: 700; line-height: 1.25; color: var(--dark); }

.body-wrapper { width: 100%; }

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--bg-light);
}
.site-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 24px;
}
.site-logo-link { box-shadow: none; display: inline-block; max-height: 108px; max-width: 324px; vertical-align: middle; }
.site-logo { display: block; height: auto; max-height: 108px; max-width: 100%; width: auto; }
.site-description {
  margin: 4px 0 0;
  color: #777;
  font-size: 14px;
}

.main-navigation {
  background: var(--dark);
}
.main-navigation ul {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}
.main-navigation li { margin: 0; }
.main-navigation a {
  display: block;
  padding: 12px 13px;
  color: #fff;
  font-family: "Oswald", sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: none;
}
.main-navigation a:hover, .main-navigation a:focus, .main-navigation li.current a {
  background: var(--accent);
  color: #fff;
}

/* Big picture in the header (an article's own, or the featured one on the home page): the logo sits on it */
.hero-banner { position: relative; height: clamp(340px, 64vh, 680px); display: flex; flex-direction: column; justify-content: space-between; background: var(--dark); color: #fff; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; z-index: 0; }
.hero-banner::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0.78) 100%); }
.hero-banner .site-header-inner, .hero-caption { position: relative; z-index: 2; width: 100%; box-sizing: border-box; }
.hero-banner .site-header-inner { padding-top: 16px; padding-bottom: 0; }
/* the link's max-height (108px) is for the bare logo: with padding it would cut the white box short of the logo image */
.hero-banner .site-logo-link { background: #fff; padding: 8px 16px; max-height: none; max-width: none; box-shadow: 0 6px 22px rgba(0,0,0,0.38); }
.hero-banner .site-logo { max-height: 108px; }
/* pages without a picture of their own: the Facebook page's cover, same size, with the site's name */
.hero-default .hero-img { object-position: 50% 80%; }   /* the cover's plane and car are in its lower half */
.hero-default .hero-title { font-size: clamp(24px, 3.6vw, 42px); max-width: none; margin-bottom: 0; }   /* one line on wide screens */
.hero-caption { max-width: var(--max-width); margin: 0 auto; padding: 0 24px 36px; }
.hero-meta { font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; color: #ddd; }
.hero-meta a { color: #fff; font-family: "Oswald", sans-serif; margin-right: 10px; box-shadow: none; }
.hero-meta a:hover { color: var(--accent); }
.hero-title { font-family: "Oswald", "Lato", sans-serif; font-weight: 700; font-size: clamp(28px, 5vw, 54px); line-height: 1.15; color: #fff; margin: 8px 0 10px; max-width: 900px; text-shadow: 0 2px 12px rgba(0,0,0,0.5); }
.hero-title a { color: inherit; box-shadow: none; }
.hero-preview { max-width: 720px; margin: 0 0 12px; font-size: 17px; line-height: 1.5; color: #eee; text-shadow: 0 1px 6px rgba(0,0,0,0.6); }
.hero-more { display: inline-block; color: #fff; font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: 0.5px; box-shadow: none; border-bottom: 2px solid var(--accent); }
.hero-more:hover { color: var(--accent); }
@media (max-width: 640px) { .hero-banner { height: clamp(300px, 70vh, 520px); } .hero-preview { display: none; } .hero-caption { padding-bottom: 24px; } }

/* Layout */
.main-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  gap: 40px;
  align-items: flex-start;
}
.content-area {
  flex: 1 1 auto;
  min-width: 0;
}

/* Sidebar — dark, matching the original theme's .widget-area */
.widget-area {
  flex: 0 0 300px;
  background: var(--dark);
  color: #fff;
  padding: 24px;
  border-radius: 0; /* 4px */
}
.widget {
  margin-bottom: 32px;
}
.widget:last-child { margin-bottom: 0; }
.widget-title {
  font-family: "Oswald", sans-serif;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding-bottom: 8px;
  margin: 0 0 12px;
}
.widget-title a { color: inherit; box-shadow: none; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.widget a { color: #ddd; box-shadow: none; }
.widget a:hover { color: var(--accent); }
.widget .count { color: #888; font-size: 13px; }
.tagcloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-cloud-link {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 0; /* 20px */
  font-size: 12px;
  color: #ddd;
  box-shadow: none;
}
.tag-cloud-link:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.social-button { display: block; padding: 10px 14px; text-align: center; background: var(--accent); color: #fff !important; font-size: 14px; }
.social-button:hover { filter: brightness(1.1); color: #fff !important; }
.yt-list li { padding: 8px 0; }
.yt-list a { display: block; }
.yt-list img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #000; margin-bottom: 6px; }
.yt-title { display: block; font-size: 14px; line-height: 1.3; }
.yt-date { display: block; font-size: 12px; color: #888; margin-top: 2px; }
.widget-more { margin: 8px 0 0; font-size: 13px; }

/* Post list / cards */
.post-list { display: flex; flex-direction: column; gap: 22px; }
.post-thumbnail { box-shadow: none; }
.post-thumbnail img { border-radius: 0 /* 4px */; aspect-ratio: 4/3; object-fit: cover; }
.entry-meta { font-size: 13px; color: #888; margin-bottom: 6px; }
.entry-meta a {
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.5px;
  box-shadow: none;
  margin-right: 8px;
}
.entry-title { font-size: 24px; margin: 0 0 8px; }
.entry-title a { box-shadow: none; }
.entry-summary { color: #555; }
.post-date { white-space: nowrap; }

/* Pagination */
.pagination {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.pagination a { color: var(--accent); font-weight: 700; box-shadow: none; }

/* Single post */
.single-post .hero {
  margin: 0 0 32px;
  border-radius: 0px; /* 4px */
  overflow: hidden;
}
.single-post .post-thumbnail.hero img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 0px; /* 4px */
}
/* very wide panoramas: show the whole picture instead of a cropped middle */
.single-post .post-thumbnail.hero-wide img { height: auto; max-height: none; aspect-ratio: auto; object-fit: contain; }
/* low-resolution images: never stretch past their real size (that looked blurry),
   show them centred at natural size on a neutral background instead */
.single-post .post-thumbnail.hero-small { background: var(--bg-light); text-align: center; border-radius: 0px; /* 4px */ }
.single-post .post-thumbnail.hero-small img { width: auto; max-width: 100%; height: auto; aspect-ratio: auto; max-height: 520px; object-fit: contain; display: inline-block; vertical-align: top; border-radius: 0; }
/* portrait photos: show the whole picture, centred on a neutral background */
.single-post .post-thumbnail.hero-tall img { height: 520px; object-fit: contain; background: var(--bg-light); }
.entry-header { margin-bottom: 24px; }
.single-post .entry-title { font-size: 36px; margin: 4px 0 12px; }
.single-post .entry-meta a { margin-right: 10px; }

.entry-content { font-size: 18px; }
.entry-content > * + * { margin-top: 1.2em; }
.entry-content h2, .entry-content h3 { margin-top: 1.6em; }
.entry-content img { border-radius: 0; /* 4px; */ margin: 0 auto; }
.entry-content blockquote {
  margin: 0;
  padding-left: 20px;
  border-left: 4px solid var(--accent);
  color: #555;
  font-style: italic;
}
.entry-content iframe { max-width: 100%; }

/* Tables -- WP articles embed plain <table> spec sheets with no classes */
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}
.entry-content th, .entry-content td {
  border: 1px solid var(--border);
  padding: 8px 12px;
  text-align: left;
  vertical-align: top;
}
.entry-content th { background: var(--bg-light); font-weight: 700; }
.entry-content tr:nth-child(even) td { background: #fafafa; }

/* Jetpack tiled galleries: the scraped markup carries inline pixel
   width/height calculated for the original theme's fixed 672px column
   (e.g. style="width:197px;height:103px"). Left as-is, those absolute
   dimensions don't reflow for our layout -- wrapper divs stack as blocks
   while keeping a fixed inline height, so overflowing thumbnails spill
   into the next paragraph. Override to a responsive wrapping flex grid
   instead, ignoring the original packed-masonry pixel math entirely. */
.entry-content .tiled-gallery,
.entry-content .gallery-row,
.entry-content .gallery-group {
  display: flex !important;
  flex-wrap: wrap;
  width: auto !important;
  height: auto !important;
  gap: 4px;
}
.entry-content .tiled-gallery-item {
  width: auto !important;
  height: auto !important;
}
.entry-content .tiled-gallery-item img {
  /* fit inside 100% x 160px keeping the proportions (a fixed 160px height
     squashed very wide banners and upscaled small images) */
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 160px !important;
  border-radius: 0; /* 4px */
}
.entry-content .tiled-gallery-caption { display: none; }

.post-tags { margin: 22px 0 0; font-size: 13px; line-height: 1.7; color: #999; }
.post-tags a { color: #999; margin-right: 12px; white-space: nowrap; box-shadow: none; }
.post-tags a:hover { color: var(--accent); }
.bleskovka .post-tags { margin: 10px 0 0; }

/* Archived comments */
.comments-area {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid var(--dark);
}
.comments-title { font-size: 22px; }
.comments-closed-notice {
  background: var(--bg-light);
  border-left: 4px solid var(--accent);
  padding: 10px 16px;
  font-size: 14px;
  color: #555;
}
.comment-list, .children { list-style: none; margin: 0; padding: 0; }
.children { padding-left: 32px; }
.comment-body {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.comment-author { display: flex; align-items: center; gap: 10px; }
.comment-author .avatar { border-radius: 50%; background: var(--bg-light); }
.comment-author .fn { font-weight: 700; color: var(--dark); font-style: normal; }
.comment-metadata { font-size: 12px; color: #999; margin-bottom: 8px; }
.comment-metadata a { color: inherit; box-shadow: none; }
.comment-content p { margin: 0.4em 0; }

/* Archive / taxonomy pages */
.archive-header { margin-bottom: 24px; }
.page-title { font-size: 28px; border-bottom: 2px solid var(--accent); padding-bottom: 8px; display: inline-block; }
.taxonomy-term-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.taxonomy-term-list a {
  display: inline-block;
  padding: 8px 16px;
  background: var(--bg-light);
  border-radius: 0 /* 4px */;
  box-shadow: none;
}
.taxonomy-term-list a:hover { background: var(--accent); color: #fff; }
.taxonomy-term-list li[hidden] { display: none; }
.taxonomy-term-list .count { color: #888; font-size: 13px; margin-left: 2px; }
.term-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; }
.term-tools-label { color: #666; font-size: 14px; margin-right: 4px; }
.term-sort { font: inherit; font-size: 14px; padding: 6px 14px; background: var(--bg-light); border: 1px solid var(--border); border-radius: 0; cursor: pointer; }
.term-sort:hover { border-color: var(--accent); }
.term-sort.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.term-filter { font: inherit; font-size: 14px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 0; min-width: 180px; flex: 1 1 180px; max-width: 280px; }

/* Footer */
.site-footer {
  background: var(--dark);
  color: #aaa;
  text-align: center;
  padding: 24px;
  margin-top: 40px;
  font-size: 14px;
}
.site-footer a { color: #ddd; box-shadow: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer .site-version { color: #5c5c5c; font-size: 12px; margin-top: 10px; }

/* Responsive */
@media (max-width: 820px) {
  /* column layout: stretch, otherwise the article shrink-wraps to its widest
     image/banner and overflows the screen */
  .main-content { flex-direction: column; align-items: stretch; }
  .widget-area { flex: 1 1 auto; width: 100%; }
}

/* Lightbox -- opens in-page instead of navigating to a (dead) WP attachment page */
.entry-content img { cursor: zoom-in; }
.entry-content a img { cursor: pointer; }
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(17, 17, 17, 0.92);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 40px;
  cursor: zoom-out;
}
.lightbox-overlay.active { display: flex; }
.lightbox-overlay img {
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  object-fit: contain;
  border-radius: 0 /* 4px */;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  cursor: default;
}
.lightbox-caption {
  color: #ddd;
  margin-top: 12px;
  font-size: 14px;
  text-align: center;
  max-width: 80vw;
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  padding: 8px;
}
.lightbox-close:hover { color: var(--accent); }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 80px;
  background: rgba(0, 0, 0, 0.35);
  border: none;
  color: #fff;
  font-size: 56px;
  line-height: 1;
  cursor: pointer;
  padding: 0 0 8px;
}
.lightbox-nav:hover, .lightbox-nav:focus-visible { background: var(--accent); }
.lightbox-nav[hidden], .lightbox-counter[hidden] { display: none; }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox-counter { color: #bbb; font-size: 13px; margin-top: 6px; }
@media (max-width: 600px) {
  .lightbox-nav { width: 40px; height: 64px; font-size: 44px; }
  .lightbox-prev { left: 4px; }
  .lightbox-next { right: 4px; }
}
body.lightbox-open { overflow: hidden; }

/* Search modal (Pagefind) */
.search-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: none;
  border: 0;
  color: #fff;
  font-family: "Oswald", sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
}
.search-toggle:hover, .search-toggle:focus-visible { background: var(--accent); }
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(17, 17, 17, 0.7);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 8vh 16px 16px;
}
.search-modal[hidden] { display: none; }
.search-modal-box {
  display: flex;
  flex-direction: column;
  background: #fff;
  width: 100%;
  max-width: 760px;
  max-height: 84vh;
  border-radius: 0 /* 2px */;
  border-top: 4px solid var(--accent);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  --pagefind-ui-scale: 0.9;
  --pagefind-ui-primary: var(--accent);
  --pagefind-ui-text: var(--text);
  --pagefind-ui-background: #fff;
  --pagefind-ui-border: var(--border);
  --pagefind-ui-border-width: 2px;
  --pagefind-ui-border-radius: 0;
  --pagefind-ui-image-border-radius: 0;
  --pagefind-ui-font: "Lato", sans-serif;
}
.search-modal-head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--dark);
  color: #fff;
  padding: 0 4px 0 20px;
}
.search-modal-title {
  font-family: "Oswald", sans-serif;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.search-close {
  background: none;
  border: 0;
  color: #fff;
  font-size: 30px;
  line-height: 1;
  padding: 8px 14px;
  cursor: pointer;
}
.search-close:hover, .search-close:focus-visible { background: var(--accent); }
.search-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 20px;
}
#search-modal .pagefind-ui__search-input {
  font-family: "Lato", sans-serif;
  font-size: 17px;
  font-weight: 400;
  color: var(--dark);
  background-color: #fff;
  border: 2px solid var(--border);
  border-radius: 0;
  height: 52px;
}
#search-modal .pagefind-ui__search-input:focus {
  outline: none;
  border-color: var(--accent);
}
#search-modal .pagefind-ui__search-input::placeholder { color: #999; opacity: 1; }
#search-modal .pagefind-ui__message {
  font-family: "Oswald", sans-serif;
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #777;
}
#search-modal .pagefind-ui__result { border-top: 1px solid var(--bg-light); }
#search-modal .pagefind-ui__result:last-of-type { border-bottom: 1px solid var(--bg-light); }
#search-modal .pagefind-ui__result-link {
  font-family: "Oswald", sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--dark);
  box-shadow: none;
}
#search-modal .pagefind-ui__result-link:hover,
#search-modal .pagefind-ui__result-link:focus { color: var(--accent); text-decoration: none; }
#search-modal .pagefind-ui__result-excerpt { color: var(--text); font-size: 15px; }
#search-modal .pagefind-ui__result-excerpt mark { background: #fde6c8; color: inherit; padding: 0 1px; }
#search-modal .pagefind-ui__result-thumb img { object-fit: cover; }
#search-modal .pagefind-ui__button {
  font-family: "Oswald", sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  background: var(--dark);
  border: 0;
  border-radius: 0;
}
#search-modal .pagefind-ui__button:hover { background: var(--accent); color: #fff; }
body.search-open { overflow: hidden; }
@media (max-width: 600px) {
  .search-toggle span { display: none; }
}
#search-modal .pagefind-ui__search-clear {
  top: 2px;
  right: 2px;
  height: 48px;
  font-family: "Oswald", sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  background: var(--dark);
  border: 0;
  border-radius: 0;
  padding: 0 14px;
  cursor: pointer;
}
#search-modal .pagefind-ui__search-clear:hover,
#search-modal .pagefind-ui__search-clear:focus-visible {
  background: var(--accent);
  color: #fff;
}

/* Related articles ("Související články"): compact rows, small thumbnail on the left */
.related-posts {
  margin-top: 36px;
  padding-top: 16px;
  border-top: 2px solid var(--dark);
}
.related-title {
  margin: 0 0 12px;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
}
.related-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  box-shadow: none;
  color: var(--dark);
}
.related-thumb {
  flex: 0 0 132px;
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--bg-light);
  overflow: hidden;
}
.related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s;
}
.related-item:hover .related-thumb img { transform: scale(1.04); }
.related-text { display: block; min-width: 0; }
.related-meta {
  display: block;
  color: #777;
  font-size: 12px;
  line-height: 1.3;
}
.related-name {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: "Oswald", "Lato", sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
}
.related-item:hover .related-name, .related-item:focus .related-name { color: var(--accent); }
@media (max-width: 600px) {
  .related-grid { grid-template-columns: 1fr; }
  .related-thumb { flex-basis: 108px; }
}
.related-item[hidden] { display: none; }

/* Photo grid (gallery shortcode): thumbnails, lightbox opens data-full */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
  margin: 24px 0;
}
.entry-content .photo-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin: 0;
  border-radius: 0 /* 2px */;
  transition: opacity 0.15s;
}
.entry-content .photo-grid img:hover { opacity: 0.85; }

/* Wide tables/code/long strings scroll or wrap inside the article instead of
   pushing the whole page sideways on phones */
.entry-content { overflow-wrap: break-word; }
.entry-content table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.entry-content pre { max-width: 100%; overflow-x: auto; }
/* Archived comments: long pasted URLs wrap, embeds/images never exceed the column */
.comments-area { overflow-wrap: anywhere; }
.comments-area iframe, .comments-area img, .comments-area video { max-width: 100%; }

/* ---- Bleskovky: short Facebook posts as a timeline feed ---- */
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.bleskovky-lead { margin: 6px 0 0; color: #777; }
.bleskovky-feed {
  position: relative;
  margin: 28px 0 8px;
  padding-left: 26px;
}
/* the timeline rail */
.bleskovky-feed::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--border);
}
.bleskovka {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid #222;
  border-radius: 0 /* 2px */;
  padding: 16px 20px 12px;
  margin: 0 0 22px;
}
.bleskovky-feed .bleskovka::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 20px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px #fff;
}
.bleskovka-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-family: "Oswald", sans-serif;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #777;
}
.bleskovka-date { color: #777; box-shadow: none; }
.bleskovka-date:hover { color: var(--accent); }
.bleskovka-body > :first-child { margin-top: 0; }
.bleskovka-body p { margin: 0 0 12px; }
.bleskovka-video {
  display: block;
  width: 100%;
  max-height: 560px;
  margin: 14px 0 6px;
  background: #000;
  border-radius: 0 /* 4px */;
}
.bleskovka-media {
  display: grid;
  gap: 6px;
  margin: 14px 0 6px;
}
.bleskovka-media-1 { grid-template-columns: 1fr; }
.bleskovka-media-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bleskovka-media-3, .bleskovka-media-many { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.entry-content .bleskovka-media img {
  width: 100%;
  height: auto;
  margin: 0;
  border-radius: 0 /* 3px */;
  object-fit: cover;
}
.entry-content .bleskovka-media-2 img, .entry-content .bleskovka-media-3 img, .entry-content .bleskovka-media-many img { aspect-ratio: 4 / 3; }
.entry-content .bleskovka-media-1 img { max-height: 560px; object-fit: contain; background: var(--bg-light); }
.bleskovka-source {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--bg-light);
  text-align: right;
  font-size: 13px;
}
.bleskovka-source a { color: #777; box-shadow: none; }
.bleskovka-source a:hover { color: var(--accent); }
.bleskovky-single .bleskovka { margin-top: 4px; }
.bleskovky-back { margin: 0 0 14px; font-size: 14px; }
.bleskovky-pager { display: flex; justify-content: space-between; margin: 24px 0 8px; font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: 0.5px; font-size: 14px; }
.bleskovky-pager a { box-shadow: none; }
.widget_bleskovky li { line-height: 1.35; margin-bottom: 8px; }
.widget_bleskovky .count { color: var(--accent); margin-right: 4px; }
.widget_bleskovky .widget-more { margin: 10px 0 0; font-size: 13px; }
@media (max-width: 600px) {
  .bleskovky-feed { padding-left: 18px; }
  .bleskovky-feed::before { left: 3px; }
  .bleskovky-feed .bleskovka::before { left: -20px; width: 10px; height: 10px; }
  .bleskovka { padding: 14px 14px 10px; }
}
/* hosted videos inside articles never exceed the column */
.entry-content video { display: block; max-width: 100%; height: auto; margin: 16px auto; background: #000; border-radius: 0 /* 4px */; }
.bleskovka-source { display: flex; justify-content: flex-end; gap: 18px; flex-wrap: wrap; }
.bleskovka-source .bleskovka-comments { margin-right: auto; }

.bleskovka-video-link {
  display: inline-block;
  margin: 4px 0 12px;
  padding: 9px 16px;
  background: var(--bg-light);
  border-left: 3px solid var(--accent);
  font-family: "Oswald", sans-serif;
  font-size: 14px;
  letter-spacing: 0.4px;
  box-shadow: none;
}
.bleskovka-video-link:hover { color: var(--accent); }
.post-source { margin: 28px 0 0; padding-top: 12px; border-top: 1px solid var(--bg-light); font-size: 14px; color: #777; }
.post-source a { color: #777; }
.post-source a:hover { color: var(--accent); }

/* Bleskovky blended into the home page stream: compact card */
.bleskovka-compact { margin: 0 0 4px; }
.bleskovka-compact-row { display: flex; gap: 18px; align-items: flex-start; }
.bleskovka-thumb { flex: 0 0 192px; position: relative; box-shadow: none; display: block; }
.bleskovka-thumb img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 0 /* 2px */; display: block; }
.bleskovka-badge {
  position: absolute; left: 6px; bottom: 6px;
  background: rgba(0, 0, 0, .7); color: #fff; border-radius: 0 /* 3px */;
  padding: 1px 7px; font-size: 12px; line-height: 1.5;
}
.bleskovka-compact-text { flex: 1 1 auto; min-width: 0; }
.bleskovka-clamp { max-height: 144px; overflow: hidden; position: relative; } /* = photo height, 192 * 3/4 */
.bleskovka-clamp > p:last-child { margin-bottom: 0; }
.bleskovka-compact:not(.is-open) .bleskovka-clamp:has(+ .bleskovka-expand:not([hidden])) {
  -webkit-mask-image: linear-gradient(#000 70%, transparent);
  mask-image: linear-gradient(#000 70%, transparent);
}
.bleskovka-compact.is-open .bleskovka-clamp { max-height: none; }
.bleskovka-expand {
  margin-top: 6px; padding: 0; background: none; border: 0; cursor: pointer;
  color: var(--accent); font-family: "Oswald", sans-serif; font-size: 13px;
  letter-spacing: 0.5px; text-transform: uppercase;
}
.bleskovka-expand:hover { text-decoration: underline; }
@media (max-width: 820px) {
  .bleskovka-compact { padding: 14px 14px 10px; }
  .bleskovka-compact-row { gap: 12px; }
  .bleskovka-thumb { flex-basis: 108px; }
  .bleskovka-clamp { font-size: 15px; max-height: 81px; } /* = photo height, 108 * 3/4 */
}

/* Article card = Bleskovka card with the category as its label */
.bleskovka-cat {
  color: var(--accent); font-weight: 700; box-shadow: none; margin-right: 2px;
}
.bleskovka-cat:hover { text-decoration: underline; }
.article-card .entry-title { font-size: 21px; line-height: 1.25; margin: 0 0 6px; }
.article-card .entry-title a { box-shadow: none; }
.article-card .bleskovka-body p { margin: 0; }
@media (max-width: 820px) { .article-card .entry-title { font-size: 18px; } }

/* Bleskovky have a dark edge, everything else (articles) an orange one */
.bleskovka.article-card { border-left-color: var(--accent); }

.comment-images { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
img.comment-image { display: block; max-width: 100%; max-height: 320px; width: auto; height: auto; border-radius: 0 /* 4px */; }

/* Timeline under the menu: one dot per year, links to where that year starts in the paginated list */
.timeline {
  background: #f3f3f3;
  border-bottom: 1px solid #ddd;
}
.timeline-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10px 24px 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.timeline ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: space-between;
  min-width: max-content;
  position: relative;
}
.tl-years::before {          /* the line the dots sit on */
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 8px;
  height: 2px;
  background: #c8c8c8;
}
.timeline li { flex: 1 0 auto; text-align: center; position: relative; }
.timeline a {
  display: block;
  padding: 0 8px;
  box-shadow: none;
  color: #666;
  font-family: "Oswald", sans-serif;
  font-size: 13px;
  letter-spacing: 0.4px;
}
.tl-dot {
  display: block;
  width: 14px; height: 14px;
  margin: 1px auto 4px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #9a9a9a;
  position: relative;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}
.tl-year { display: block; }
.timeline a:hover, .timeline a:focus-visible { color: var(--accent); }
.timeline a:hover .tl-dot { border-color: var(--accent); transform: scale(1.2); }
.timeline li.is-current a { color: var(--accent); font-weight: 700; }
.timeline li.is-current .tl-dot { background: var(--accent); border-color: var(--accent); }
@media (max-width: 600px) {
  .timeline-inner { padding: 8px 12px 6px; }
  .timeline a { padding: 0 6px; }
}

/* months of the selected year, under the year dots */
.tl-months {
  list-style: none;
  margin: 6px 0 0;
  padding: 6px 0 0;
  border-top: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
  min-width: max-content;
}
.tl-months[hidden] { display: none; }
.tl-months li { flex: 1 0 auto; text-align: center; }
.tl-months a, .tl-months span {
  display: block;
  padding: 2px 8px;
  box-shadow: none;
  font-family: "Oswald", sans-serif;
  font-size: 12px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #666;
}
.tl-months a:hover, .tl-months a:focus-visible { color: var(--accent); }
.tl-months li.is-current a { color: #fff; background: var(--accent); border-radius: 0 /* 3px */; }
.tl-months li.is-empty span { color: #bbb; }
@media (max-width: 600px) {
  .tl-months a, .tl-months span { padding: 2px 5px; }
}

/* The bar stays on screen while you scroll the list (wide screens), so you always see where you are */
.timeline-anchor { scroll-margin-top: 110px; }
/* inside the card list (a flex column with a gap) the empty anchor is a flex item: it added one extra gap, pushing the first
   card 22px below the top of the sidebar and widening the space at every month change. Cancel exactly that gap. */
.post-list > .timeline-anchor { margin-top: -22px; }
@media (min-width: 700px) {
  .timeline { position: sticky; top: 0; z-index: 40; }
}

/* {{% photos cols="N" %}}: N photos per row (shortcode written by the admin app) */
.photo-rows {
  display: grid;
  grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr));
  gap: 8px;
  margin: 24px 0;
}
.photo-rows-1 { --cols: 1; }
.photo-rows-2 { --cols: 2; }
.photo-rows-3 { --cols: 3; }
.photo-rows-4 { --cols: 4; }
.photo-rows-5 { --cols: 5; }
.photo-rows-6 { --cols: 6; }
.photo-rows p { display: contents; margin: 0; }
.photo-rows img { width: 100%; height: auto; display: block; }
@media (max-width: 600px) {
  .photo-rows-3, .photo-rows-4, .photo-rows-5, .photo-rows-6 { --cols: 2; }
}

/* 404 page */
.not-found { padding: 0 0 8px; }
.not-found-code { font-family: "Oswald", sans-serif; font-size: 120px; line-height: 0.85; margin: 0; color: var(--accent); font-weight: 700; }
.not-found-title { font-family: "Oswald", sans-serif; font-size: 34px; margin: 8px 0 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.not-found-text { color: #555; font-size: 18px; margin: 0 0 24px; }
.not-found-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 40px; }
.not-found .button { display: inline-block; padding: 12px 22px; background: var(--accent); color: #fff; border: 0; border-radius: 0; font: 700 14px "Oswald", sans-serif; text-transform: uppercase; letter-spacing: 0.5px; cursor: pointer; box-shadow: none; }
.not-found .button:hover { background: var(--dark); color: #fff; }
.not-found .button-light { background: var(--bg-light); color: var(--dark); }
.not-found .button-light:hover { background: var(--dark); color: #fff; }
.not-found-sub { font-family: "Oswald", sans-serif; font-size: 18px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--accent); border-bottom: 1px solid #ddd; padding-bottom: 8px; margin: 0 0 12px; }
.not-found-list { list-style: none; margin: 0; padding: 0; }
.not-found-list li { padding: 6px 0; border-bottom: 1px solid #eee; }
.not-found-list .post-date { color: #888; font-size: 13px; margin-right: 8px; }
.not-found-redirect { margin: 0 0 20px; max-width: 480px; color: #555; }
.not-found-redirect[hidden] { display: none; }
.not-found-redirect p { margin: 0 0 8px; font-size: 14px; }
.not-found-redirect .link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; }
.not-found-bar { height: 6px; background: #e4e4e4; overflow: hidden; }
.not-found-bar span { display: block; height: 100%; width: 0; background: var(--accent); }
.is-running .not-found-bar span { animation: nf-fill 4.04s linear forwards; }
@keyframes nf-fill { from { width: 0; } to { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .is-running .not-found-bar span { animation-duration: 0.01s; } }
/* the easter egg: the 0 of 404 is a Renault 4 */
.not-found-car { display: inline-block; height: 0.86em; width: auto; vertical-align: -0.03em; margin: 0 0.06em; animation: nf-drive 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; transition: transform 0.2s ease; }
.not-found-car:hover { transform: translateY(-6px) rotate(-2deg); }
@keyframes nf-drive { from { transform: translateX(-160px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .not-found-car { animation: none; } }

/* a Bleskovka that is only pictures (or a video): a small label instead of text, the media does the talking */
.bleskovka-photo-label { margin: 0 0 12px; color: #777; font-size: 14px; letter-spacing: .02em; }
.bleskovka-compact .bleskovka-photo-label { margin: 0; align-self: center; }
.bleskovka-photo-only .bleskovka-media { margin-top: 0; }

/* where an embedded video came from (YouTube) */
.video-source { margin: 6px 0 0; font-size: 13px; color: #777; }
.video-source a { color: #777; }
.video-source a:hover { color: var(--accent); }

/* YouTube player: 16:9, as wide as the text */
.youtube-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; margin: 12px 0; background: #000; }
.youtube-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Facebook archive: link to answer a comment on Facebook; the live discussion (Disqus) */
.comment-fb { margin-left: 12px; font-size: 12px; box-shadow: none; }
.discussion-area { margin-top: 32px; }
.discussion-button {
  font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: 0.5px;
  background: var(--accent); color: #fff; border: 0; padding: 12px 22px; cursor: pointer; font-size: 15px;
}
.discussion-button:hover { background: var(--dark); }

/* quick search: link to the full page; the year filter belongs to that page only */
.search-modal-all { margin: 0 0 10px; font-size: 14px; }
#search-modal .pagefind-ui__filter-panel { display: none; }

/* the full search page (/hledat/) */
#main-content:has(.search-page) .content-area { width: 100%; max-width: none; flex: 1 1 100%; float: none; }
.search-page-form { display: flex; flex-wrap: wrap; gap: 8px; }
.search-page-form input, .search-page-form select { font: inherit; padding: 10px 12px; border: 1px solid #ccc; background: #fff; color: inherit; }
.search-page-form input { flex: 1 1 280px; min-width: 0; }
.search-page-status { margin: 12px 0; font-size: 14px; color: #777; }
.search-page-results { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(420px, 100%), 1fr)); column-gap: 28px; }
.search-page-results li { border-top: 1px solid var(--bg-light); margin: 0; }
.search-page-results a { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 12px 0; color: inherit; }
.search-page-results a:hover strong { color: var(--accent); }
.search-page-picture { aspect-ratio: 4 / 3; background: var(--bg-light); }
.search-page-picture img { width: 100%; height: 100%; object-fit: cover; display: block; }
.search-page-results strong, .search-page-date, .search-page-excerpt { display: block; }
.search-page-results strong { font-size: 15px; line-height: 1.3; }
.search-page-date { font-size: 12px; color: #888; }
.search-page-excerpt { font-size: 13px; line-height: 1.4; color: #666; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.search-page-excerpt mark { background: #fde6c8; color: inherit; }
@media (max-width: 480px) { .search-page-results a { grid-template-columns: 90px minmax(0, 1fr); } }
/* on the search page the header picture is only a strip (logo), so the results start near the top */
body:has(.search-page) .hero-banner { height: auto; min-height: 150px; }
body:has(.search-page) .hero-banner .site-header-inner { padding-bottom: 16px; }
body:has(.search-page) .hero-banner .hero-caption { display: none; }
body:has(.search-page) .hero-banner .site-logo { max-height: 80px; }
