@charset "utf-8";
/* ═══════════════════════════════════════════════════════
   BLOG-ARTICLE.CSS v7
   Web: uverynapodnikani.cz · Prefix: art-
   ═══════════════════════════════════════════════════════ */

html.art-page,
.art-page body,
html.art-page body {
  overflow-x: clip !important;
}


/* ═══════════════════════════════════════
   BREADCRUMB
   ═══════════════════════════════════════ */
.art-bc {
  padding: 0 0 0.65rem;
  font-size: .76rem;
  color: rgba(255,255,255,.5);
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
}
.art-bc__list {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}
.art-bc__list a {
  color: rgba(255,255,255,.55);
  text-decoration: none;
  font-weight: 500;
  transition: color .15s;
}
.art-bc__list a:hover { color: var(--accent-glow); }
.art-bc__list .sep { opacity: .3; }
.art-bc__list [aria-current] {
  color: rgba(255,255,255,.75);
  font-weight: 600;
}


/* ═══════════════════════════════════════
   HERO
   ═══════════════════════════════════════ */
.art-hero {
  position: relative;
  padding: clamp(6.5rem, 11vw, 8.5rem) 0 clamp(2.2rem, 3.5vw, 3rem);
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}
.art-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 30%, rgba(201,107,84,.09), transparent 60%),
    radial-gradient(ellipse 50% 60% at 10% 80%, rgba(79,143,118,.06), transparent 55%);
  pointer-events: none;
}
.art-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,107,84,.25) 50%, transparent);
}
.art-hero .container {
  max-width: 1040px;
  position: relative;
  z-index: 2;
}

.art-hero__cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: .85rem;
  color: var(--accent-glow);
  font-size: .62rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.art-hero__cat svg { width: 11px; height: 11px; opacity: .7; }

.art-hero h1 {
  font-size: clamp(2rem, 4.8vw, 3rem);
  line-height: 1.06;
  font-weight: 740;
  letter-spacing: -.045em;
  color: #fff;
  margin: 0 0 .95rem;
  max-width: 700px;
  overflow-wrap: break-word;
  word-break: break-word;
}
.art-hero h1 .hl { color: var(--accent-glow); }

.art-hero__lead {
  font-size: clamp(15px, 1vw, 17px);
  line-height: 1.72;
  color: rgba(255,255,255,.68);
  max-width: 600px;
  margin: 0 0 1.35rem;
}

.art-hero__meta {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  font-size: .74rem;
  font-weight: 550;
  color: rgba(255,255,255,.45);
}
.art-hero__meta .dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: rgba(255,255,255,.2);
  flex-shrink: 0;
}
.art-hero__meta svg {
  width: 13px; height: 13px; opacity: .4; flex-shrink: 0;
}


/* ── Hero image ── */
.art-hero-img {
  margin: 0 0 .65rem;
  border-radius: var(--rl);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(9,13,26,.06), 0 12px 36px rgba(9,13,26,.1);
  background: var(--bgw);
}
.art-hero-img img {
  width: 100%; height: auto; display: block;
  aspect-ratio: 16/9; object-fit: cover;
}
.art-hero-img .blg-img-ph { aspect-ratio: 16/9; border-radius: 0; }


/* ── Disclaimer ── */
.art-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  margin-bottom: 1.75rem;
  padding: .55rem .85rem;
  border-radius: 10px;
  background: rgba(161,98,7,.03);
  border: 1px solid rgba(161,98,7,.1);
  font-size: .7rem;
  line-height: 1.5;
  color: var(--light);
}
.art-disclaimer svg {
  width: 14px; height: 14px; flex-shrink: 0;
  opacity: .6; margin-top: 1px; color: #a16207;
}


/* ═══════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════ */
.art-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  max-width: 1040px;
  margin: 1.5rem auto;
  padding: 0 var(--bs-gutter-x, .75rem) var(--spy);
  align-items: start;
  overflow-x: clip;
}


/* ── TOC ── */
.art-toc {
  position: sticky;
  top: 84px;
  align-self: start;
  padding-top: .25rem;
  min-width: 0;
}
.art-toc__label {
  font-size: .58rem; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--light); margin-bottom: .5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.art-toc__progress {
  width: 100%; height: 2px; border-radius: 2px;
  background: var(--line); overflow: hidden; margin-bottom: .65rem;
}
.art-toc__progress-bar {
  height: 100%; width: 0; background: var(--accent);
  border-radius: 2px; transition: width .12s linear;
}
.art-toc__pct {
  font-size: .56rem; font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--accent); opacity: .75;
}
.art-toc__list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: .08rem;
}
.art-toc__link {
  display: block;
  padding: .35rem .5rem .35rem .6rem;
  border-left: 2px solid transparent;
  font-size: 12.5px; font-weight: 550; line-height: 1.3;
  color: var(--muted); text-decoration: none;
  border-radius: 0 5px 5px 0; transition: all .18s;
}
.art-toc__link:hover {
  color: var(--ink); background: rgba(9,13,26,.025);
}
.art-toc__link.is-active {
  color: var(--accent); border-left-color: var(--accent);
  background: var(--accent-s); font-weight: 650;
}


