/* Písma hostovaná přímo na webu (žádné načítání z Google) – licence SIL OFL, viz /fonts */
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/barlow-semi-condensed-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/barlow-semi-condensed-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/barlow-semi-condensed-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/barlow-semi-condensed-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/source-sans-3-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/source-sans-3-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/source-sans-3-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/source-sans-3-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/source-sans-3-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/source-sans-3-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* PCzóna – střídmý magazínový styl: bílé plochy, jedna akcentní barva, ostré hrany, žádné přechody */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --soft: #f4f4f2;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --line: #e3e3df;
  --ink: #111111;
  --accent: #e8590c;
  --accent-dark: #c2410c;
  --accent-soft: #fdf0e8;
  --ok: #276b43;
  --btn: #c2410c; /* tlačítka: bílé písmo musí mít kontrast aspoň 4,5:1 */
  --btn-hover: #9a3412;
  --ok-soft: #e8f3ec;
  --radius: 6px;
  --gutter: #e9e9e6;
  --head: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] { color-scheme: dark; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141414;
    --surface: #1c1c1c;
    --soft: #222222;
    --text: #ececec;
    --muted: #a0a0a0;
    --line: #333333;
    --ink: #f2f2f2;
    --accent: #f97316;
    --accent-dark: #fb923c;
    --accent-soft: #2e1d12;
    --ok: #6fcf97;
    --btn: #c2410c;
    --btn-hover: #9a3412;
    --ok-soft: #17291f;
    --gutter: #0d0d0d;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  background: var(--gutter);
  color: var(--text);
  line-height: 1.6;
}
/* Obsah na středu (70 % šířky), okraje zůstávají volné jako místo pro reklamu */
.page { width: 70%; min-width: 980px; margin: 0 auto; background: var(--bg); min-height: 100vh; box-shadow: 0 0 0 1px var(--line); }
@media (max-width: 1100px) { .page { width: 100%; min-width: 0; box-shadow: none; } }
a { color: var(--accent-dark); }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; line-height: 1.15; color: var(--ink); letter-spacing: 0; }
.wrap { margin: 0 auto; padding: 0 28px; }
@media (max-width: 720px) { .wrap { padding: 0 16px; } }
.muted { color: var(--muted); }
.small { font-size: 14px; color: var(--muted); }

/* ---------- Header ---------- */
header.site { background: var(--surface); border-bottom: 3px solid var(--ink); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--accent); }
.logo-mark { width: 30px; height: 30px; }
.logo-text { font-family: var(--head); font-size: 26px; font-weight: 600; color: var(--ink); line-height: 1; }
.logo-text b { font-weight: 700; color: var(--accent); }
.main-nav { display: flex; gap: 2px; height: 100%; }
.main-nav a {
  display: flex; align-items: center; padding: 0 14px; color: var(--text); text-decoration: none;
  font-family: var(--head); font-weight: 600; font-size: 18px; text-transform: uppercase; letter-spacing: .02em;
  border-bottom: 3px solid transparent; margin-bottom: -3px;
}
.main-nav a:hover { color: var(--accent); }
.main-nav a.active { border-bottom-color: var(--accent); color: var(--accent); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius); font-size: 20px; padding: 2px 10px; color: var(--text); cursor: pointer; }

/* ---------- Buttons, tags ---------- */
.btn {
  display: inline-block; background: var(--btn); color: #fff; text-decoration: none; font-weight: 700;
  padding: 9px 16px; border-radius: var(--radius); font-size: 15px; border: 0; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--btn-hover); }
.btn-sm { padding: 5px 11px; font-size: 14px; }
.link-more, .more { font-weight: 700; text-decoration: none; font-size: 15px; }
.link-more::after, .more::after, .section-head a::after { content: " ›"; }
.tag { display: inline-block; font-family: var(--head); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--accent-dark); }
.tag-blog { color: var(--muted); }
.tag-build { color: var(--ink); background: var(--soft); padding: 1px 8px; border-radius: 3px; }

