* { box-sizing: border-box; }
/* Základní písmo */
@font-face {
  font-family: 'Inter';
  src: url('InterVariable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
/* Kurzíva (Italic) */
@font-face {
  font-family: 'Inter';
  src: url('InterVariable-Italic.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

h2 { font-size: 1.25rem; margin: 0 0 16px; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: #f6f7f9;
  color: #1a1a1a;
  line-height: 1.5;
}

/* header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: #1036b3;
  color: #fff;
}
.site-header .logo {
  font-size: 1.0rem;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  text-decoration: none;
}
.search-form { display: flex; gap: 8px; }
.search-form input {
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  width: 240px;
}
.search-form button {
  padding: 8px 16px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}
.search-form button:hover { background: #1d4ed8; }

/* 3-col layout - new */
.layout-3col {
  display: grid;
  grid-template-columns: 2.5fr 5fr 2.5fr; /* Odpovídá 25 % / 50 % / 25 % */
  gap: 4px;
  max-width: 1920px;
  margin: 16px;	/* bylo 20px auto; */
  padding: 0 2px;
  box-sizing: border-box; /* Zajistí, že padding nerozbije šířku */
}

@media (max-width: 900px) {
  .layout-3col { 
    grid-template-columns: 1fr; 
  }
  .col-left, .col-right { 
    display: none; 
  }
}

.col-left h3, .col-right h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: #6b7280;
  margin: 0 0 8px;
  letter-spacing: 0.05em;
}

/* Tlačítko / jeden řádek pro rozbalení */
.category-dropdown summary {
  list-style: none; /* Skryje výchozí trojúhelníček ve Firefoxu */
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  
  padding: 8px 10px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #1a1a1a;
  letter-spacing: 0.05em;
  user-select: none;
}

/* Skrytí výchozí šipky v Chrome / Safari */
.category-dropdown summary::-webkit-details-marker {
  display: none;
}

/* Vlastní šipka vpravo */
.category-dropdown summary::after {
  content: "▼";
  font-size: 0.7rem;
  color: #6b7280;
  transition: transform 0.2s ease;
}

/* Otočení šipky po rozkliknutí */
.category-dropdown[open] summary::after {
  transform: rotate(180deg);
}

.categories { list-style: none; padding: 4px 0 0; margin: 0; }
.categories li { margin: 0; }
.categories a {
  display: block;
  padding: 6px 10px;
  color: #1a1a1a;
  text-decoration: none;
  border-radius: 4px;
}
.categories a:hover { background: #e5e7eb; }
.categories a.active { background: #1036b3; color: #fff; }

/* Checkbox řádky multi-select filtru sekcí */
.cat-filter-form { margin: 0; }
.categories .cat-option {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  color: #1a1a1a;
  user-select: none;
}
.categories .cat-option:hover { background: #e5e7eb; }
.categories .cat-option input[type="checkbox"] {
  margin: 0;
  flex: 0 0 auto;
  accent-color: #1036b3;
  cursor: pointer;
}
.categories .cat-reset a { color: #1036b3; font-weight: 600; }

/* Poslední řádek dropdownu: reverzní výběr a zavření vedle sebe */
.categories .cat-actions {
  display: flex;
  gap: 4px;
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid #e5e7eb;
}
.categories .cat-invert-btn {
  display: block;
  width: auto;
  flex: 1 1 0;
  padding: 6px 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #1036b3;
  font: inherit;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}
.categories .cat-invert-btn:hover { background: #e5e7eb; }

.placeholder {
  color: #9ca3af;
  font-size: 0.9em;
  font-style: italic;
}

/* articles */
.articles { display: flex; flex-direction: column; gap: 1px; }
.article {
  background: #fff;
  /* border-radius: 8px; */
  padding: 4px 10px;
  /* border: 1px solid #e5e7eb; */
}
.article h2 {
  margin: 0 0 3px;
  font-size: 0.80rem;
  font-weight: 500;
  line-height: 1.2;
  /* Omezení na 2 řádky */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article h2 a {
  color: #111827;
  text-decoration: none;
}
.article h2 a:hover { color: #2563eb; }
.meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.65rem;
  color: #6b7280;
}
.meta time {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.meta time::before {
  content: "|";
  color: #d1d5db;
}
.meta .sep {
    margin: 0 0px;
    color: #d1d5db;
    font-weight: 400;
}
@media (max-width: 600px) {
    .meta .sep { display: none; }
}
.site { font-weight: 400; color: #4b5563; }
.cat {
  padding: 2px 8px;
  background: #f3f4f6;
  border-radius: 3px;
  font-size: 0.8em;
}
/* solidnost */
.solid-dot {
  display: inline-block;
  width: 6px !important;
  height: 6px !important;
  border-radius: 50%;
}
.solid-1 { width: 22px; height: 22px; background: #008080; }
.solid-2 { width: 19px; height: 20px; background: #008080; }
.solid-3 { width: 16px; height: 18px; background: #008080; }
.solid-4 { width: 13px; height: 16px; background: #008080; }
.solid-5 { width: 10px; height: 14px; background: #008080; }

/* base styly .row-filters platí pro oba */
/* Filtry v levém panelu (weby) */
.lc-filters { }
.lc-filters .solid-btn { }

/* Počet webů vpravo v řádku filtrů levého panelu */
.site-counts {
  margin-left: auto;
  padding-left: 8px;
  font-size: 0.7rem;
  color: #6b7280;
  white-space: nowrap;
}

/* Filtry ve středním panelu (články) */
.mc-filters { }
.mc-filters .solid-btn { }

/* pagination */
.pagination {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  margin: 8px 0 10px;
  font-size: 0.9rem;
}
.pagination a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}
.pagination a:hover { text-decoration: underline; }
.page-num { color: #6b7280; }

.empty {
  text-align: center;
  color: #6b7280;
  padding: 48px 16px;
  background: #fff;
  border-radius: 8px;
}

.result-count { color: #6b7280; margin-bottom: 16px; }
.error { color: #b91c1c; font-weight: 600; }

/* widgety */
.widget {
  background: #fff;
  border: 1px solid #e5e7eb;
  /* border-radius: 8px; */
  padding: 12px 16px;
  margin-bottom: 10px;
}
.widget h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: #111827;
  text-transform: none;
  letter-spacing: normal;
}
.widget iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: 4px;
  display: block;
}
.widget a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}
.widget a:hover { text-decoration: underline; }
.widget-notice {
  background: #fef3c7;
  border-color: #fcd34d;
}
.widget-notice h3 { color: #92400e; }
.widget-video { padding: 0px; }
.widget-link h3 { margin-bottom: 4px; }

.no-title {
  font-size: 0.85em;
  color: #6b7280;
  word-break: break-all;
  font-weight: 400;
}

/* Kurzovní lístek- WP
.exch-a {
  float:left;
  width:50%;
  height:100px;
  border:none;
}
.exch-b {
  float:left;
  width:50%;
  height:100px;
  border:none;
}
*/
.kurzy-wrapper {
  display: flex;
  gap: 8px; /* Mezera mezi oběma tabulkami */
  width: 100%;
}

.kurzy-wrapper iframe {
  flex: 1;       /* Každý iframe zabere přesně polovinu dostupné šířky */
  min-width: 0;  /* Dovolí zmenšení pod výchozích 300 px */
  height: 110px; /* Výšku dolaďte podle počtu řádků */
  border: none;
}

.kurzy-zdroj {
  margin-top: 0px;
  font-size: 12px;
}

/* === Inline widget + TOP 5 (první row v mainu) === */
.row-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  margin-bottom: 4px;
}
.row-top.row-top-both {
  grid-template-columns: 7fr 3fr;
}
@media (max-width: 900px) {
  .row-top.row-top-both { grid-template-columns: 1fr; }
}

.inline-widgets .widget { margin-bottom: 0; }

.top-links {
  background: #fff;
  border: 1px solid #e5e7eb;
  padding: 8px 12px;
}
.top-links h3 {
  margin: 0 0 8px;
  border-bottom: 2px solid #1036b3;
  font-size: 0.85rem;
  /* text-transform: uppercase; */
  letter-spacing: 0.05em;
  line-height: 1;
}
.top-links h3 span {
  display: inline-block;
  padding: 6px 8px;
  background-color: #1036b3;
  color: #ffffff;
}
.top-links ol {
  list-style: none;
  margin: 0;
  padding-left: 0; /* Změněno z 22px na 0, aby text neujížděl doprava */
  font-size: 0.80rem;
}
.top-links li {
  margin: 2px 0;
  line-height: 1.3;
  /* Omezení na dva řádky */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.top-links li a { color: #111827; text-decoration: none; }
.top-links li a:hover { color: #2563eb; }
.top-link-site {
  font-size: 0.70rem;
  font-weight: 600;
  color: #b00303;
  margin-left: 0px;
}

/* === Filtr solidnosti – barevná tlačítka === */
.row-filters {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px 0;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.solid-btn {
  display: inline-block;
  /* width: 24px; */
  /* height: 24px; */
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  opacity: 0.35;
  transition: opacity 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.solid-btn:hover { opacity: 0.75; }
.solid-btn.active { opacity: 1; border-color: #005b5b; }
.solid-btn-all {
  width: auto;
  padding: 0 10px;
  font-size: 0.75rem;
  color: #374151;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  font-weight: 500;
  line-height: 22px;
}
.solid-btn-all.active {
  background: #1036b3;
  color: #fff;
  border-color: #1036b3;
}

.active-site-filter {
  margin-left: auto;
  font-size: 0.75rem;
  color: #6b7280;
}
.active-site-filter a {
  color: #b91c1c;
  text-decoration: none;
  font-weight: 700;
  margin-left: 4px;
}

/* Sekce dropdown v inline řádku filtrů (střední sloupec) */
.cat-filter-inline {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
}
.row-filters .category-dropdown {
  margin: 0;
}
.row-filters .category-dropdown summary {
  height: 24px;
  padding: 0 10px;
  gap: 4px;
  font-size: 0.75rem;
  line-height: 22px;
  box-sizing: border-box;
  border-radius: 4px;
  background: #f3f4f6;
  border-color: #d1d5db;
}
.row-filters .category-dropdown summary::after {
  margin-left: 6px;
}
.row-filters .category-dropdown .categories {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 200px;
  max-height: 400px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  padding: 4px;
  margin: 0;
  z-index: 20;
}
.row-filters .category-dropdown .categories a {
  font-size: 0.8rem;
  padding: 6px 8px;
}
.row-filters .category-dropdown .categories .cat-option {
  font-size: 0.8rem;
  padding: 6px 8px;
}
.row-filters .category-dropdown .categories .cat-invert-btn {
  font-size: 0.8rem;
  padding: 6px 8px;
}
/* Pojistka: zavřené <details> nesmí propustit absolutně pozicovaný seznam */
.row-filters .category-dropdown:not([open]) .categories {
  display: none;
}

/* Klikatelný název webu */
.site a {
  color: #4b5563;
  text-decoration: none;
}
.site a:hover {
  color: #2563eb;
  text-decoration: underline;
}

/* === Levý panel: seznam webů === */
.site-panel {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Search input s lupou */
.site-search-form {
  position: relative;
  display: flex;
}
.site-search-input {
  flex: 1;
  padding: 6px 28px 6px 10px; /* pravý padding kvůli lupě */
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 0.8rem;
  font-family: inherit;
  background: #fff;
}
.site-search-input:focus {
  outline: 2px solid #2563eb;
  outline-offset: -1px;
}

/* Skryjeme výchozí křížek pro type="search" (Chrome/Safari) */
.site-search-input::-webkit-search-cancel-button { display: none; }
.site-search-icon {
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 4px 6px;
  cursor: pointer;
  color: #6b7280;
  display: flex;
  align-items: center;
}
.site-search-icon:hover { color: #111827; }

/* Seznam webů */
.site-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid #e5e7eb;
}
.site-item {
  border-bottom: 1px solid #e5e7eb;
}
.site-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 6px;
  color: #111827;
  text-decoration: none;
  font-size: 0.82rem;
  line-height: 1.2;
}
.site-link:hover { background: #f3f4f6; }
.site-item.expanded .site-link {
  background: #eef2ff;
  font-weight: 600;
}
.site-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.site-cat {
  font-size: 0.62rem;
  color: #6b7280;
  background: #f3f4f6;
  padding: 1px 5px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

/* Rozbalený detail webu */
.site-detail {
  padding: 4px 8px 8px;
  background: #fafbfc;
  border-top: 1px dashed #e5e7eb;
}
.site-detail-articles {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-detail-articles li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.76rem;
}
.site-detail-articles li:last-child { border-bottom: none; }
.site-detail-articles li a {
  color: #111827;
  text-decoration: none;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.25;
}
.site-detail-articles li a:hover { color: #2563eb; }
.site-detail-articles li time {
  flex-shrink: 0;
  color: #9ca3af;
  font-size: 0.68rem;
  white-space: nowrap;
}
.site-detail-empty {
  color: #9ca3af;
  font-size: 0.75rem;
  font-style: italic;
  text-align: center;
  padding: 6px;
  margin: 0;
}
.site-detail-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  font-size: 0.75rem;
}
.site-detail-nav a,
.site-detail-nav .disabled {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
  padding: 2px 8px;
}
.site-detail-nav .disabled { color: #d1d5db; cursor: default; }
.site-detail-page { color: #6b7280; }

/* Pagination levého panelu */
.site-pagination {
  margin: 6px 0;
  font-size: 0.78rem;
}

/* Neaktivní weby v levém panelu */
.site-link-off .site-name {
  color: #9ca3af;
}
.site-off {
  font-size: 0.60rem;
  color: #b91c1c;
  background: #fee2e2;
  padding: 1px 5px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  font-weight: 600;
}
