/* Dogtice web: lehký vlastní CSS bez knihoven. Barvy: tmavě modrá (primary #12294a) a střídmá oranžová (accent #e8890c), viz brand. */
:root {
  --bg: #f5f8fc; --surface: #ffffff; --surface2: #e6ecf5; --text: #0d1b30; --muted: #556277;
  --primary: #12294a; --on-primary: #ffffff; --primary-soft: #dce6f5; --link: #1b4a8a;
  --accent: #e8890c; --accent-ink: #8a4f06; --accent-soft: #fdebcf; --border: #d5ddea;
  --danger: #b3261e; --danger-soft: #fbe4e1; --ok-soft: #dce6f5; --shadow: 0 1px 2px rgba(5,19,32,.06), 0 4px 14px rgba(5,19,32,.05);
  --radius: 14px; --max: 1080px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #071322; --surface: #0f2036; --surface2: #162a45; --text: #e9eef6; --muted: #93a3ba;
    --primary: #9db9e3; --on-primary: #08203f; --primary-soft: #1b3252; --link: #a9c4ec;
    --accent: #f5a623; --accent-ink: #f8cf8b; --accent-soft: #3a2a0e; --border: #25405f;
    --danger: #f2b8b5; --danger-soft: #3d1f1d; --ok-soft: #1b3252; --shadow: 0 1px 2px rgba(0,0,0,.4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #071322; --surface: #0f2036; --surface2: #162a45; --text: #e9eef6; --muted: #93a3ba;
  --primary: #9db9e3; --on-primary: #08203f; --primary-soft: #1b3252; --link: #a9c4ec;
  --accent: #f5a623; --accent-ink: #f8cf8b; --accent-soft: #3a2a0e; --border: #25405f;
  --danger: #f2b8b5; --danger-soft: #3d1f1d; --ok-soft: #1b3252; --shadow: 0 1px 2px rgba(0,0,0,.4);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.7rem); margin-top: 1.8em; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--primary); color: var(--on-primary); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* hlavička */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; gap: 14px; min-height: 58px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.25rem; color: var(--text); text-decoration: none; letter-spacing: -.02em; }
.brand-icon { width: 32px; height: 32px; border-radius: 8px; }
.nav { display: flex; gap: 4px 14px; flex-wrap: wrap; margin-left: auto; align-items: center; }
.nav a { color: var(--text); text-decoration: none; padding: 6px 4px; border-bottom: 2px solid transparent; font-size: .96rem; }
.nav a:hover, .nav a[aria-current="page"] { border-color: var(--accent); }
.nav .lang, .nav button { font-size: .85rem; border: 1px solid var(--border); border-radius: 999px; padding: 3px 11px; background: var(--surface2); color: var(--text); cursor: pointer; text-decoration: none; }
.nav .lang { border-bottom: 1px solid var(--border); }
main { padding: 24px 0 56px; min-height: 60vh; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }

/* hero */
.hero { display: grid; gap: 28px; align-items: center; padding: 18px 0 8px; }
@media (min-width: 820px) { .hero { grid-template-columns: 1.1fr .9fr; } }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 36em; }
.hero-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hero-photos img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; background: var(--surface2); }
.hero-photos img:first-child { grid-column: 1 / -1; aspect-ratio: 16/9; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 6px; }
.btn { display: inline-block; border: 2px solid var(--primary); background: var(--primary); color: var(--on-primary); text-decoration: none; padding: 10px 20px; border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer; line-height: 1.3; text-align: center; }
.btn:hover { filter: brightness(1.08); }
.btn.secondary { background: transparent; color: var(--link); }
.btn[aria-disabled="true"] { background: var(--surface2); border-color: var(--border); color: var(--muted); cursor: default; filter: none; }
.note-small { font-size: .85rem; color: var(--muted); }

/* karty a mřížky */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); padding: 0; margin: 0; list-style: none; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); height: 100%; display: flex; flex-direction: column; }
.card a.cover { color: inherit; text-decoration: none; display: flex; flex-direction: column; height: 100%; }
.card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; background: var(--surface2); }
.card .noimg { aspect-ratio: 4/3; background: var(--surface2); display: flex; align-items: center; justify-content: center; }
.card .noimg span { font-size: .85rem; opacity: .65; text-align: center; padding: 0 8px; }
.nophoto-panel { background: var(--surface2); border-radius: 12px; padding: 20px; margin: 12px 0 20px; text-align: center; }
.nophoto-panel p { margin: 6px 0 0; opacity: .75; font-size: .95rem; }
.card .body { padding: 10px 14px 14px; }
.card .name { font-weight: 700; display: block; }
.card .meta { font-size: .85rem; color: var(--muted); }
.card:hover { border-color: var(--accent); }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin: 18px 0; box-shadow: var(--shadow); }
.panel.cta { background: var(--primary-soft); border-color: transparent; }
.features { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin: 28px 0; }
.chip { display: inline-block; background: var(--primary-soft); color: var(--text); border-radius: 999px; padding: 2px 12px; font-size: .88rem; text-decoration: none; margin: 0 6px 6px 0; }
a.chip:hover { outline: 2px solid var(--accent); }

