/* Generated blog articles (blog-automation/build.js) — scoped to .article-v2 so legacy posts stay untouched. */
.article-v2 {
    --pack-a: #FF8A3D;
    --pack-b: #B04BFF;
    --pack-c: #FFD7A8;
    --pack-ink: #14060F;
    --pack-grad: linear-gradient(135deg, var(--pack-a), var(--pack-b), var(--pack-c));
    --surface: #141414;
    --surface-2: #1c1c1c;
    --line: #2a2a2a;
    --muted: #a3a3a3;
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.08rem;
    line-height: 1.75;
}

/* progress bar */
.read-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 200; background: var(--pack-grad); transition: width .1s linear; }

/* header */
.article-v2 .article-header { margin-bottom: 28px; }
.article-v2 .kicker { display: inline-flex; gap: 8px; align-items: center; margin-bottom: 18px; padding: 6px 12px; border-radius: 999px;
    background: var(--surface-2); border: 1px solid var(--line); font-size: .8rem; letter-spacing: .4px; color: var(--muted); }
.article-v2 .kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--pack-grad); display: inline-block; }
.article-v2 .article-header h1 { font-family: 'Recoleta', Georgia, serif; font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.1; letter-spacing: -.5px; margin: 0 0 16px; }
.article-v2 .dek { font-size: 1.2rem; line-height: 1.55; color: var(--muted); margin: 0 0 22px; }
.article-v2 .byline { display: flex; align-items: center; gap: 12px; font-size: .92rem; color: var(--muted); }
.article-v2 .byline img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.article-v2 .byline a { color: var(--white, #fff); font-weight: 600; text-decoration: none; }

/* hero — breaks out of the text column on wide screens */
.article-v2 .hero { margin: 32px -80px 40px; }
.article-v2 .hero img { width: 100%; height: auto; display: block; border-radius: 24px; aspect-ratio: 3 / 2; object-fit: cover; }

/* body */
.article-v2 h2 { font-family: 'Recoleta', Georgia, serif; font-size: 1.85rem; line-height: 1.2; margin: 56px 0 16px; scroll-margin-top: 90px; }
.article-v2 h3 { font-size: 1.15rem; margin: 32px 0 10px; }
.article-v2 p { margin: 0 0 20px; }
.article-v2 a.text-link { text-decoration-color: rgba(255,255,255,.35); text-underline-offset: 3px; }

/* key takeaways */
.article-v2 .key-takeaways { position: relative; margin: 36px 0; padding: 26px 28px 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.article-v2 .key-takeaways::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--pack-grad); }
.article-v2 .key-takeaways h2 { margin: 0 0 12px; font-size: 1.1rem; font-family: inherit; letter-spacing: .3px; }
.article-v2 .key-takeaways ul { margin: 0; padding-left: 1.1em; }
.article-v2 .key-takeaways li { margin: 8px 0; }

/* table of contents */
.article-v2 .toc { margin: 0 0 40px; padding: 18px 22px; border-radius: 16px; border: 1px dashed var(--line); font-size: .95rem; }
.article-v2 .toc p { margin: 0 0 8px; font-weight: 600; }
.article-v2 .toc ol { margin: 0; padding-left: 1.2em; color: var(--muted); }
.article-v2 .toc li { margin: 4px 0; }
.article-v2 .toc a { color: inherit; text-decoration: none; }
.article-v2 .toc a:hover { color: #fff; }

/* question lists → app-style cards */
.article-v2 ul.q-list { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 12px; }
.article-v2 ul.q-list li { position: relative; margin: 0; padding: 16px 18px 16px 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); line-height: 1.55; }
.article-v2 ul.q-list li::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 0 4px 4px 0; background: var(--pack-grad); }
.article-v2 ul.q-list li strong { display: block; margin-bottom: 4px; color: #fff; font-family: 'Recoleta', Georgia, serif; font-weight: 600; font-size: 1.12rem; }

/* pack showcase */
.pack-card { margin: 48px -40px; padding: 28px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line);
    display: grid; grid-template-columns: 210px 1fr; gap: 28px; align-items: start; }
.pack-cover { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 3 / 4; box-shadow: 0 18px 40px rgba(0,0,0,.5); transform: rotate(-2deg); }
.pack-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pack-cover span { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 16px; text-align: center; color: #fff;
    font-weight: 800; font-stretch: 125%; font-size: 1.25rem; line-height: 1.05; text-shadow: 0 1px 4px rgba(0,0,0,.5);
    background: linear-gradient(transparent, rgba(0,0,0,.35)); }