/* ── Mobile TOC ── */
.art-toc-mobile { display: none; margin-bottom: 1.5rem; }
.art-toc-mobile__toggle {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: .65rem .85rem;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--white);
  font-family: var(--f); font-size: .8rem; font-weight: 650;
  color: var(--ink); cursor: pointer; transition: border-color .2s;
}
.art-toc-mobile__toggle:hover { border-color: var(--accent); }
.art-toc-mobile__toggle svg {
  width: 16px; height: 16px; color: var(--light); transition: transform .25s;
}
.art-toc-mobile__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.art-toc-mobile__panel {
  max-height: 0; overflow: hidden; transition: max-height .3s ease;
  padding: .35rem 0 0;
  counter-reset: toc-mob;
}
.art-toc-mobile__panel a {
  counter-increment: toc-mob;
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .6rem .7rem;
  margin-bottom: 1px;
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  text-decoration: none;
  border-radius: 10px;
  background: var(--bg);
  transition: background .15s, color .15s;
}
.art-toc-mobile__panel a::before {
  content: counter(toc-mob, decimal-leading-zero);
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: .6rem;
  font-weight: 780;
  letter-spacing: .02em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.art-toc-mobile__panel a:hover,
.art-toc-mobile__panel a:active {
  background: rgba(201,107,84,.06);
  color: var(--accent);
}
.art-toc-mobile__panel a:active::before {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}


/* ═══════════════════════════════════════
   ARTICLE CONTENT
   ═══════════════════════════════════════ */
.art-content {
  max-width: 720px; min-width: 0;
  overflow-wrap: break-word; word-break: break-word;
}
.art-content h2 {
  font-size: clamp(1.25rem, 1.9vw, 1.55rem);
  font-weight: 730; letter-spacing: -.03em;
  line-height: 1.14;
  margin: clamp(2.5rem, 4vw, 3.5rem) 0 .8rem;
  padding-bottom: .6rem;
  color: var(--ink); scroll-margin-top: 96px;
  border-bottom: 2px solid rgba(201,107,84,.15);
}
.art-content h2:first-child { margin-top: 0; }
.art-content h3 {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  font-weight: 700; letter-spacing: -.02em;
  line-height: 1.2; margin: 1.75rem 0 .55rem;
  color: var(--ink); scroll-margin-top: 96px;
}
.art-content p {
  font-size: clamp(14.5px, .92vw, 15.5px);
  line-height: 1.78; color: var(--text); margin: 0 0 1rem;
}
.art-content p:last-child { margin-bottom: 0; }

.art-content a:not(.btn-a):not(.btn-b):not(.btn-gh) {
  color: var(--accent); text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 3px;
  transition: color .25s;
}
.art-content a:not(.btn-a):not(.btn-b):not(.btn-gh):hover {
  color: var(--accent-h); text-decoration: none;
}

.art-content ul, .art-content ol {
  padding-left: 1.15rem; margin: 0 0 1.15rem;
}
.art-content li {
  font-size: clamp(14px, .88vw, 15px);
  line-height: 1.72; color: var(--text); margin-bottom: .35rem;
}
.art-content strong { color: var(--ink); font-weight: 680; }


/* ═══════════════════════════════════════
   QUICK ANSWER — editorial highlight
   ═══════════════════════════════════════ */
.art-answer {
  border-left: 4px solid var(--accent);
  padding: clamp(1.1rem, 1.8vw, 1.45rem);
  padding-left: clamp(1.2rem, 2vw, 1.65rem);
  border-radius: 0 var(--rl) var(--rl) 0;
  background: var(--white);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(9,13,26,.04), 0 8px 24px rgba(9,13,26,.04);
  margin-bottom: 1.75rem;
}
.art-answer__kicker {
  display: inline-block; margin-bottom: .35rem;
  font-size: .58rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
}
.art-answer p { font-size: 14px; line-height: 1.72; color: var(--text); margin: 0; }


/* ═══════════════════════════════════════
   BOXES
   ═══════════════════════════════════════ */
.art-box {
  padding: clamp(.85rem, 1.3vw, 1.1rem) clamp(.95rem, 1.3vw, 1.2rem);
  border-radius: var(--rl); margin: 1.35rem 0;
  display: flex; align-items: flex-start; gap: .6rem;
  font-size: 13.5px; line-height: 1.6;
  color: var(--text); overflow-wrap: break-word;
}
.art-box svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }
.art-box strong { display: block; margin-bottom: .15rem; font-size: .8rem; }
.art-box--info {
  background: linear-gradient(135deg, rgba(201,107,84,.04), rgba(201,107,84,.015));
  border: 1px solid rgba(201,107,84,.1);
  border-left: 3px solid var(--accent);
}
.art-box--info svg { color: var(--accent); }
.art-box--warn {
  background: linear-gradient(135deg, rgba(161,98,7,.045), rgba(161,98,7,.015));
  border: 1px solid rgba(161,98,7,.12);
  border-left: 3px solid rgba(161,98,7,.4);
}
.art-box--warn svg { color: #a16207; }
.art-box--tip {
  background: linear-gradient(135deg, rgba(79,143,118,.05), rgba(79,143,118,.015));
  border: 1px solid rgba(79,143,118,.12);
  border-left: 3px solid rgba(79,143,118,.3);
}
.art-box--tip svg { color: var(--green); }
.art-box--ymyl {
  background: linear-gradient(135deg, var(--bg), rgba(247,245,242,.6));
  border: 1px solid var(--line);
  padding: clamp(1rem, 1.6vw, 1.35rem);
  border-radius: var(--rl); flex-direction: column; gap: .4rem;
}
.art-box--ymyl .art-box__head {
  display: flex; align-items: center; gap: .4rem;
  font-size: .82rem; font-weight: 720; color: var(--ink);
}


/* ═══════════════════════════════════════
   CHECKLIST
   ═══════════════════════════════════════ */
.art-checklist {
  margin: 1.35rem 0;
  padding: clamp(.95rem, 1.6vw, 1.35rem);
  border-radius: var(--rl);
  background: var(--white); border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(9,13,26,.03);
}
.art-checklist__title {
  font-size: .9rem; font-weight: 720; color: var(--ink);
  margin: 0 0 .75rem;
  display: flex; align-items: center; gap: .45rem;
}
.art-checklist__title svg { width: 16px; height: 16px; color: var(--accent); }
.art-checklist ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .25rem; }
.art-checklist li {
  position: relative;
  padding: .4rem 0 .4rem 1.6rem;
  font-size: 13.5px; line-height: 1.55; color: var(--text);
  border-bottom: 1px solid var(--line);
}
.art-checklist li:last-child { border-bottom: 0; }
.art-checklist li svg {
  position: absolute;
  left: 0;
  top: .6rem;
  width: 14px; height: 14px;
  color: var(--green);
}
/* Na mobilu: strong na vlastní řádek */
@media (max-width: 575px) {
  .art-checklist li strong {
    display: block;
  }
}