/* ---------- Page head ---------- */
.page-head { border-bottom: 1px solid var(--line); padding: 36px 0 28px; }
.page-head h1 { font-size: clamp(34px, 5vw, 48px); margin: 0 0 8px; }
.page-head p { margin: 0; max-width: 720px; color: var(--muted); font-size: 18px; }

/* ---------- Home ---------- */
.home-intro { border-bottom: 1px solid var(--line); padding: 26px 0 22px; }
.home-intro h1 { font-size: clamp(24px, 3.6vw, 34px); line-height: 1.15; margin: 0 0 6px; }
.home-intro .hi-brand { color: var(--accent); }
.home-intro p { margin: 0; max-width: 760px; color: var(--muted); font-size: 17px; }
.home { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; padding-top: 28px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 2px solid var(--ink); margin-bottom: 20px; padding-bottom: 6px; }
.section-head h2 { font-size: 26px; margin: 0; text-transform: uppercase; }
.section-head a { font-weight: 700; text-decoration: none; font-size: 15px; }
.home-side { display: flex; flex-direction: column; gap: 28px; }
.side-block h3 { font-size: 20px; text-transform: uppercase; margin: 0 0 8px; padding-bottom: 6px; border-bottom: 2px solid var(--ink); }
.side-build { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); font-weight: 600; }
.side-build small { color: var(--muted); font-weight: 400; white-space: nowrap; }
.side-build:hover span { color: var(--accent); }
.side-block .more { display: inline-block; margin-top: 10px; }
.cat-list { display: flex; flex-wrap: wrap; gap: 6px; }
.cat-list a { background: var(--soft); color: var(--text); text-decoration: none; padding: 5px 10px; border-radius: 3px; font-size: 15px; }
.cat-list a:hover { background: var(--accent-soft); color: var(--accent-dark); }
.about p { margin: 0; color: var(--muted); }

/* ---------- Post cards ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0 28px; }
main.wrap > .post-grid { padding-top: 24px; }
.post-card {
  display: flex; flex-direction: column; gap: 6px; padding: 16px 0 20px; border-bottom: 1px solid var(--line);
  text-decoration: none; color: var(--text);
}
.post-card h3 { margin: 0; font-size: 22px; }
.post-card:hover h3 { color: var(--accent); }
.post-card p { margin: 0; color: var(--muted); font-size: 16px; }
.post-meta { font-size: 14px; color: var(--muted); }
.post-grid.featured { grid-template-columns: 1fr 1fr; }
.post-grid.featured .post-card:first-child { grid-column: 1 / -1; padding-top: 4px; }
.post-grid.featured .post-card:first-child h3 { font-size: clamp(28px, 3.6vw, 38px); }
.post-grid.featured .post-card:first-child p { font-size: 19px; }

/* ---------- Builds ---------- */
.build-list { display: grid; gap: 24px; padding: 28px 0 0; }
.build-card { border: 1px solid var(--line); border-top: 4px solid var(--ink); border-radius: var(--radius); padding: 22px; background: var(--surface); display: flex; flex-direction: column; gap: 12px; }
.build-head h3 { margin: 8px 0 2px; font-size: 28px; }
.build-head p { margin: 6px 0 0; color: var(--muted); }
.build-head .budget { font-family: var(--head); font-weight: 700; font-size: 20px; color: var(--accent); margin: 0; }
.uses { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.uses li { background: var(--soft); padding: 2px 10px; border-radius: 3px; font-size: 14px; color: var(--muted); }
.parts { width: 100%; border-collapse: collapse; font-size: 16px; }
.parts th { text-align: left; color: var(--muted); font-weight: 600; width: 160px; padding: 11px 12px 11px 0; vertical-align: top; border-top: 1px solid var(--line); }
.parts td { padding: 11px 0; border-top: 1px solid var(--line); vertical-align: top; }
.parts td:last-child { text-align: right; width: 1%; }
.parts .note { display: block; color: var(--muted); font-size: 14px; }
.box { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--surface); }
.tips { margin-top: 24px; background: var(--soft); border: 0; }
.tips h2 { margin-top: 0; }

