.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.page-layout {
  grid-template-columns: 1fr;
  gap: 0;
  padding-block: 0 42px;
}

.content-column {
  position: relative;
  min-width: 0;
  margin-top: 0;
  overflow: hidden;
  padding: 0;
  background: #ffffff;
}

.content-column > .content-search-panel.search-panel {
  position: absolute !important;
  top: 24px;
  right: 28px;
  z-index: 2;
  width: min(360px, calc(100% - 56px)) !important;
  min-height: 0;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-color: #b8c5d1;
  background: #f8fafc;
  box-shadow: 0 4px 12px rgba(21, 34, 50, 0.08);
}

.content-column > .content-search-panel.search-panel .search-panel__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
}

.content-column > #system-message-container {
  margin: 24px 28px 0;
}

.content-column .com-content-category-blog > .page-header:first-child {
  margin: 0;
  padding: 24px 420px 18px 28px;
  border-bottom: 3px solid var(--brand-red);
}

.content-column .com-content-category-blog > .page-header:first-child h1 {
  margin: 0;
  min-height: 48px;
  padding: 0 0 0 14px;
  border-bottom: 0;
  border-left: 5px solid var(--brand-red);
  font-size: clamp(1.75rem, 2vw, 2.15rem);
  line-height: 1.18;
  letter-spacing: 0;
}

.content-column .com-content-category-blog > h1:first-child {
  min-height: 48px;
  margin: 0;
  padding: 24px 420px 18px 14px;
  border-bottom: 3px solid var(--brand-red);
  border-left: 5px solid var(--brand-red);
  color: var(--text);
  font-size: clamp(1.75rem, 2vw, 2.15rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: 0;
}

.content-column > h1:first-of-type {
  width: calc(100% - 420px);
  min-height: 48px;
  margin: 24px 28px 18px;
  padding-left: 14px;
  border-bottom: 3px solid var(--brand-red);
  border-left: 5px solid var(--brand-red);
}

.content-column .com-content-article,
.content-column .com-content-category,
.content-column .site-search-results,
.content-column > .item-page {
  padding: 24px 28px 30px;
}

.content-column .com-content-category-blog__items {
  width: 100%;
  padding: 6px 28px 30px;
}

.content-column .com-content-category-blog__items + .com-content-category-blog__items {
  padding-top: 0;
}

.content-column .blog-items {
  display: block;
}

.content-column .blog-item {
  padding-block: 24px;
  border-bottom: 1px solid #e3e8ee;
}

.content-column .blog-item:last-child {
  border-bottom: 0;
}

.content-column .blog-item .item-content > .page-header {
  margin: 0 0 10px;
}

.content-column .blog-item .item-content > .page-header h2 {
  margin: 0;
  font-size: 1.36rem;
  line-height: 1.3;
  letter-spacing: 0;
  font-weight: 800;
}

.content-column .blog-item .item-content > .page-header h2 a,
.content-column .blog-item .item-content > p a,
.content-column .blog-item .item-content > ol a,
.content-column .blog-item .item-content > ul a {
  color: var(--link);
  font-weight: 800;
  text-decoration-thickness: 0.11em;
  text-underline-offset: 0.16em;
}

.content-column .blog-item p {
  max-width: 96ch;
  line-height: 1.68;
  color: var(--text);
  font-size: 1rem;
}

.content-column .blog-item p:empty,
.content-column .blog-item p:has(> br:only-child) {
  display: none;
}

.content-column .blog-item strong {
  color: #111827;
  font-weight: 800;
}

.content-column .article-info {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.45;
}

.content-column .article-info dt,
.content-column .article-info dd {
  margin: 0;
}

.content-column .article-info-term {
  display: none;
}

.content-column .createdby,
.content-column .hits {
  display: none;
}

.content-column .category-name,
.content-column .published {
  display: inline-flex;
  gap: 0.3em;
  align-items: baseline;
  color: #344253;
  font-weight: 700;
}

.content-column .category-name a {
  font-weight: 700;
}

.content-column .icon-fw {
  display: none;
}

.content-column .item-content > p > img:only-child {
  display: block;
  max-width: min(100%, 820px);
  height: auto;
  margin-top: 12px;
}

.content-column .blog-item + .blog-item {
  margin-top: 0;
}

.content-column .blog-item .item-content > p:first-of-type {
  margin-top: 0;
}

.content-column .cat-children {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
  max-width: 760px;
  margin: 22px 28px 30px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fbfcfe;
}

.content-column .cat-children > h3:first-child {
  grid-column: 1 / -1;
  margin: 0 0 12px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
}

.content-column .com-content-category-blog__child {
  margin: 0;
}

.content-column .cat-children .item-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
}

.content-column .cat-children .item-title a {
  display: block;
  padding: 10px 12px;
  border: 1px solid #c5d0da;
  border-radius: 5px;
  background: #ffffff;
  color: var(--link);
  font-weight: 800;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.16em;
}

.content-column .cat-children .item-title a:hover {
  border-color: #95a8ba;
  background: #eef3f8;
  color: var(--link-hover);
}