/* ═══════════════════════════════════════════════════════
   TABULKY — ČISTÝ PRÉMIOVÝ DESIGN
   
   Žádné accent borders na buňkách.
   Žádné pill badges.
   Čistá typografie, dobrý spacing, zebra striping.
   Na mobilu horizontální scroll.
   ═══════════════════════════════════════════════════════ */

.art-table-wrap {
  margin: 1.5rem 0;
  max-width: 100%;
  position: relative;
  border-radius: var(--rx);
  overflow: hidden;
  background: var(--white);
  box-shadow:
    0 1px 2px rgba(9,13,26,.04),
    0 4px 12px rgba(9,13,26,.04),
    0 16px 40px rgba(9,13,26,.055);
}

/* scroll-hint: VYPNUTO — gradient překrýval text */


/* ─────────────────────────────────────
   TABLE 1: .art-table--cards
   (Co poskytovatel obvykle ověřuje)
   
   3 sloupce. První sloupec ŠIRŠÍ (min 140px)
   aby se text nelámal. Čistý bold, žádné borders.
   ───────────────────────────────────── */
.art-table--cards {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14.5px;
  line-height: 1.6;
}

.art-table--cards thead {
  background: linear-gradient(135deg, #0a1628, #142240);
}
.art-table--cards th {
  padding: 15px 22px;
  font-size: 11px;
  font-weight: 780;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.88);
  text-align: left;
  white-space: nowrap;
  vertical-align: middle;
  border: 0;
}
.art-table--cards th:first-child { border-radius: var(--rx) 0 0 0; }
.art-table--cards th:last-child  { border-radius: 0 var(--rx) 0 0; }