.pack-cover.top span { top: 0; bottom: auto; padding: 16px 14px 40px; background: linear-gradient(rgba(0,0,0,.35), transparent); }
.pack-meta { margin: 0 0 4px; font-size: .78rem; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); }
.pack-card h2 { margin: 0 0 8px; font-size: 1.7rem; }
.pack-desc { color: var(--muted); font-size: .98rem; line-height: 1.55; margin: 0 0 18px; }
.pack-qs { list-style: none; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pack-qs li { margin: 0; padding: 14px 14px 16px; border-radius: 16px; background: var(--pack-grad); color: var(--pack-ink);
    font-family: 'Recoleta', Georgia, serif; font-size: .98rem; line-height: 1.3; min-height: 92px; display: flex; flex-direction: column; justify-content: space-between; }
.pack-qs li small { font-family: 'Inter', sans-serif; font-size: .68rem; font-weight: 600; opacity: .55; margin-top: 10px; }
.pack-card .btn { display: inline-block; }
.pack-note { margin: 10px 0 0; font-size: .82rem; color: var(--muted); }

/* store badges (App Store + Google Play waitlist) */
.store-badges { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.store-badges img { height: 48px; width: auto; display: block; }

/* closing app CTA */
.app-cta { margin: 64px -40px 8px; padding: 36px; border-radius: 28px; background: radial-gradient(circle at 15% 30%, rgba(176,75,255,.25), transparent 55%), var(--surface);
    border: 1px solid var(--line); display: grid; grid-template-columns: 230px 1fr; gap: 40px; align-items: center; }
.app-cta-phone img { width: 100%; height: auto; display: block; filter: drop-shadow(0 26px 40px rgba(0,0,0,.6)); }
.app-cta-kicker { margin: 0 0 6px; font-size: .78rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.app-cta h2 { margin: 0 0 14px; font-size: 1.9rem; }
.app-cta ul { list-style: none; margin: 0 0 24px; padding: 0; }
.app-cta li { margin: 10px 0; padding-left: 28px; position: relative; line-height: 1.45; }
.app-cta li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--pack-grad);
    color: var(--pack-ink); font-size: .7rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.app-cta-badge img { height: 54px; width: auto; display: block; }
.app-cta-note { margin: 12px 0 0; font-size: .85rem; color: var(--muted); }

/* FAQ accordion */
.article-v2 .faq-v2 { margin-top: 64px; }
.article-v2 .faq-v2 > h2 { margin-top: 0; }
.article-v2 details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.article-v2 summary { cursor: pointer; list-style: none; padding: 16px 36px 16px 0; font-weight: 600; font-size: 1.05rem; position: relative; }
.article-v2 summary::-webkit-details-marker { display: none; }
.article-v2 summary::after { content: '+'; position: absolute; right: 4px; top: 12px; font-size: 1.5rem; font-weight: 400; color: var(--muted); transition: transform .2s; }
.article-v2 details[open] summary::after { transform: rotate(45deg); }
.article-v2 details p { color: var(--muted); margin: 0 0 18px; }

/* sources + related */
.article-v2 .article-sources { margin-top: 40px; font-size: .88rem; color: var(--muted); }
.article-v2 .article-sources h2 { font-size: 1rem; margin: 0 0 8px; font-family: inherit; }
.article-v2 .article-sources ul { padding-left: 1.1em; margin: 0; }
.article-v2 .related { margin-top: 48px; }
.article-v2 .related h2 { margin: 0 0 16px; font-size: 1.4rem; }
.article-v2 .related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.article-v2 .related-grid a { display: block; padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
    color: #fff; text-decoration: none; font-weight: 600; transition: border-color .2s, transform .2s; }
.article-v2 .related-grid a:hover { border-color: #555; transform: translateY(-2px); }
.article-v2 .related-grid a span { display: block; margin-top: 6px; font-size: .8rem; font-weight: 500; color: var(--muted); }

@media (max-width: 900px) {
    .article-v2 .hero { margin: 28px 0 32px; }
    .pack-card, .app-cta { margin-left: 0; margin-right: 0; }
}
@media (max-width: 640px) {
    .article-v2 { font-size: 1.02rem; }
    .article-v2 .hero img { border-radius: 18px; }
    .article-v2 h2 { font-size: 1.55rem; margin-top: 44px; }
    .pack-card { grid-template-columns: 1fr; padding: 22px 18px; gap: 22px; }
    .pack-cover { max-width: 180px; margin: 0 auto; }
    .pack-qs { grid-template-columns: 1fr; }
    .pack-qs li { min-height: 0; }
    .app-cta { grid-template-columns: 1fr; padding: 26px 20px; gap: 22px; text-align: center; }
    .app-cta-phone { max-width: 210px; margin: 0 auto; }
    .app-cta ul { text-align: left; display: inline-block; }
    .app-cta .store-badges { justify-content: center; }
    .store-badges img { height: 44px; }
    .article-v2 .related-grid { grid-template-columns: 1fr; }
}

/* Blog index cards — same as the inline styles in /blog/index.html, needed by generated /cs/blog/ and /cs/otazky/. */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 32px; margin-top: 40px; }
.blog-card { background: var(--gray); border: 1px solid var(--light-gray); border-radius: 12px; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; position: relative; }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0, 0, 0, .3); }
.blog-card-link { position: absolute; inset: 0; z-index: 1; }
.blog-card-image { width: 100%; height: 200px; object-fit: cover; display: block; }
.blog-card-content { padding: 24px; }
.blog-card-title { font-size: 20px; font-weight: 600; color: var(--white); margin-bottom: 12px; line-height: 1.3; }
.blog-card-excerpt { font-size: 15px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 16px; }
.blog-card-meta { font-size: 13px; color: var(--text-secondary); }
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } }
