/* Blog dremkova.com (11/2026): rozcestník, kategorie a článek. Navazuje na home-360.css (.h3-*) a ios-nav.css.
   Mobil je výchozí, tablet od 768 px, desktop od 1100 px. Žádný JS. Generuje build_blog.py (kopíruje do /css/blog.css). */

.bl {
  --ink: #1e1b2e; --text: #2a2740; --muted: #4f5b6e; --navy: #152b70; --navy-2: #101e52; --lav: #8691fa; --eyebrow: #3d47b0;
  --line: rgba(21, 43, 112, .12); --glass: rgba(255, 255, 255, .62); --card: rgba(255, 255, 255, .78);
  color: var(--ink);
}
.bl *, .bl *::before, .bl *::after { box-sizing: border-box; }
.bl a:focus-visible, .bl summary:focus-visible { outline: 3px solid var(--lav); outline-offset: 3px; border-radius: 10px; }
.bl #poptavka, .bl [id] { scroll-margin-top: 88px; }

/* ---------- společné ---------- */
.bl-top { padding: 22px 20px 0; }
.bl-shell { max-width: 1120px; margin: 0 auto; }
.bl-eyebrow { display: inline-block; margin: 0 0 10px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--eyebrow); }
.bl-crumbs ol { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; align-items: center; font-size: 14px; line-height: 1.4; color: var(--muted); }
.bl-crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.bl-crumbs li + li::before { content: "\203A"; margin: 0 8px; color: #8e97c4; font-size: 16px; }
.bl-crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--navy); font-weight: 600; text-decoration: none; }
.bl-crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.bl-crumbs [aria-current] { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; max-width: 46ch; }

.bl-h1 { margin: 6px 0 16px; font-size: clamp(31px, 5.4vw, 52px); line-height: 1.08; letter-spacing: -.032em; font-weight: 800; color: var(--ink); text-wrap: balance; }
.bl-lead { margin: 0; max-width: 68ch; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.65; color: var(--muted); text-wrap: pretty; }

.bl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
@media (min-width: 768px) {
  .bl-meta { gap: 0; }
  .bl-meta > * + *::before { content: "\00B7"; margin: 0 10px; color: #8e97c4; }
}
@media (max-width: 767px) {
  .bl-head .bl-crumbs li:last-child { display: none; } /* v článku by název jen opakoval H1 */
}
.bl-meta a { display: inline-flex; align-items: center; min-height: 44px; color: var(--navy); font-weight: 700; text-decoration: none; }
.bl-meta a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- článek: hlavička ---------- */
.bl-answer {
  margin: 18px 0 0; padding: 20px 22px 22px; border-radius: 22px; background: #fff;
  border: 1px solid rgba(134, 145, 250, .38); box-shadow: 0 18px 40px -28px rgba(21, 43, 112, .45);
}
.bl-answer .bl-eyebrow { margin-bottom: 8px; }
.bl-answer p:last-child { margin: 0; font-size: 17px; line-height: 1.65; color: var(--text); }
.bl-answer a { color: var(--navy); font-weight: 700; }

/* ---------- článek: rozvržení (obsah vlevo na desktopu) ---------- */
.bl-layout { display: grid; grid-template-columns: minmax(0, 1fr); }
.bl-head { grid-area: head; }
.bl-aside { grid-area: toc; }
.bl-body { grid-area: body; }
.bl-after { grid-area: after; }
.bl-layout { grid-template-areas: "head" "toc" "body" "after"; }

.bl-toc { margin: 22px 0 6px; border-radius: 20px; background: var(--glass); border: 1px solid rgba(255, 255, 255, .85); }
.bl-toc summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 52px; padding: 0 18px; font-size: 15px; font-weight: 800; color: var(--navy);
}
.bl-toc summary::-webkit-details-marker { display: none; }
.bl-toc summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 19px; font-weight: 500; background: rgba(134, 145, 250, .18); transition: transform .2s; }
.bl-toc details[open] summary::after { transform: rotate(45deg); }
.bl-toc ol { list-style: none; margin: 0; padding: 0 10px 12px; counter-reset: bltoc; }
.bl-toc li { counter-increment: bltoc; }
.bl-toc a {
  display: flex; gap: 10px; align-items: baseline; min-height: 44px; padding: 10px 8px; border-radius: 12px;
  font-size: 15px; line-height: 1.4; color: var(--text); text-decoration: none;
}
.bl-toc a::before { content: counter(bltoc); flex: none; min-width: 18px; font-weight: 800; font-size: 13px; color: var(--lav); }
.bl-toc a:hover { background: rgba(134, 145, 250, .14); color: var(--navy); }