.art-table--cards td {
  padding: 15px 22px;
  border-bottom: 1px solid rgba(9,13,26,.06);
  vertical-align: top;
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.4;
}

/* zebra striping */
.art-table--cards tbody tr:nth-child(even) {
  background: rgba(9,13,26,.015);
}
.art-table--cards tbody tr {
  transition: background .15s;
}
.art-table--cards tbody tr:hover {
  background: rgba(9,13,26,.03);
}
.art-table--cards tbody tr:last-child td { border-bottom: 0; }

/* první sloupec: bold, wider, ŽÁDNÝ accent border */
.art-table--cards td:first-child {
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

/* zakulacení spodních rohů */
.art-table--cards tbody tr:last-child td:first-child  { border-radius: 0 0 0 var(--rx); }
.art-table--cards tbody tr:last-child td:last-child   { border-radius: 0 0 var(--rx) 0; }


/* ─────────────────────────────────────
   TABLE 2: .art-table--decision
   (Banka vs nebankovní srovnání)
   
   4 sloupce. První sloupec: prostý bold text.
   ŽÁDNÉ pill badges. ŽÁDNÉ tlačítkové efekty.
   ───────────────────────────────────── */
.art-table--decision {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-size: 14.5px;
  line-height: 1.6;
}

.art-table--decision col.art-col-variant { width: 160px; }
.art-table--decision col.art-col-when    { width: 28%; }
.art-table--decision col.art-col-check   { width: 26%; }
.art-table--decision col.art-col-risk    { width: 30%; }

.art-table--decision thead {
  background: linear-gradient(135deg, #0a1628, #142240);
}
.art-table--decision th {
  padding: 15px 22px;
  text-align: left;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 780;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: normal;
  vertical-align: middle;
  color: rgba(255,255,255,.88);
  border: 0;
}
.art-table--decision th:first-child { border-radius: var(--rx) 0 0 0; }
.art-table--decision th:last-child  { border-radius: 0 var(--rx) 0 0; }

.art-table--decision td {
  padding: 15px 22px;
  border-bottom: 1px solid rgba(9,13,26,.06);
  vertical-align: top;
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.4;
  word-break: normal;
  overflow-wrap: break-word;
}

/* zebra striping */
.art-table--decision tbody tr:nth-child(even) {
  background: rgba(9,13,26,.015);
}
.art-table--decision tbody tr {
  transition: background .15s;
}
.art-table--decision tbody tr:hover {
  background: rgba(9,13,26,.03);
}
.art-table--decision tbody tr:last-child td { border-bottom: 0; }
.art-table--decision tbody tr:last-child td:first-child { border-radius: 0 0 0 var(--rx); }
.art-table--decision tbody tr:last-child td:last-child  { border-radius: 0 0 var(--rx) 0; }

/* první sloupec: prostý bold, ŽÁDNÝ pill badge */
.art-table--decision td:first-child {
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

/* poslední sloupec: jemně utlumený */
.art-table--decision td:last-child {
  color: var(--muted);
  font-size: 13.5px;
}

/* .art-table__pill — přestylován na čistý bold text,
   pokud HTML stále obsahuje <span class="art-table__pill"> */
.art-table__pill {
  display: inline;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: inherit;
  line-height: inherit;
  font-weight: 700;
}


/* ── Tabulky: RESPONZIVITA ── */
@media (max-width: 920px) {
  .art-table-wrap--cards,
  .art-table-wrap--decision {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--rl);
  }
  .art-table--cards { min-width: 560px; }
  .art-table--decision { min-width: 660px; }

  /* radius fix */
  .art-table--cards th:first-child,
  .art-table--decision th:first-child { border-radius: var(--rl) 0 0 0; }
  .art-table--cards th:last-child,
  .art-table--decision th:last-child { border-radius: 0 var(--rl) 0 0; }
  .art-table--cards tbody tr:last-child td:first-child,
  .art-table--decision tbody tr:last-child td:first-child { border-radius: 0 0 0 var(--rl); }
  .art-table--cards tbody tr:last-child td:last-child,
  .art-table--decision tbody tr:last-child td:last-child { border-radius: 0 0 var(--rl) 0; }
}

@media (max-width: 575px) {
  .art-table--cards th,
  .art-table--decision th {
    padding: 13px 16px;
    font-size: 10px;
  }
  .art-table--cards td,
  .art-table--decision td {
    padding: 12px 16px;
    font-size: 13.5px;
  }
  .art-table-wrap {
    border-radius: var(--r);
    box-shadow: 0 1px 2px rgba(9,13,26,.04), 0 8px 24px rgba(9,13,26,.06);
  }
  .art-table--cards th:first-child,
  .art-table--decision th:first-child { border-radius: var(--r) 0 0 0; }
  .art-table--cards th:last-child,
  .art-table--decision th:last-child { border-radius: 0 var(--r) 0 0; }
  .art-table--cards tbody tr:last-child td:first-child,
  .art-table--decision tbody tr:last-child td:first-child { border-radius: 0 0 0 var(--r); }
  .art-table--cards tbody tr:last-child td:last-child,
  .art-table--decision tbody tr:last-child td:last-child { border-radius: 0 0 var(--r) 0; }
}


/* ── GENERICKÁ TABULKA fallback ── */
.art-table-wrap:not(.art-table-wrap--cards):not(.art-table-wrap--decision) {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.art-table:not(.art-table--cards):not(.art-table--decision) {
  width: 100%; border-collapse: collapse; font-size: 13.5px; line-height: 1.55;
}
.art-table:not(.art-table--cards):not(.art-table--decision) thead {
  background: linear-gradient(135deg, #0a1628, #142240); color: #fff;
}
.art-table:not(.art-table--cards):not(.art-table--decision) th {
  padding: .65rem .8rem; font-weight: 700; font-size: .7rem;
  letter-spacing: .06em; text-transform: uppercase; text-align: left; white-space: nowrap;
}
.art-table:not(.art-table--cards):not(.art-table--decision) td {
  padding: .55rem .8rem; border-top: 1px solid var(--line);
  color: var(--text); vertical-align: top;
}
.art-table:not(.art-table--cards):not(.art-table--decision) tbody tr:hover {
  background: rgba(9,13,26,.02);
}


/* ═══════════════════════════════════════
   CTA — in-article
   ═══════════════════════════════════════ */
.art-cta {
  margin: 2.5rem 0;
  padding: clamp(1.35rem, 2.5vw, 2rem);
  border-radius: var(--rx);
  background: linear-gradient(135deg, #0a1628 0%, #142240 50%, #0d1f38 100%);
  color: #fff; text-align: center;
  position: relative; overflow: hidden;
}
.art-cta::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 40% 45% at 20% 50%, rgba(201,107,84,.12), transparent 60%),
    radial-gradient(ellipse 30% 40% at 85% 30%, rgba(79,143,118,.06), transparent);
  pointer-events: none;
}
.art-cta > * { position: relative; z-index: 1; }
.art-cta h3 {
  font-size: clamp(.95rem, 1.4vw, 1.15rem);
  font-weight: 720; color: #fff; margin: 0 0 .5rem; letter-spacing: -.02em;
}
.art-cta p {
  font-size: 14px; line-height: 1.6;
  color: rgba(255,255,255,.75); margin: 0 0 1.1rem;
  max-width: 44ch; margin-inline: auto;
}
.art-cta__btns {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
}
.art-cta__note {
  margin-top: .75rem; font-size: .68rem; color: rgba(255,255,255,.55);
}


/* ═══════════════════════════════════════
   RELATED — sirotčí karta centrovaná
   ═══════════════════════════════════════ */
.art-related {
  padding: var(--spy) 0;
  background: linear-gradient(180deg, var(--bg), var(--bgw));
  padding-top:2rem;
}
.art-related-grid {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(14px, 1.5vw, 20px);
  justify-content: center;
}
.art-rel {
  flex: 1 1 calc(33.333% - 14px);
  min-width: 280px;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  border-radius: var(--rl);
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--trans), border-color var(--trans), transform var(--trans);
}
.art-rel:hover {
  color: inherit;
  box-shadow: var(--sh-lift);
  border-color: rgba(201,107,84,.18);
  transform: translateY(-2px);
}
.art-rel__img {
  aspect-ratio: 16/10; overflow: hidden; background: var(--bg);
}
.art-rel__img picture { display: block; width: 100%; height: 100%; }
.art-rel__img img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: center; transition: transform .45s;
}
.art-rel:hover .art-rel__img img { transform: scale(1.04); }
.art-rel__body {
  flex: 1; display: flex; flex-direction: column;
  padding: clamp(.75rem, 1.2vw, 1rem);
}
.art-rel__cat {
  font-size: .6rem; font-weight: 720;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .25rem;
}
.art-rel h3 {
  font-size: clamp(.88rem, 1vw, .98rem);
  font-weight: 700; line-height: 1.22;
  color: var(--ink); margin: 0 0 .3rem;
}
.art-rel p {
  font-size: 12.5px; line-height: 1.5; color: var(--muted);
  margin: 0; flex: 1;
  display: -webkit-box; -webkit-box-orient: vertical;
  -webkit-line-clamp: 3; overflow: hidden;
}
.art-rel__more {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: .55rem; font-size: .74rem; font-weight: 700;
  color: var(--accent);
}
.art-rel__more svg { width: 11px; height: 11px; transition: transform .2s; }
.art-rel:hover .art-rel__more svg { transform: rotate(45deg); }


/* ═══════════════════════════════════════
   SOURCES — strukturovaný editorial blok
   Zdroje jako mini-karty v gridu.
   ═══════════════════════════════════════ */
.art-sources {
  margin: 2.5rem 0 0;
  padding: clamp(1.25rem, 2vw, 1.75rem);
  border-radius: var(--rx);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow:
    0 1px 2px rgba(9,13,26,.03),
    0 8px 24px rgba(9,13,26,.05);
}
.art-sources__title {
  font-size: .92rem;
  font-weight: 740;
  color: var(--ink);
  margin: 0 0 .85rem;
  padding-bottom: .65rem;
  border-bottom: 2px solid rgba(201,107,84,.15);
  display: flex;
  align-items: center;
  gap: .45rem;
}
.art-sources__title svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}
.art-sources__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
  margin-bottom: 1rem;
  padding: .65rem .75rem;
  border-radius: var(--r);
  background: var(--bg);
  font-size: .7rem;
  color: var(--muted);
  line-height: 1.45;
}
.art-sources__meta strong {
  display: block;
  font-size: .58rem;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--light);
  margin-bottom: .1rem;
}
.art-sources__meta span {
  color: var(--ink);
  font-weight: 600;
  font-size: .72rem;
}
.art-sources ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
}
.art-sources li {
  font-size: .78rem;
  line-height: 1.55;
  color: var(--muted);
  padding: .65rem .85rem;
  border-radius: var(--r);
  background: var(--bg);
  border: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.art-sources li:hover {
  border-color: rgba(201,107,84,.12);
  box-shadow: 0 2px 8px rgba(9,13,26,.04);
}
.art-sources a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 650;
  transition: color .15s;
}
.art-sources a:hover {
  color: var(--accent-h);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.art-sources__note {
  margin-top: .85rem;
  font-size: .68rem;
  line-height: 1.55;
  color: var(--light);
  padding: .65rem .75rem;
  border-radius: var(--r);
  background: rgba(161,98,7,.03);
  border: 1px solid rgba(161,98,7,.08);
}


/* ═══════════════════════════════════════
   MISTAKES
   ═══════════════════════════════════════ */
.art-mistakes {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(8px, 1vw, 12px); margin: 1.35rem 0;
}
.art-mistake {
  padding: .85rem; border-radius: var(--rl);
  background: var(--white); border: 1px solid var(--line);
  border-top: 3px solid rgba(201,107,84,.3);
  box-shadow: 0 2px 8px rgba(9,13,26,.03);
}
.art-mistake strong { display: block; font-size: .84rem; color: var(--ink); margin-bottom: .25rem; }
.art-mistake p { font-size: 12.5px; line-height: 1.5; color: var(--muted); margin: 0; }


/* ═══════════════════════════════════════
   FINAL CTA — (user approved design)
   ═══════════════════════════════════════ */
.art-final-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: var(--rx);
  background: linear-gradient(135deg, #0a1628, #142240 50%, #0d1f38);
  color: #fff; position: relative; overflow: hidden;
}
.art-final-cta::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 35% 45% at 15% 55%, rgba(201,107,84,.1), transparent 55%),
    radial-gradient(ellipse 25% 35% at 90% 25%, rgba(79,143,118,.06), transparent);
  pointer-events: none;
}
.art-final-cta > * { position: relative; z-index: 1; }
.art-final-cta__label {
  display: inline-block; font-size: .6rem; font-weight: 780;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-glow); margin-bottom: .5rem;
}
.art-final-cta h2 {
  font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 740;
  letter-spacing: -.03em; color: #fff; margin: 0 0 .55rem;
}
.art-final-cta p {
  font-size: 14.5px; line-height: 1.65;
  color: rgba(255,255,255,.7); margin: 0 0 1.25rem; max-width: 50ch;
}
.art-final-cta__btns { display: flex; gap: 10px; flex-wrap: wrap; }
.art-final-cta__side {
  min-width: 200px; padding: 1.1rem 1.25rem;
  border-radius: var(--rl);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
}
.art-final-cta__side strong {
  display: block; font-size: .82rem; font-weight: 700;
  color: #fff; margin-bottom: .5rem;
}
.art-final-cta__side ul { list-style: none; padding: 0; margin: 0; }
.art-final-cta__side li {
  font-size: .78rem; line-height: 1.45;
  color: rgba(255,255,255,.6);
  padding: .15rem 0 .15rem 1rem; position: relative;
}
.art-final-cta__side li::before {
  content: ''; position: absolute; left: 0; top: .52rem;
  width: 4px; height: 4px; border-radius: 50%; background: var(--accent);
}