/*
  Older preview styles kept these classes visible; Joomla content uses the
  category/date classes above, so these rules only affect legacy fallbacks.
*/
.content-column .article-info-term--legacy {
  color: #344253;
  font-weight: 800;
}

.content-column .item-image,
.content-column figure,
.content-column table {
  max-width: 100%;
}

.content-column table {
  width: 100%;
}

.site-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
}

.site-search-form input[type="search"] {
  width: 100%;
  min-height: 32px;
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: 5px;
  font: inherit;
  font-size: 0.95rem;
}

.site-search-form button {
  min-height: 32px;
  padding: 5px 9px;
  border: 1px solid #15427e;
  border-radius: 5px;
  background: var(--brand-blue);
  color: #ffffff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.site-search-form button:hover {
  background: var(--link-hover);
}

.document-link-type {
  display: inline-block;
  margin-left: 0.25em;
  padding: 0.08em 0.32em;
  border: 1px solid #748494;
  border-radius: 4px;
  background: #f8fafc;
  color: #1d2733;
  font-size: 0.82em;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  vertical-align: 0.08em;
}

.official-board-restored {
  color: var(--text);
}

.official-board-restored h2,
.official-board-restored h3 {
  color: var(--text);
  font-weight: 800;
}

.official-board-restored p {
  max-width: 96ch;
  line-height: 1.65;
}

.board-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 1rem 0 1.8rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #ffffff;
}

.board-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  background: #ffffff;
}

.board-table caption {
  padding: 0.8rem 0.9rem 0.45rem;
  color: var(--text);
  font-weight: 800;
  text-align: left;
}

.board-table th,
.board-table td {
  padding: 0.65rem 0.75rem;
  border: 1px solid #9aa8b5;
  vertical-align: top;
  text-align: left;
}

.board-table thead th {
  background: #eef3f8;
  color: var(--text);
  font-weight: 800;
}

.board-table tbody th[scope="row"] {
  width: 30%;
  color: #17202a;
  font-weight: 800;
}

.board-files {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.board-file-download {
  min-height: 36px;
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  padding: 0.36rem 0.65rem;
  border: 1px solid #8da2b5;
  border-radius: 5px;
  background: #f8fafc;
  color: var(--link);
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.board-file-download:hover {
  background: #eef3f8;
  color: var(--link-hover);
}

.board-file-warning {
  display: block;
  max-width: 42ch;
  margin-top: 0.3rem;
  color: #6b2b00;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.45;
}

.official-board-archive summary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 980px) {
  .content-column > .content-search-panel.search-panel {
    position: static !important;
    width: 100% !important;
    margin: 18px 18px 0;
  }

  .content-column > h1:first-of-type {
    width: auto;
    min-height: 0;
  }

  .content-column .com-content-category-blog > .page-header:first-child {
    padding: 18px;
  }

  .content-column .com-content-category-blog > .page-header:first-child h1 {
    min-height: 0;
    padding-right: 0;
  }

  .content-column .com-content-category-blog > h1:first-child {
    min-height: 0;
    padding: 18px;
  }

  .content-column .com-content-category-blog__items,
  .content-column .com-content-article,
  .content-column .com-content-category,
  .content-column .site-search-results,
  .content-column > .item-page {
    padding-inline: 18px;
  }
}

@media (max-width: 560px) {
  .content-column > .content-search-panel.search-panel {
    grid-template-columns: 1fr;
    width: calc(100% - 36px) !important;
  }

  .content-column .cat-children {
    grid-template-columns: 1fr;
    margin-inline: 18px;
    padding: 14px;
  }

  .official-board-restored .board-table-wrap {
    overflow-x: visible;
    border: 0;
    background: transparent;
  }

  .official-board-restored .board-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0 12px;
  }

  .official-board-restored .board-table caption {
    padding-inline: 0;
  }

  .official-board-restored .board-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .official-board-restored .board-table tbody tr {
    display: block;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #ffffff;
  }

  .official-board-restored .board-table th,
  .official-board-restored .board-table td {
    display: block;
    padding: 0.28rem 0;
    border: 0;
  }

  .official-board-restored .board-table tbody th[scope="row"] {
    width: auto;
    padding-bottom: 0.5rem;
    font-size: 1rem;
    line-height: 1.35;
  }

  .official-board-restored .board-table td::before {
    display: inline-block;
    min-width: 7.2rem;
    color: #344253;
    font-weight: 800;
  }

  .official-board-restored .board-table td:nth-child(2)::before {
    content: "Číslo: ";
  }

  .official-board-restored .board-table td:nth-child(3)::before {
    content: "Kategorie: ";
  }

  .official-board-restored .board-table td:nth-child(4)::before {
    content: "Vyvěšeno od: ";
  }

  .official-board-restored .board-table td:nth-child(5)::before {
    content: "Sejmuto: ";
  }

  .official-board-restored .board-table td:nth-child(6)::before {
    content: "Soubory: ";
  }

  .official-board-restored .board-table td:nth-child(6)::before {
    margin-bottom: 0.3rem;
  }

  .official-board-restored .board-file-download {
    width: 100%;
    justify-content: center;
  }
}