/* ---------- Article ---------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; padding-top: 28px; }
article.post { max-width: 740px; min-width: 0; overflow-wrap: break-word; }
/* dlouhá slova bez mezer (cesty, URL, příkazy), kód a tabulky nesmí roztáhnout stránku na mobilu */
article.post :is(p, li, td, th, figcaption, blockquote, h1, h2, h3, h4, a) { overflow-wrap: anywhere; }
/* totéž na celém webu: nadpisy, karty článků, boxy v postranním panelu, komentáře, patička */
body { overflow-wrap: break-word; }
:is(h1, h2, h3, h4, .post-card, .sidebar, .home-side, .c-list, .footer-grid, .page-head, .cmp-box, .bpart-name) { overflow-wrap: anywhere; min-width: 0; }
article.post code { overflow-wrap: anywhere; word-break: break-word; }
article.post pre { max-width: 100%; overflow-x: auto; white-space: pre; }
article.post table { display: block; max-width: 100%; overflow-x: auto; }
article.post img, article.post iframe, article.post video { max-width: 100%; height: auto; }
article.post.narrow { margin: 0 auto; padding-top: 28px; }
article.post h1 { font-size: clamp(34px, 5vw, 46px); margin: 10px 0 8px; }
article.post h2 { margin-top: 34px; font-size: 28px; }
article.post p, article.post li { font-size: 18px; }
article.post li { margin-bottom: 6px; }
.lead { font-size: 21px !important; color: var(--text); font-weight: 600; }
.back { text-decoration: none; font-weight: 700; font-size: 15px; }
.source { margin-top: 28px; padding: 12px 16px; background: var(--soft); border-left: 3px solid var(--accent); font-size: 16px; }
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.sidebar h2 { margin: 0 0 6px; font-size: 20px; text-transform: uppercase; padding-bottom: 6px; border-bottom: 2px solid var(--ink); }
.sidebar .box { padding: 0; border: 0; background: transparent; }
.sidebar .box a:not(.btn) { display: block; padding: 9px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); font-weight: 600; font-size: 16px; }
.sidebar .box a:not(.btn):hover { color: var(--accent); }
.cta-box { background: var(--soft) !important; padding: 18px !important; border-radius: var(--radius); }
.cta-box h2 { border: 0; padding: 0; }
.cta-box p { margin: 0 0 12px; font-size: 16px; }

/* ---------- Products ---------- */
.controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 28px 0 14px; }
.tabs { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tabs button { border: 0; background: var(--surface); color: var(--text); padding: 8px 16px; font: inherit; font-weight: 600; cursor: pointer; }
.tabs button + button { border-left: 1px solid var(--line); }
.tabs button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.controls input, .controls select { font: inherit; padding: 8px 12px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); color: var(--text); min-width: 0; }
.controls input { flex: 1 1 200px; }
.controls input:focus, .controls select:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 20px; }
.chips button { flex: none; border: 1px solid var(--line); background: var(--surface); color: var(--text); padding: 4px 12px; border-radius: 3px; font: inherit; font-size: 15px; cursor: pointer; }
.chips button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--surface); }
.card:hover { border-color: var(--muted); }
.thumb { aspect-ratio: 4/3; border-radius: 3px; background: var(--soft); display: grid; place-items: center; overflow: hidden; }
.thumb.noimg { aspect-ratio: 3/1; }
.thumb img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.thumb .ph { font-family: var(--head); font-size: 30px; font-weight: 700; color: var(--line); }
.meta { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--muted); }
.badge { font-size: 13px; font-weight: 700; padding: 0 6px; border-radius: 3px; }
.badge.cheap { background: var(--ok-soft); color: var(--ok); }
.badge.premium { background: var(--accent-soft); color: var(--accent-dark); }
.card h3 { font-family: inherit; font-size: 17px; font-weight: 700; margin: 0; }
.card .note { font-size: 15px; color: var(--muted); margin: 0; flex: 1; }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-family: var(--head); font-size: 24px; font-weight: 700; }
.card .btn { padding: 6px 10px; font-size: 14px; }
.status { color: var(--muted); font-size: 15px; min-height: 1.4em; }
.empty { padding: 48px 0; text-align: center; color: var(--muted); grid-column: 1 / -1; }