/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */

/* ── 991px: centrování layoutu ── */
@media (max-width: 991px) {
  .art-layout {
    grid-template-columns: 1fr;
    max-width: 780px;
  }
  .art-toc { display: none; }
  .art-toc-mobile { display: block; }
  .art-content { max-width: 100%; }

  .art-rel {
    flex: 0 1 calc(50% - 10px);
    max-width: calc(50% - 10px);
  }

  .art-final-cta { grid-template-columns: 1fr; }
  .art-final-cta__side { min-width: 0; }
}

/* ── 880px ── */
@media (max-width: 880px) {
  .art-sources ul { grid-template-columns: 1fr; }
  .art-sources__meta { grid-template-columns: 1fr; gap: .25rem; }
}

/* ── 767px ── */
@media (max-width: 767px) {
  .art-hero h1 { font-size: clamp(1.55rem, 6vw, 2rem); }
  .art-hero__lead { font-size: 14.5px; }
  .art-hero__meta { font-size: .7rem; gap: .35rem; }
  .art-hero-img { border-radius: var(--r); }
  .art-mistakes { grid-template-columns: 1fr; }
  .art-rel__body { padding: .85rem; }
}

/* ── 768px: related karty na plnou šířku ── */
@media (max-width: 768px) {
  .art-rel {
    flex: 0 1 100%;
    max-width: 100%;
  }
}

