/* =========================================================================
   Noso Blog — jeden článek (vzhled A: Magazine)
   Hero s překrytým titulkem (LCP) + obsah vlevo + sticky sidebar vpravo.
   Tokeny dědí z theme.css; karty related dědí z blog.css.
   Accent vždy var(--accent). Efekty ≤0.1s, hover jen @media hover.
   ========================================================================= */

.nblog-article { max-width: 1500px; margin: 0 auto; padding: 24px var(--side-pad) 0; }

/* ----- breadcrumb ----- */
.nblog-breadcrumb { font-size: 12px; color: var(--text-muted); margin-bottom: 18px; }
.nblog-breadcrumb a { color: var(--text-secondary); transition: color .1s; }
.nblog-breadcrumb .sep { color: var(--text-dim); margin: 0 6px; }
@media (hover: hover) { .nblog-breadcrumb a:hover { color: var(--accent); } }

/* ----- hero (LCP) — překrytý titulek + meta ----- */
.nblog-art-hero { position: relative; height: 300px; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 36px; }
.nblog-art-hero.is-noimg { background: linear-gradient(135deg, #2a1826, #15131a 55%, #1d1422); }
.nblog-art-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% -20px; }
.nblog-art-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(8,7,10,.95) 0%, rgba(8,7,10,.5) 45%, rgba(8,7,10,0) 78%); }
.nblog-art-hero-cap { position: absolute; left: 0; bottom: 0; z-index: 2; padding: clamp(20px, 3vw, 34px); max-width: 820px; text-shadow: 0 1px 7px rgba(0,0,0,.6); }
.nblog-art-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; color: #e6e6e6; margin-bottom: 13px; }
.nblog-art-hero-cap h1 { font-size: clamp(26px, 4vw, 46px); font-weight: 800; letter-spacing: -.02em; line-height: 1.06; color: #fff; }

/* ----- layout: obsah + sticky sidebar ----- */
.nblog-art-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 52px; align-items: start; }
.nblog-art-main { min-width: 0; max-width: 760px; }
.nblog-art-side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 24px; background: #171717; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 20px; }

/* sidebar bloky */
.nblog-side-block { }
.nblog-side-h { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 13px; padding-bottom: 10px; border-bottom: 1px solid var(--border-subtle); }

/* share */
.nblog-share { display: flex; gap: 9px; }
.nblog-share-btn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.05); border: 1px solid var(--border-subtle); color: var(--text-secondary); }
@media (hover: hover) { .nblog-share-btn { transition: background .1s, color .1s, border-color .1s; } .nblog-share-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; } }

/* topics */
.nblog-side-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.nblog-side-tag { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; background: rgba(255,255,255,.05); border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); color: var(--text-body); font-size: 13px; font-weight: 500; text-transform: capitalize; }
@media (hover: hover) { .nblog-side-tag { transition: background .08s, color .08s, border-color .08s; } .nblog-side-tag:hover { background: color-mix(in srgb, var(--accent) 62%, transparent); border-color: color-mix(in srgb, var(--accent) 95%, transparent); color: #fff; } }

/* ----- tělo článku — čtecí sloupec ----- */
.nblog-art-body { color: var(--text-body); font-size: 17px; line-height: 1.72; }
.nblog-art-body > * { margin-bottom: 20px; }
.nblog-art-body > p:first-of-type { font-size: 18px; line-height: 1.65; color: var(--text-primary); }
.nblog-art-body h2 { font-size: 24px; font-weight: 700; letter-spacing: -.01em; color: var(--text-primary); margin: 32px 0 14px; }
.nblog-art-body h3 { font-size: 19px; font-weight: 700; color: var(--text-primary); margin: 26px 0 12px; }
.nblog-art-body a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.nblog-art-body img { border-radius: var(--radius-md); }
.nblog-art-body blockquote { margin: 28px 0; padding: 6px 0 6px 22px; border-left: 3px solid var(--accent); font-size: 21px; line-height: 1.4; font-weight: 600; color: var(--text-primary); }
.nblog-art-body ul, .nblog-art-body ol { padding-left: 22px; }
.nblog-art-body li { margin-bottom: 8px; }
.nblog-art-body figure { margin: 28px 0; }
.nblog-art-body figcaption { margin-top: 9px; font-size: 13px; color: var(--text-muted); text-align: center; }

/* ----- related v sidebaru (vertikální seznam) ----- */
.nblog-rel-list { display: flex; flex-direction: column; gap: 14px; }
.nblog-rel-li { display: flex; gap: 11px; align-items: flex-start; }
.nblog-rel-thumb { width: 84px; flex-shrink: 0; aspect-ratio: 16/10; border-radius: 8px; overflow: hidden; background: linear-gradient(135deg, #1a1a1a, #222); position: relative; }
.nblog-rel-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.nblog-rel-title { font-size: 13px; font-weight: 700; line-height: 1.3; color: var(--text-primary); transition: color .1s; }
.nblog-rel-meta { font-size: 11px; color: var(--text-muted); margin-top: 5px; }
@media (hover: hover) { .nblog-rel-li:hover .nblog-rel-title { color: var(--accent); } }

/* ----- responsive ----- */
@media (max-width: 980px) {
  .nblog-art-grid { grid-template-columns: 1fr; gap: 30px; }
  .nblog-art-main { max-width: none; }
  /* sidebar (share + topics + related) se skládá pod článek */
  .nblog-art-side { position: static; }
}
@media (max-width: 767.98px) {
  .nblog-art-hero { height: 240px; }
  .nblog-art-body { font-size: 16px; }
}
