/* Minimalistický, čistý design */
body {
    font-family: Arial, sans-serif;
    background-color: #fff;
    color: #333;
    margin: 0;
    padding: 0;
}

header, footer {
    background-color: #f5f5f5;
    padding: 20px;
    text-align: center;
}

header h1 {
    margin: 0;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

nav li {
    display: inline-block;
    margin: 0 10px;
}

main {
    padding: 20px;
}

/* Tabulkový styl pro srovnání */
table.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

table.comparison-table th,
table.comparison-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

table.comparison-table th {
    background-color: #e0e0e0;
}

a {
    text-decoration: none;
    color: #0066cc;
}

a:hover {
    text-decoration: underline;
}

/* Styl pro zelené tlačítko */
.green-button {
    background-color: #28a745;
    color: #fff;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
}

.green-button:hover {
    background-color: #218838;
}

/* Styl pro tlačítka filtrů */
.filter-button {
    padding: 8px 12px;
    margin-right: 10px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    cursor: pointer;
    border-radius: 4px;
}
.filter-button.active {
    background-color: #28a745;
    color: #fff;
    border-color: #218838;
}

/* Styl pro seřazený sloupec */
th.sorted {
    background-color: #e0f7e9 !important;
}

/* Příjemné odstíny pro ceny registrace */
.price-green {
    background-color: #d4edda; /* světlá zelená */
    font-weight: bold;
    padding: 4px 6px;
    border-radius: 4px;
}

.price-orange {
    background-color: #fff3cd; /* světlá oranžová */
    font-weight: bold;
    padding: 4px 6px;
    border-radius: 4px;
}

.price-red {
    background-color: #f8d7da; /* světlá červená */
    font-weight: bold;
    padding: 4px 6px;
    border-radius: 4px;
}

.price-dotovana {
    color: red; /* světlá červená */
    font-weight: bold;
    padding: 4px 6px;
    border-radius: 4px;
}

.sidebar {
    background-color: #f5f5f5;
    padding: 10px;
  }
  
  .sidebar h3 {
    font-size: 20px;
    margin-bottom: 10px;
  }
  
  .menu-group h4 {
    font-size: 16px;
    margin: 10px 0 5px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 3px;
  }
  
  .menu-item {
    margin-bottom: 5px;
  }
  
  .menu-item a {
    color: #333;
    text-decoration: none;
    display: block;
    padding: 5px;
    border-radius: 4px;
    transition: background 0.2s ease;
  }
  
  .menu-item a:hover, .menu-item.active a {
    background-color: #ddd;
  }
  
  .menu-icon {
    margin-right: 5px;
  }

  /* ========== Layout foundation ========== */
main {
  padding: 0; /* přebíráme spacing přes sekce */
}

.content {
  max-width: 1050px;
  margin: 0 auto;
  padding: 26px 18px 40px;
}

header, footer {
  background-color: #f5f5f5;
  padding: 22px 16px;
  text-align: center;
  border-bottom: 1px solid #e9e9e9;
}

footer {
  border-top: 1px solid #e9e9e9;
  border-bottom: none;
}

/* top notice bar */
.notice {
  background: #111;
  color: #fff;
  font-size: 13px;
  padding: 8px 12px;
  text-align: center;
}
.notice a { color: #fff; text-decoration: underline; }

/* ========== Hero ========== */
.hero {
  background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
  border-bottom: 1px solid #eee;
}

.hero-inner {
  max-width: 1050px;
  margin: 0 auto;
  padding: 26px 18px;
}

.hero h2 {
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: -0.2px;
}

.lead {
  margin: 0 0 14px;
  font-size: 16px;
  color: #444;
  line-height: 1.5;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.badge {
  background: #f2f2f2;
  border: 1px solid #e6e6e6;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 13px;
  color: #333;
}

/* ========== Cards ========== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 6px 0 20px;
}

.card {
  border: 1px solid #eee;
  background: #fff;
  border-radius: 12px;
  padding: 14px 14px 12px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}

.card .label {
  font-size: 13px;
  color: #666;
  margin-bottom: 6px;
}

.card .value {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 6px;
}

.card .sub {
  font-size: 13px;
  color: #555;
}

/* value states */
.pos { color: #0a7a3c; font-weight: 600; }
.neg { color: #b00020; font-weight: 600; }

/* ========== Two-column panels ========== */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 10px;
}

.panel {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 14px;
  background: #fff;
}

.panel h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.panel .hint {
  margin: 10px 0 0;
  font-size: 13px;
  color: #666;
}

/* ranked list */
.ranked {
  margin: 0;
  padding-left: 18px;
}
.ranked li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed #eee;
}
.ranked li:last-child { border-bottom: none; }
.ranked .name { color: #222; }
.ranked .num { font-variant-numeric: tabular-nums; color: #222; }

/* winners/losers split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.small {
  margin: 0 0 6px;
  font-size: 13px;
  color: #666;
  font-weight: 600;
}

/* ========== Callout ========== */
.callout {
  margin-top: 16px;
  border: 1px solid #eaeaea;
  background: #fafafa;
  border-radius: 12px;
  padding: 14px;
}

.callout h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.callout p {
  margin: 0;
  color: #444;
  line-height: 1.5;
  font-size: 14px;
}

/* ========== Responsive ========== */
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  header h1 { font-size: 28px; }
}

/* === Remove "old paper" vibe === */
.hero {
  background: #fff;              /* pryč gradient */
  border-bottom: 1px solid #eee; /* klidně může zůstat, nebo dej none */
}

.card, .panel, .callout {
  box-shadow: none;              /* méně “plastové” */
  border: 1px solid #eee;        /* jemná linka */
}

/* pryč dashed separator v seznamech */
.ranked li {
  border-bottom: none;
  padding: 6px 0;
}

/* místo dashed dej jen jemný spacing */
.ranked li + li {
  margin-top: 4px;
}

/* volitelně: trochu lepší typografie v listech */
.ranked .num {
  color: #111;
  font-weight: 600;
}

/* pokud chceš celkově čistší look, zjemni header/footer */
header, footer {
  background-color: #fafafa;
  border-bottom: 1px solid #eee;
}
footer {
  border-top: 1px solid #eee;
  border-bottom: none;
}

.hero { border-bottom: none; }

.ranked .num {
  min-width: 120px;
  text-align: right;
}

/* academic-ish text rhythm */
.panel p.hint, .hint {
  margin: 0 0 12px;
  font-size: 13px;
  color: #666;
  line-height: 1.45;
}

.callout code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 12.5px;
}

/* badges as controls */
.badge { cursor: default; }
.badge a { color: inherit; }

/* numbers & table readability */
.comparison-table td { font-variant-numeric: tabular-nums; }
.comparison-table th { font-weight: 700; }
.comparison-table th, .comparison-table td { padding: 10px 8px; }

/* Wider content container for data-heavy pages */
.content-wide {
  max-width: 1600px;
  margin: 0 auto;
}

/* Table overflow handling */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Make dense tables readable */
.comparison-table-wide {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}
.comparison-table-wide th,
.comparison-table-wide td {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ΔDomains coloring */
.delta {
  font-weight: 700;
}
.delta.pos { color: #0a7a29; } /* green */
.delta.neg { color: #b00020; } /* red */

/* --- Dense table mode (registrars.php) --- */
.table-scroll-top {
  overflow-x: auto;
  overflow-y: hidden;
  height: 14px;           /* only scrollbar height */
  margin-bottom: 8px;
  border-radius: 8px;
  background: #f5f5f5;
}
.table-scroll-top > div {
  height: 1px;            /* minimal height for width sizing */
}

/* keep the real table scroll as before */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* tighter typography for big tables */
.comparison-table-wide {
  font-size: 13px;        /* was default; smaller */
}
.comparison-table-wide th,
.comparison-table-wide td {
  padding: 6px 8px;       /* smaller than before */
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* allow header wrapping to shrink narrow columns */
.comparison-table-wide th {
  white-space: normal;
  line-height: 1.15;
}

/* narrow helper classes (optional) */
.col-pct { width: 92px; }
.col-short { width: 86px; }
.col-base { width: 72px; }