/* ── 640px ── */
@media (max-width: 640px) {
  .art-layout { padding-left: 16px; padding-right: 16px; }
  .art-hero__meta .dot { display: none; }
  .art-hero__meta { gap: .15rem .5rem; }
  .art-hero__meta > span { font-size: .68rem; }
  .art-disclaimer { padding: .45rem .65rem; font-size: .66rem; gap: .4rem; }
}

/* ── 575px ── */
@media (max-width: 575px) {
  .art-hero { padding-top: clamp(5.5rem, 10vw, 6.5rem); }
  .art-hero h1 { font-size: clamp(1.4rem, 7vw, 1.8rem); }
  .art-content h2 { font-size: clamp(1.1rem, 5vw, 1.3rem); margin-top: 1.75rem; }
  .art-content h3 { font-size: clamp(.92rem, 4vw, 1.02rem); }
  .art-content p { font-size: 14px; }
  .art-content li { font-size: 13.5px; }
  .art-answer { padding: .75rem .85rem; }
  .art-cta { padding: 1.15rem .95rem; border-radius: var(--rl); }
  .art-cta__btns { flex-direction: column; align-items: center; }
  .art-box { font-size: 12.5px; padding: .75rem .8rem; }
  .art-checklist { padding: .8rem; }
  .art-checklist li { font-size: 12.5px; }
  .art-toc-mobile__toggle { padding: .55rem .75rem; font-size: .76rem; }
}