/* ---------- článek: text ---------- */
.bl-body { padding-top: 10px; font-size: 17px; line-height: 1.75; color: var(--text); overflow-wrap: break-word; }
.bl-body > * { max-width: 72ch; }
.bl-body h2 { margin: 52px 0 14px; font-size: clamp(25px, 3.3vw, 32px); line-height: 1.2; letter-spacing: -.022em; font-weight: 800; color: var(--ink); text-wrap: balance; }
.bl-body h3 { margin: 34px 0 10px; font-size: 20px; line-height: 1.3; letter-spacing: -.012em; font-weight: 800; color: var(--ink); }
.bl-body h4 { margin: 26px 0 8px; font-size: 17px; font-weight: 800; color: var(--ink); }
.bl-body p { margin: 0 0 18px; }
.bl-body ul, .bl-body ol { margin: 0 0 22px; padding-left: 1.35em; }
.bl-body ul { list-style: disc; }
.bl-body ol { list-style: decimal; }
.bl-body li { margin: 7px 0; padding-left: .2em; }
.bl-body li::marker { color: #6a75e8; font-weight: 800; }
.bl-body li > ul, .bl-body li > ol { margin: 6px 0 0; }
.bl-body a { color: var(--navy); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(21, 43, 112, .35); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.bl-body a:hover { text-decoration-color: var(--lav); }
.bl-body strong { color: #15122b; font-weight: 700; }
.bl-body blockquote {
  margin: 26px 0; padding: 16px 20px; border-left: 4px solid var(--lav); border-radius: 0 18px 18px 0;
  background: rgba(255, 255, 255, .66); color: var(--ink);
}
.bl-body blockquote p:last-child { margin-bottom: 0; }
.bl-body code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; padding: .12em .38em; border-radius: 6px; background: rgba(134, 145, 250, .17); color: var(--navy-2); }
.bl-body pre { max-width: 100%; margin: 22px 0 26px; padding: 18px 20px; border-radius: 18px; overflow-x: auto; background: #101e52; color: #e8eaff; font-size: 14px; line-height: 1.65; }
.bl-body pre code { padding: 0; background: none; color: inherit; font-size: inherit; }
.bl-body hr { border: 0; height: 1px; margin: 40px 0; background: var(--line); }
.bl-body img { max-width: 100%; height: auto; border-radius: 18px; }

.bl-table { max-width: 100%; margin: 22px 0 28px; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: 0 16px 36px -28px rgba(21, 43, 112, .4); }
.bl-table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.bl-table--wide table { min-width: 620px; }
.bl-table th, .bl-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.bl-table thead th { background: #eef0ff; color: var(--navy); font-size: 14px; font-weight: 800; }
.bl-table tbody tr:last-child td { border-bottom: 0; }
.bl-table tbody tr:nth-child(even) { background: #f8f9ff; }
.bl-table td:first-child { font-weight: 700; color: var(--ink); }
.bl-table:focus-visible { outline: 3px solid var(--lav); outline-offset: 3px; }

/* mobil: tabulky od 3 sloupců jako karty (popisky z data-label, doplňuje generátor) */
@media (max-width: 767px) {
  .bl-table--stack { overflow: visible; background: none; border: 0; box-shadow: none; border-radius: 0; }
  .bl-table--stack table, .bl-table--wide.bl-table--stack table { min-width: 0; }
  .bl-table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .bl-table--stack tbody, .bl-table--stack tr, .bl-table--stack td { display: block; }
  .bl-table--stack tr { margin: 0 0 12px; padding: 14px 16px 6px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: 0 14px 30px -26px rgba(21, 43, 112, .45); }
  .bl-table--stack tbody tr:nth-child(even) { background: #fff; }
  .bl-table--stack td { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--line); text-align: right; }
  .bl-table--stack td::before { content: attr(data-label); flex: 0 1 46%; text-align: left; font-size: 13px; font-weight: 700; line-height: 1.4; color: var(--navy); }
  .bl-table--stack td:first-child { display: block; padding: 0 0 8px; font-size: 16px; text-align: left; }
  .bl-table--stack td:first-child::before { content: none; }
  .bl-table--stack tr td:last-child { border-bottom: 0; }
}

/* ---------- za textem: FAQ, zdroje, autorka, výzva ---------- */
.bl-after > section, .bl-after > aside { margin-top: 48px; max-width: 72ch; }
.bl-h2 { margin: 0 0 16px; font-size: clamp(24px, 3.2vw, 30px); line-height: 1.2; letter-spacing: -.02em; font-weight: 800; color: var(--ink); }
.bl-faq .h3-faq { max-width: none; margin: 0; }
.bl-sources ol { list-style: decimal; margin: 0; padding-left: 1.4em; font-size: 15px; line-height: 1.6; color: var(--muted); }
.bl-sources li::marker { color: #6a75e8; font-weight: 700; }
.bl-sources li { margin: 6px 0; }
.bl-sources a { color: var(--navy); font-weight: 600; overflow-wrap: anywhere; }

.bl-author { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; align-items: start; padding: 22px; border-radius: 24px; background: var(--card); border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 20px 44px -30px rgba(21, 43, 112, .4); }
.bl-author img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; background: #dfe3ff; box-shadow: 0 0 0 3px #fff, 0 8px 20px -8px rgba(21, 43, 112, .4); }
.bl-author h2 { margin: 0 0 2px; font-size: 20px; line-height: 1.3; font-weight: 800; }
.bl-author h2 a { color: var(--ink); text-decoration: none; }
.bl-author h2 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.bl-author__role { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: var(--eyebrow); }
.bl-author p { margin: 0 0 10px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.bl-author .bl-author__links { display: flex; flex-wrap: wrap; gap: 0 18px; margin: 0 0 -8px; }
.bl-author__links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 700; color: var(--navy); }

.bl-cta { padding: 30px 24px; border-radius: 28px; color: #fff; background: radial-gradient(120% 120% at 85% 0%, #2a46a8 0%, #152b70 48%, #0c1740 100%); box-shadow: 0 26px 50px -30px rgba(12, 23, 64, .8); }
.bl-cta .bl-eyebrow { color: #b9c0ff; }
.bl-cta h2 { margin: 0 0 10px; font-size: clamp(23px, 3vw, 30px); line-height: 1.2; letter-spacing: -.02em; font-weight: 800; color: #fff; }
.bl-cta p { margin: 0 0 22px; font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, .84); }
.bl-cta__btns { display: flex; flex-direction: column; gap: 10px; }
.bl-cta .h3-btn { width: 100%; }

/* ---------- karty článků ---------- */
.bl-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.bl-card { position: relative; display: flex; flex-direction: column; height: 100%; padding: 22px 22px 18px; border-radius: 24px; background: var(--card); border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 18px 40px -30px rgba(21, 43, 112, .45); transition: transform .25s ease, box-shadow .25s ease; }
.bl-card:hover { transform: translateY(-3px); box-shadow: 0 26px 50px -28px rgba(21, 43, 112, .5); }
.bl-card__cat { align-self: flex-start; margin: 0 0 12px; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 800; color: var(--navy); background: rgba(134, 145, 250, .2); }
.bl-card__h { margin: 0 0 10px; font-size: 20px; line-height: 1.28; letter-spacing: -.015em; font-weight: 800; }
.bl-card__h a { color: var(--ink); text-decoration: none; }
.bl-card__h a::after { content: ""; position: absolute; inset: 0; border-radius: 24px; }
.bl-card__h a:focus-visible { outline: none; }
.bl-card:focus-within { outline: 3px solid var(--lav); outline-offset: 3px; }
.bl-card__ex { margin: 0 0 16px; font-size: 15px; line-height: 1.6; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.bl-card__meta { margin: auto 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* ---------- rozcestník a kategorie ---------- */
.bl-hub-head { max-width: 820px; padding: 8px 0 6px; }
.bl-filters { margin: 26px 0 24px; }
.bl-filters ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.bl-filters a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px;
  font-size: 15px; font-weight: 700; color: var(--navy); text-decoration: none; background: rgba(255, 255, 255, .7); border: 1px solid var(--line);
  transition: background .2s;
}
.bl-filters a:hover { background: #fff; }
.bl-filters a[aria-current="page"] { color: #fff; background: var(--navy); border-color: var(--navy); }
.bl-filters span { font-size: 12px; font-weight: 800; opacity: .7; }
.bl-list { padding-bottom: 12px; }
.bl-empty { padding: 28px; border-radius: 22px; background: var(--glass); color: var(--muted); }
.bl-pager { display: flex; justify-content: space-between; gap: 12px; margin: 26px 0 0; }
.bl-pager a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; font-weight: 700; color: var(--navy); text-decoration: none; background: rgba(255, 255, 255, .7); border: 1px solid var(--line); }
.bl-catcta { margin: 28px 0 0; padding: 16px 20px; border-radius: 22px; font-size: 15px; line-height: 1.55; color: var(--muted); background: rgba(255, 255, 255, .45); border: 1px dashed rgba(21, 43, 112, .22); }
.bl-catcta a { display: inline-flex; align-items: center; min-height: 44px; color: var(--navy); font-weight: 700; }

.bl-related { padding: 52px 20px 8px; }
.bl-related .bl-h2 { margin-bottom: 20px; }
.bl-related .bl-card__h { font-size: 19px; }

/* ---------- tablet ---------- */
@media (min-width: 768px) {
  .bl-top { padding: 34px 32px 0; }
  .bl-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .bl-cards--hub > li.is-featured { grid-column: 1 / -1; }
  .bl-body { font-size: 18px; }
  .bl-answer { padding: 24px 28px 26px; }
  .bl-answer p:last-child { font-size: 18px; }
  .bl-author { grid-template-columns: 96px minmax(0, 1fr); gap: 22px; padding: 26px; }
  .bl-author img { width: 96px; height: 96px; }
  .bl-cta { padding: 38px 36px; }
  .bl-cta__btns { flex-direction: row; flex-wrap: wrap; }
  .bl-cta .h3-btn { width: auto; }
  .bl-related { padding: 72px 32px 8px; }
}

/* ---------- desktop: obsah článku jako lepivý sloupec ---------- */
@media (min-width: 1100px) {
  .bl-top { padding: 44px 40px 0; }
  .bl-layout { grid-template-columns: 250px minmax(0, 760px); grid-template-areas: "toc head" "toc body" "toc after"; column-gap: 64px; justify-content: center; }
  .bl-aside { padding-top: 64px; }
  .bl-toc { position: sticky; top: 96px; margin: 0; max-height: calc(100vh - 120px); overflow: auto; }
  .bl-toc summary { pointer-events: none; }
  .bl-toc summary::after { display: none; }
  .bl-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bl-cards--hub > li.is-featured .bl-card__h { font-size: 26px; }
  .bl-cards--hub > li.is-featured .bl-card__ex { font-size: 16px; -webkit-line-clamp: 5; }
  .bl-related { padding: 88px 40px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .bl-card, .bl-toc summary::after, .bl-filters a { transition: none; }
  .bl-card:hover { transform: none; }
}
