/* Hlídač zákonů – vzhled podle schválené makety */
:root {
  --ground: #F6F6F3;
  --surface: #FFFFFF;
  --line: #E3E3DE;
  --line-soft: #EEEEEA;
  --ink: #15171C;
  --ink-2: #3C4049;
  --muted: #5B5F68;
  --accent: #1D4ED8;
  --accent-dark: #1E3A8A;
  --warn: #B45309;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: Inter, system-ui, sans-serif; font-size: 15px; line-height: 1.5; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { font-family: 'Space Grotesk', sans-serif; font-weight: 600; margin: 0; }
h1 { font-size: 34px; letter-spacing: -0.5px; line-height: 1.15; }
h2 { font-size: 20px; }
h3 { font-size: 16px; font-family: Inter, sans-serif; }
code { background: #F0F0EC; padding: 1px 5px; border-radius: 4px; }
.sr-only { position: absolute; left: -9999px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.strong { font-weight: 600; }
.nowrap { white-space: nowrap; }

/* hlavička */
.top { background: var(--ink); color: #fff; }
.top-in { max-width: 1320px; margin: 0 auto; padding: 16px 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand-name { font-family: 'Space Grotesk', sans-serif; font-size: 20px; font-weight: 600; }
.brand-sub, .sync { font-size: 13px; color: #B8BCC6; }
.top nav { display: flex; flex-wrap: wrap; gap: 4px; }
.top nav a { color: #D4D7DE; text-decoration: none; padding: 10px 14px; border-radius: 8px; font-size: 14px; }
.top nav a:hover { color: #fff; background: #2A2E37; }
.top nav a.active { color: #fff; background: #2A2E37; font-weight: 500; }

/* rozložení */
.wrap { max-width: 1320px; margin: 0 auto; padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.lead { margin: 8px 0 0; font-size: 16px; color: var(--muted); max-width: 720px; }
.search { display: flex; gap: 8px; }
.search input { width: 300px; max-width: 60vw; height: 44px; padding: 0 14px; border: 1px solid #D6D6D0; border-radius: 10px; font: inherit; font-size: 14px; background: #fff; }
.search button, .btn { height: 44px; padding: 0 18px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; text-decoration: none; }
.btn:hover, .search button:hover { background: var(--accent-dark); color: #fff; }
.split { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.main-col { flex: 999 1 560px; min-width: 0; }
.side-col { flex: 1 1 320px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }

/* karty */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.pad { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.card-head { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.card-head a { font-size: 14px; font-weight: 500; }
.empty { padding: 20px; color: var(--muted); margin: 0; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.kpi { padding: 20px; }
.kpi-label { font-size: 13px; color: var(--muted); font-weight: 500; }
.kpi-value { font-family: 'Space Grotesk', sans-serif; font-size: 40px; font-weight: 600; margin-top: 6px; line-height: 1.1; }
.kpi-small { font-size: 26px; }
.kpi-warn { color: var(--warn); }
.kpi-note { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* štítky */
.chips { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12px; font-weight: 600; padding: 4px 8px; border-radius: 6px; white-space: nowrap; }
.chip-mp { background: #E8EEFD; color: var(--accent); }
.chip-fast { background: #F1EAFE; color: #6D28D9; }
.chip-cut { background: #FEF3E2; color: #9A3412; }
.chip-surge { background: #F0F0EC; color: var(--ink-2); }
.chip-watch { background: #E7F5EC; color: #166534; }

/* skóre závažnosti */
.score { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.score b { font-family: 'Space Grotesk', sans-serif; font-size: 14px; }
.score-major { background: #B91C1C; color: #fff; }
.score-watch { background: #FEF3E2; color: #9A3412; }
.score-normal { background: #F0F0EC; color: var(--muted); }
.finding[hidden] { display: none; }
.findings-more { display: flex; justify-content: center; padding: 0 20px 20px; }
.btn-ghost { background: transparent; color: var(--accent); border: 1px solid var(--line, #d8dbe2); gap: 6px; }
.btn-ghost:hover { background: var(--accent); color: #fff; }
.btn-ghost:hover .muted { color: inherit; }
.findings { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; padding: 20px; }
.finding { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 16px; color: var(--ink); text-decoration: none; }
.finding:hover { border-color: #B91C1C; color: var(--ink); }
.finding-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.finding-title { font-size: 17px; line-height: 1.35; }
.finding-perex { color: var(--ink-2); line-height: 1.5; }
.finding-quote { padding: 6px 10px; border-left: 3px solid #F59E0B; background: #FFFBEB; border-radius: 0 6px 6px 0; color: var(--ink-2); overflow-wrap: anywhere; }
.reasons { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--ink-2); }
.reasons li { display: flex; gap: 10px; align-items: baseline; }
.pts { flex-shrink: 0; min-width: 34px; font-weight: 700; color: #B91C1C; font-size: 13px; }
.head-note { margin: 4px 0 0; max-width: 760px; }
.suppressed { margin: 0; padding: 14px 20px; border-top: 1px solid var(--line-soft); font-size: 14px; color: var(--muted); }
.pn-item { flex-direction: column; align-items: stretch !important; }
.pn-summary { color: var(--ink-2); }
.quote { margin: 10px 0 0; padding: 8px 12px; border-left: 3px solid #F59E0B; background: #FFFBEB; border-radius: 0 8px 8px 0; color: var(--ink); overflow-wrap: anywhere; }

/* upozornění */
.alert { display: flex; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--line-soft); }
.alert:last-child { border-bottom: 0; }
.alert-when { width: 92px; flex-shrink: 0; font-size: 13px; color: var(--muted); }
.alert-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.alert-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; }
.alert-meta a { color: var(--muted); }
.alert h3 a { color: var(--ink); text-decoration: none; }
.alert h3 a:hover { text-decoration: underline; }
.alert p { margin: 0; font-size: 14px; color: var(--ink-2); }

/* sledované a autoři */
.watch { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line); border-radius: 10px; padding: 14px; text-decoration: none; color: var(--ink); }
.watch:hover { border-color: var(--accent); color: var(--ink); }
.bar-row { display: flex; align-items: center; gap: 10px; }
.bar-name { width: 150px; font-size: 14px; }
.bar { flex: 1; height: 10px; background: #F0F0EC; border-radius: 5px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--accent); border-radius: 5px; }
.bar-n { width: 28px; text-align: right; font-weight: 600; font-size: 14px; }

/* tabulka */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; height: 36px; padding: 0 12px; border: 1px solid #D6D6D0; border-radius: 18px; background: #fff; color: var(--ink); font-size: 13px; text-decoration: none; }
.pill:hover { border-color: var(--ink); color: var(--ink); }
.pill.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.table-wrap { overflow-x: auto; }
table { width: 100%; min-width: 980px; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.4px; font-weight: 600; padding: 12px 8px; }
td { padding: 14px 8px; border-top: 1px solid var(--line-soft); vertical-align: top; }
th:first-child, td:first-child { padding-left: 20px; }
th:last-child, td:last-child { padding-right: 20px; }
td.wide { max-width: 360px; }
.num { text-align: right; }
a.plain { color: var(--ink); text-decoration: none; }
a.plain:hover { text-decoration: underline; }

/* detail */
.crumbs { margin: 0; font-size: 13px; color: var(--muted); }
.detail-head { display: flex; flex-direction: column; gap: 12px; }
.detail-head h1 { font-size: 30px; max-width: 960px; }
.detail-head p { margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 96px 14px 1fr; gap: 14px; padding-bottom: 16px; position: relative; }
.timeline li::before { content: ''; position: absolute; left: 116px; top: 16px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.tl-date { font-size: 13px; color: var(--muted); }
.tl-dot { width: 14px; height: 14px; border-radius: 7px; border: 3px solid #9EA3AD; background: #fff; margin-top: 3px; position: relative; z-index: 1; }
.dot-fast { border-color: #6D28D9; }
.dot-cut { border-color: var(--warn); }
.dot-main { border-color: var(--accent); }
.tl-text { font-size: 14px; color: var(--ink-2); }
.tl-text strong { color: var(--ink); }
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 10px; flex-wrap: wrap; padding: 7px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.pager { display: flex; gap: 12px; align-items: center; justify-content: center; padding: 16px; }

/* patička */
.foot { font-size: 13px; color: var(--muted); padding-bottom: 24px; }
.foot p { margin: 0 0 6px; }

@media (max-width: 640px) {
  .wrap, .top-in { padding: 16px; }
  h1 { font-size: 26px; }
  .brand-sub, .sync { display: none; }
  .search { width: 100%; }
  .search input { flex: 1; width: auto; max-width: none; }
  .alert { flex-direction: column; gap: 4px; }
  .timeline li { grid-template-columns: 80px 14px 1fr; }
  .timeline li::before { left: 100px; }
}