/* ── 480px ── */
@media (max-width: 480px) {
  .art-layout { padding-left: 14px; padding-right: 14px; }
  .art-hero .container { padding-left: 14px; padding-right: 14px; }
  .art-content h2 { font-size: 1.1rem; scroll-margin-top: 80px; }
  .art-content h3 { font-size: .92rem; scroll-margin-top: 80px; }
  .art-cta h3 { font-size: .9rem; }
  .art-cta p { font-size: 13px; }
  .art-related .container { padding-left: 14px; padding-right: 14px; }
  .art-rel h3 { font-size: .85rem; }
  .art-rel p { font-size: 12px; -webkit-line-clamp: 2; }
}

/* ── 374px ── */
@media (max-width: 374px) {
  .art-hero h1 { font-size: 1.3rem; }
  .art-hero__cat { font-size: .56rem; }
  .art-hero__lead { font-size: 13.5px; }
  .art-layout { padding-left: 12px; padding-right: 12px; }
  .art-content p { font-size: 13.5px; }
  .art-content li { font-size: 13px; }
  .art-answer p { font-size: 13px; }
  .art-box { font-size: 12px; gap: .4rem; }
  .art-box svg { width: 14px; height: 14px; }
  .art-disclaimer { font-size: .62rem; padding: .4rem .55rem; }
  .art-mistake { padding: .65rem; }
  .art-mistake strong { font-size: .78rem; }
  .art-mistake p { font-size: 12px; }
}