/* karta plemene */
.gallery { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); margin: 18px 0; }
.gallery figure { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.gallery figure.first { grid-column: 1 / -1; }
.gallery img { width: 100%; max-height: 560px; object-fit: contain; background: var(--surface2); }
.gallery figcaption { font-size: .82rem; color: var(--muted); padding: 8px 12px; }
.facts { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.facts th, .facts td { text-align: left; padding: 9px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.facts th { width: 34%; font-weight: 600; color: var(--muted); background: var(--surface2); }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }
.compare th.col, .compare td.col { width: 33%; }
.compare .head { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; margin: 14px 0; }
.compare .head img { aspect-ratio: 4/3; object-fit: cover; width: 100%; border-radius: var(--radius); }
.table-wrap { overflow-x: auto; }
ul.traits { padding-left: 1.2em; } ul.traits li { margin-bottom: .35em; }
.disclaimer { font-size: .88rem; color: var(--muted); border-left: 3px solid var(--accent); padding: 2px 0 2px 12px; margin: 24px 0; }
.draft { background: var(--danger-soft); border: 3px solid var(--danger); color: var(--text); padding: 14px 18px; border-radius: var(--radius); font-weight: 700; margin: 0 0 22px; }
.sources-list { font-size: .9rem; }
.sources-list table { width: 100%; border-collapse: collapse; margin-bottom: 18px; }
.sources-list th, .sources-list td { text-align: left; padding: 5px 8px; border-bottom: 1px solid var(--border); vertical-align: top; word-break: break-word; }
.sources-list h3 { margin-top: 1.4em; }
.nowrap { white-space: nowrap; }

/* hledání */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 20px; }
.filters input, .filters select { font: inherit; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); min-width: 0; }
.filters input { flex: 1 1 240px; }
.count { color: var(--muted); font-size: .92rem; margin-left: auto; align-self: center; }
[hidden] { display: none !important; }

/* patička */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 26px 0 36px; font-size: .92rem; color: var(--muted); }
.site-footer .cols { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.site-footer a { color: var(--muted); }
.site-footer ul { list-style: none; padding: 0; margin: 0; } .site-footer li { margin: 4px 0; }

/* kvíz */
.quiz { max-width: 640px; margin: 0 auto; }
.quiz-top { display: flex; justify-content: space-between; color: var(--muted); font-size: .92rem; margin-bottom: 10px; }
.q-photo { position: relative; background: var(--surface2); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.q-photo img { width: 100%; max-height: 62vh; aspect-ratio: 4/3; object-fit: contain; }
.credit { font-size: .8rem; color: var(--muted); margin: 6px 2px 12px; }
.q-actions { display: flex; justify-content: flex-end; margin: 4px 0 10px; }
.q-actions button { font: inherit; font-size: .9rem; background: none; border: 1px solid var(--border); border-radius: 999px; padding: 4px 14px; color: var(--link); cursor: pointer; }
.q-question { font-size: 1.15rem; font-weight: 700; margin: 6px 0 12px; }
.options { display: grid; gap: 10px; }
.opt { font: inherit; text-align: left; padding: 13px 16px; border-radius: 12px; border: 2px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; font-weight: 600; }
.opt:hover:not(:disabled) { border-color: var(--primary); }
.opt:disabled { cursor: default; }
.opt.right { border-color: var(--primary); background: var(--ok-soft); }
.opt.wrong { border-color: var(--danger); background: var(--danger-soft); }
.opt.dim { opacity: .6; }
.feedback { margin-top: 18px; }
.feedback .verdict { font-size: 1.25rem; font-weight: 800; margin-bottom: 4px; }
.feedback .verdict.ok { color: var(--link); } .feedback .verdict.bad { color: var(--danger); }
.extra { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; margin: 12px 0; }
.extra figure { margin: 0; }
.extra img { border-radius: 10px; aspect-ratio: 4/3; object-fit: cover; width: 100%; background: var(--surface2); }
.extra figcaption { font-size: .75rem; color: var(--muted); margin-top: 4px; }
.cta-card { text-align: center; padding: 26px 22px; }
.cta-card h2 { margin-top: 0; }
.cta-card .cta-row { justify-content: center; }
@media (prefers-reduced-motion: no-preference) { .opt, .btn { transition: border-color .15s, background .15s; } }

/* logo v hlavičce */
.wm { height: 36px; width: auto; display: block; }
.brand { gap: 10px; }
/* Kvíz v menu: jemně zvýrazněno */
.nav a.nav-quiz { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; border-radius: 999px; padding: 6px 14px; border-bottom: 0; }
.nav a.nav-quiz:hover, .nav a.nav-quiz[aria-current="page"] { box-shadow: inset 0 0 0 2px var(--accent); }
/* karty skupin FCI: bez podtržení textu odkazu */
.panel a { text-decoration: none; color: var(--text); display: block; }
.panel a strong { color: var(--link); }
.panel a:hover strong { text-decoration: underline; }

/* bublina u loga */
.brand { position: relative; }
.brand .tip { position: absolute; left: 0; top: calc(100% + 8px); background: var(--primary); color: var(--on-primary); font-size: .82rem; font-weight: 500; letter-spacing: 0; white-space: nowrap; padding: 6px 10px; border-radius: 10px; opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity .15s, transform .15s; box-shadow: var(--shadow); z-index: 20; }
.brand .tip::before { content: ""; position: absolute; left: 22px; top: -5px; width: 10px; height: 10px; background: var(--primary); transform: rotate(45deg); }
.brand:hover .tip, .brand:focus-visible .tip { opacity: 1; transform: none; }
.eyebrow { margin: 0 0 6px; color: var(--accent-ink); font-weight: 600; font-size: .95rem; }