/* ---------- Footer ---------- */
footer.site { margin-top: 72px; margin-bottom: 0; background: var(--ink); color: #bdbdbd; padding: 44px 0 22px; font-size: 15px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) footer.site { background: #0c0c0c; border-top: 1px solid var(--line); } }
footer.site .logo-text { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.footer-grid h2 { color: #fff; margin: 0 0 10px; font-size: 17px; text-transform: uppercase; }
.footer-grid a:not(.logo) { display: block; color: #bdbdbd; text-decoration: none; padding: 2px 0; }
.footer-grid a:not(.logo):hover { color: #fff; }
footer.site .small { color: #9a9a9a; }
.copyright { margin-top: 28px; padding-top: 18px; border-top: 1px solid #333; font-size: 14px; color: #8a8a8a; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .home, .article-layout { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 67px; height: auto; flex-direction: column; background: var(--surface); border-bottom: 3px solid var(--ink); padding: 4px 16px 12px; z-index: 20; }
  .main-nav a { padding: 10px 0; border: 0; margin: 0; }
  .nav-toggle[aria-expanded="true"] + .main-nav { display: flex; }
  header.site { position: relative; }
  .post-grid.featured { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .tabs { width: 100%; }
  .tabs button { flex: 1; padding: 8px 6px; }
  .parts th { width: auto; display: block; border: 0; padding: 10px 0 0; }
  .parts td { display: block; border: 0; padding: 2px 0; text-align: left !important; width: auto !important; }
  .parts tr { display: block; border-top: 1px solid var(--line); padding-bottom: 10px; }
}

/* ---------- Obrázky u příspěvků ---------- */
.post-card { gap: 10px; }
.post-body { display: flex; flex-direction: column; gap: 6px; }
.post-thumb { aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: var(--soft); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.post-card:hover .post-thumb img { transform: scale(1.03); }
.post-grid.featured .post-card:first-child { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: center; }
.tag-trivia { color: var(--ok); }
.post-hero { margin: 18px 0 20px; }
.post-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); display: block; background: var(--soft); }
.post-hero figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
.post-hero figcaption a { color: var(--muted); }
article.post .tag { display: block; margin-top: 12px; }
article.post .tag + h1 { margin-top: 2px; }

/* ---------- Ceny komponent ---------- */
.btn-outline { background: transparent; color: var(--accent-dark); border: 1px solid var(--accent); }
.btn-outline:hover { background: var(--accent-soft); }
.part-price { white-space: nowrap; }
.part-price .shop { display: block; font-size: 12px; color: var(--muted); text-align: right; }
.build-total { margin: 0; font-weight: 700; font-family: var(--head); font-size: 20px; }
.build-total:empty { display: none; }
@media (max-width: 720px) {
  .post-grid.featured .post-card:first-child { grid-template-columns: 1fr; }
  .part-price .shop { text-align: left; }
}

.aff-note { font-size: 14px; color: var(--muted); background: var(--soft); border-left: 3px solid var(--accent); padding: 8px 12px; margin: 16px 0 0; }

/* ---------- PC sestavy ---------- */
.bsel { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 28px 0 24px; }
.bsel button {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; font: inherit; color: var(--text);
}
.bsel button:hover { border-top-color: var(--muted); }
.bsel button[aria-selected="true"] { border-color: var(--ink); border-top-color: var(--accent); box-shadow: 0 0 0 1px var(--ink); }
.bsel-tier { font-family: var(--head); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.bsel-name { font-weight: 700; font-size: 16px; line-height: 1.25; }
.bsel-price { font-family: var(--head); font-weight: 700; font-size: 20px; color: var(--accent-dark); margin-top: 4px; }

.bview { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; align-items: start; }
.bmain h2 { font-size: 32px; margin: 8px 0 6px; }
.bperex { color: var(--muted); margin: 0 0 12px; }
.bparts { margin-top: 20px; border-top: 2px solid var(--ink); }
.bpart { display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.bpart-type { color: var(--muted); font-size: 15px; font-weight: 600; }
.bpart-name a { color: var(--text); font-weight: 700; text-decoration: none; }
.bpart-name a:hover { color: var(--accent); text-decoration: underline; }
.bpart-name a::after { content: " ↗"; color: var(--accent); font-weight: 400; }
.bpart-name .note { display: block; color: var(--muted); font-size: 14px; }
.bpart-price { text-align: right; white-space: nowrap; }
.bpart-price strong { font-family: var(--head); font-size: 20px; }
.bpart-price .shop { display: block; font-size: 13px; color: var(--muted); }
.btotal { border-bottom: 2px solid var(--ink); }
.btotal .bpart-name strong { font-family: var(--head); font-size: 22px; text-transform: uppercase; }
.btotal .bpart-price strong { font-size: 26px; color: var(--accent); }

.bside { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 16px; }
.bsum { background: var(--ink); color: var(--bg); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.bsum-label { font-family: var(--head); text-transform: uppercase; font-size: 14px; letter-spacing: .05em; opacity: .7; }
.bsum-total { font-family: var(--head); font-weight: 700; font-size: 36px; color: var(--accent); line-height: 1.1; }
.bsum-date { font-size: 14px; opacity: .7; }
.bcompat { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.bcompat h3 { margin: 0 0 8px; font-size: 18px; text-transform: uppercase; }
.bcompat ul { list-style: none; margin: 0; padding: 0; }
.bcompat li { padding: 4px 0; font-size: 15px; }
.bcompat li.ok { color: var(--ok); }
.bcompat li.bad { color: var(--accent-dark); font-weight: 700; }
@media (max-width: 900px) {
  .bview { grid-template-columns: 1fr; }
  .bside { position: static; }
}
@media (max-width: 560px) {
  .bsel { grid-template-columns: 1fr 1fr; }
  .bsel-price { font-size: 17px; }
  .bpart { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .bpart-type { grid-column: 1 / -1; font-size: 13px; }
}
.more { display: block; margin: 8px auto 48px; padding: 10px 28px; font: 600 16px/1.2 var(--head); text-transform: uppercase; letter-spacing: .04em; color: var(--text); background: none; border: 2px solid var(--accent); border-radius: 0; cursor: pointer; }
.more:hover { background: var(--btn); color: #fff; }

/* ---------- Drobečková navigace, kategorie článku ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; margin-bottom: 8px; }
.crumbs a { color: var(--muted); text-decoration: none; font-weight: 600; }
.crumbs a:hover { color: var(--accent); }
.crumbs a + a::before { content: "›"; margin-right: 6px; color: var(--muted); }
.page-head .crumbs { margin-bottom: 12px; }
.cat-chip { display: inline-block; background: var(--soft); color: var(--text); text-decoration: none; padding: 1px 8px; border-radius: 3px; font-size: 13px; font-weight: 600; margin-left: 2px; }
.cat-chip:hover { background: var(--accent-soft); color: var(--accent-dark); }

/* ---------- Odkazy na srovnání a související články pod článkem ---------- */
.cmp-boxes { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 32px 0 8px; }
.cmp-box { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); text-decoration: none; color: var(--text); background: var(--surface); }
.cmp-box:hover { border-color: var(--accent); }
.cmp-box-label { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--accent-dark); font-weight: 700; }
.cmp-box strong { font-family: var(--head); font-size: 20px; }
.cmp-box-meta { font-size: 14px; color: var(--muted); }
.related { margin-top: 36px; border-top: 2px solid var(--ink); }
.related h2 { margin: 14px 0 0 !important; font-size: 24px !important; text-transform: uppercase; }
.related .post-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.related .post-card h3 { font-size: 19px; }
.related .post-card p { font-size: 15px !important; }

/* ---------- Srovnání ---------- */
.cat-page .cat-main > section { margin-bottom: 36px; }
.cat-page h2 { font-size: 28px; margin: 0 0 8px; }
.cmp-wrap { overflow-x: auto; margin: 14px 0 8px; border: 1px solid var(--line); border-radius: var(--radius); }
.cmp { width: 100%; border-collapse: collapse; font-size: 16px; background: var(--surface); }
.cmp thead th { text-align: left; font-family: var(--head); font-size: 17px; padding: 10px 12px; background: var(--soft); border-bottom: 1px solid var(--line); white-space: nowrap; }
.cmp tbody th, .cmp td { padding: 12px; border-top: 1px solid var(--line); vertical-align: top; text-align: left; }
.cmp tr.group th { background: var(--soft); font-family: var(--head); font-size: 16px; text-transform: uppercase; letter-spacing: .03em; padding: 8px 12px; color: var(--muted); }
.cmp .prod { font-weight: 400; min-width: 220px; }
.prod-name { display: block; font-weight: 700; font-size: 17px; }
.prod-specs, .prod-note { display: block; color: var(--muted); font-size: 14px; }
.prod .badge { margin-top: 6px; display: inline-block; }
.shop-cell { white-space: nowrap; width: 1%; }
.shop-cell a { font-weight: 700; text-decoration: none; }
.shop-cell a:hover { text-decoration: underline; }
.shop-cell.noprice a { font-weight: 600; font-size: 14px; }
.shop-cell.na span { color: var(--muted); }
.shop-cell.best { background: var(--ok-soft); }
.shop-cell.best a { color: var(--ok); }
.best-tag { display: block; font-size: 12px; color: var(--ok); font-weight: 600; }
.price-note { margin-top: 8px; }
.tips-box { background: var(--soft); border-radius: var(--radius); padding: 20px 24px; }
.tips-box ul { margin: 0; padding-left: 20px; }
.tips-box li { margin-bottom: 6px; }
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; padding: 28px 0; }
.cat-tile { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--radius); text-decoration: none; color: var(--text); background: var(--surface); }
.cat-tile:hover { border-color: var(--accent); }
.cat-tile h3 { margin: 0; font-size: 24px; }
.cat-tile p { margin: 0; color: var(--muted); font-size: 15px; flex: 1; }
.cat-tile-meta { font-size: 14px; font-weight: 700; color: var(--accent-dark); }
@media (max-width: 720px) {
  .cmp-wrap { border: 0; overflow: visible; }
  .cmp thead { display: none; }
  .cmp, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; width: auto; }
  .cmp tr { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; }
  .cmp tr.group { border: 0; margin: 18px 0 6px; }
  .cmp tr.group th { background: none; padding: 0; }
  .cmp tbody th { border-top: 0; }
  .cmp td.shop-cell { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 9px 12px; }
  .cmp td.shop-cell::before { content: attr(data-label); color: var(--muted); font-weight: 600; }
  .best-tag { display: inline; margin-left: 6px; }
}

/* ---------- Volba obchodu ---------- */
.shop-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 0; margin: 24px 0 0; }
.shop-switch-label { font-weight: 700; margin-right: 10px; font-size: 15px; }
.shop-switch button { font: inherit; font-size: 15px; font-weight: 600; padding: 7px 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; }
.shop-switch button + button { border-left: 0; }
.shop-switch button:nth-of-type(1) { border-radius: var(--radius) 0 0 var(--radius); }
.shop-switch button:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.shop-switch button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.shops-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.shop-mini { font-size: 13px; text-decoration: none; color: var(--muted); background: var(--soft); padding: 2px 8px; border-radius: 3px; white-space: nowrap; }
.shop-mini b { color: var(--text); }
.shop-mini.best { background: var(--ok-soft); }
.shop-mini.best b { color: var(--ok); }
.shop-mini:hover { color: var(--accent-dark); }
.card .specs { margin: 0; font-size: 14px; color: var(--muted); }
.card .meta a { color: var(--muted); text-decoration: none; }
.card .meta a:hover { color: var(--accent); }
.cat-link { margin: -4px 0 14px; font-size: 16px; }
.bpart-name .alt { font-style: italic; }
.post-chips { margin-top: 20px; }
@media (max-width: 720px) {
  .shop-switch-label { width: 100%; margin-bottom: 6px; }
  .shop-switch button { padding: 7px 10px; }
}
.sidebar .box a.box-more { color: var(--accent-dark); border-bottom: 0; font-size: 15px; }
.cat-page .post-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.cat-page .post-card h3 { font-size: 19px; }
.cat-page .post-card p { font-size: 15px; }
@media (max-width: 720px) {
  .cmp td.shop-cell { justify-content: flex-start; }
  .cmp td.shop-cell::before { margin-right: auto; }
}

/* ---------- Ceny: Kč a pod nimi € ---------- */
.money { display: inline-flex; flex-direction: column; line-height: 1.15; vertical-align: top; }
.m-eur { font-size: .72em; font-weight: 600; color: var(--muted); }
.price .money, .bsum-total .money { align-items: flex-start; }
.bpart-price .money, .btotal .money { align-items: flex-end; }
.bsum-total .m-eur { font-size: .45em; color: inherit; }
/* v textu a v malých štítcích vedle sebe: „4 290 Kč / 176 €“ */
.money.inline { display: inline; vertical-align: baseline; line-height: inherit; }
.money.inline .m-eur { font-size: inherit; font-weight: inherit; color: inherit; }
.money.inline .m-eur::before { content: " / "; }
.m-czk { white-space: nowrap; }
.shop-mini { display: inline-flex; align-items: baseline; gap: 4px; line-height: 1.4; }
.shop-mini .money { font-weight: 700; color: var(--text); }
.shop-mini .money .m-eur { font-weight: 600; color: var(--muted); opacity: 1; }
.shop-mini.best .money { color: var(--ok); }
.sm-na { font-weight: 600; color: var(--muted); }

/* chybějící cena: odkaz na web obchodu */
.no-price { font-size: 13px; font-weight: 600; font-family: inherit; color: var(--muted); white-space: normal; }
a .no-price, a.no-price { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.shop-cell.na span { font-size: 13px; }

/* ---------- Hodnocení a komentáře ---------- */
.rating { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 30px 0 6px; padding: 14px 16px; background: var(--soft); border-radius: var(--radius); }
.rating-q { font-weight: 700; margin-right: 6px; }
.rating button { font: inherit; font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); cursor: pointer; }
.rating button b { font-weight: 700; color: var(--muted); }
.rating button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark); }
.comments { margin-top: 36px; border-top: 2px solid var(--ink); }
.comments h2 { margin: 14px 0 10px !important; font-size: 24px !important; text-transform: uppercase; }
.c-count { color: var(--muted); font-size: .8em; }
.c-item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.c-item header { font-size: 15px; margin-bottom: 4px; }
.c-item time { color: var(--muted); font-size: 13px; margin-left: 6px; }
.c-item p { margin: 0; font-size: 17px !important; overflow-wrap: anywhere; }
.c-form { display: grid; gap: 10px; margin-top: 18px; }
.c-form label { display: grid; gap: 4px; font-weight: 600; font-size: 15px; }
.c-form input, .c-form textarea { font: inherit; font-weight: 400; font-size: 16px; padding: 9px 11px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); width: 100%; }
.c-form input:focus, .c-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.c-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.c-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.c-actions .btn { border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.c-actions .btn:disabled { opacity: .6; cursor: wait; }
.c-msg { font-size: 15px; color: var(--muted); }
.c-form p { margin: 0; font-size: 14px !important; }
@media (max-width: 520px) {
  .rating-q { flex-basis: 100%; margin: 0 0 2px; }
}

/* Sestavy se vykreslují skriptem – místo pro ně je rezervované předem, aby patička neposkakovala (CLS). */
#builds-app { min-height: 100vh; }