/* ── 359px ── */
@media (max-width: 359px) {
  .art-hero h1 { font-size: 1.2rem; letter-spacing: -.035em; }
  .art-layout { padding-left: 10px; padding-right: 10px; }
  .art-content p, .art-content li { font-size: 13px; }
  .art-toc-mobile__toggle { padding: .5rem .6rem; font-size: .72rem; }
  .art-cta { padding: .9rem .7rem; }
}

/**/


/* ======================================================
   SAFE PATCH 2026-05 — detail článku
   Cíl: lepší mobilní tabulky, bezpečný scroll offset.
   Dopad: pouze stránky s html.art-page a třídami art-*.
   ====================================================== */

html.art-page .art-answer {
  scroll-margin-top: 96px;
}

@media (max-width: 480px) {
  html.art-page .art-answer {
    scroll-margin-top: 80px;
  }
}

/* Mobilní tabulky jako karty — čitelnější než horizontální scroll.
   Platí jen pro dvě článkové tabulky, které už v HTML používají data-label. */
@media (max-width: 640px) {
  html.art-page .art-table-wrap--cards,
  html.art-page .art-table-wrap--decision {
    overflow: visible;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  html.art-page .art-table--cards,
  html.art-page .art-table--decision {
    display: block;
    min-width: 0;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
  }

  html.art-page .art-table--cards thead,
  html.art-page .art-table--decision thead,
  html.art-page .art-table--decision colgroup {
    display: none;
  }

  html.art-page .art-table--cards tbody,
  html.art-page .art-table--decision tbody {
    display: grid;
    gap: 12px;
  }

  html.art-page .art-table--cards tr,
  html.art-page .art-table--decision tr {
    display: grid;
    gap: 0;
    padding: 14px 14px 12px;
    border: 1px solid rgba(9,13,26,.08);
    border-radius: var(--rl);
    background: var(--white);
    box-shadow:
      0 1px 2px rgba(9,13,26,.04),
      0 10px 28px rgba(9,13,26,.055);
  }

  html.art-page .art-table--cards tr:nth-child(even),
  html.art-page .art-table--decision tr:nth-child(even),
  html.art-page .art-table--cards tbody tr:hover,
  html.art-page .art-table--decision tbody tr:hover {
    background: var(--white);
  }

  html.art-page .art-table--cards td,
  html.art-page .art-table--decision td {
    display: grid;
    grid-template-columns: minmax(92px, 34%) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 10px 0;
    border: 0;
    border-bottom: 1px solid rgba(9,13,26,.065);
    border-radius: 0 !important;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--text);
    white-space: normal;
  }

  html.art-page .art-table--cards td:last-child,
  html.art-page .art-table--decision td:last-child {
    border-bottom: 0;
    color: var(--text);
    font-size: 13.5px;
  }

  html.art-page .art-table--cards td::before,
  html.art-page .art-table--decision td::before {
    content: attr(data-label);
    font-size: 10.5px;
    line-height: 1.35;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--light);
  }

  html.art-page .art-table--cards td:first-child,
  html.art-page .art-table--decision td:first-child {
    grid-template-columns: 1fr;
    padding-top: 0;
    padding-bottom: 11px;
    margin-bottom: 2px;
    border-bottom: 1px solid rgba(201,107,84,.16);
    font-size: 15px;
    line-height: 1.35;
    font-weight: 800;
    color: var(--ink);
    white-space: normal;
  }

  html.art-page .art-table--cards td:first-child::before,
  html.art-page .art-table--decision td:first-child::before {
    display: none;
  }

  html.art-page .art-table__pill {
    display: inline;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    font-size: 15px;
    line-height: 1.35;
    font-weight: 800;
  }
}

/**/

/* PATCH — zalomení delších názvů v prvním sloupci tabulek */
html.art-page .art-table--cards td:first-child,
html.art-page .art-table--decision td:first-child {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  min-width: 0;
}

html.art-page .art-table--cards td:first-child .art-table__pill,
html.art-page .art-table--decision td:first-child .art-table__pill {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

html.art-page .art-table--decision col.art-col-variant {
  width: 210px;
}
