/* Wide blog article (posts.json "layout": "wide"), first used by /blog/ai-ve-firme-pouziva-jen-par-lidi (12. 10. 2026). */
@import url("pilot.css");
@import url("hrko.css");
/* Preview styling for long-form "playbook" blog posts. Tokens from static/css/styles.css. */
.ai-post { --lilac:#D9C8FF; --blue:#C7E1FF; --peach-s:#FFD9C2; --green:#C9EDC9; --pink:#F9C9E6; --yellow:#FFE7A1; }

/* hero facts */
.hero-facts { display:flex; flex-wrap:wrap; gap:8px; margin:22px 0 0; padding:0; list-style:none; }
.hero-facts li { padding:7px 14px; border-radius:999px; background:#fff; box-shadow:var(--sh-1); font-size:.92rem; font-weight:500; color:var(--ink); }

/* layout: article aligned with hero text, toc on the right */
.ai-post { padding-top: clamp(40px, 4vw, 64px); }
.ai-layout { display:grid; grid-template-columns: minmax(0, 720px); gap:56px; margin-left:max(0px, calc((100% - 880px) / 2)); }
.ai-article { grid-row:1; grid-column:1; }
.toc { display:none; }
@media (min-width: 1240px) {
  .ai-layout { grid-template-columns: 720px 240px; }
  .toc { display:block; grid-row:1; grid-column:2; position:sticky; top:104px; align-self:start; max-height:calc(100vh - 128px); overflow:auto; }
}
.toc__h { margin:0 0 12px; font-size:.82rem; font-weight:600; color:var(--ink-3); }
.toc ol { list-style:none; margin:0; padding:0; border-left:2px solid var(--line-soft); }
.toc li { margin:0; }
.toc a { display:block; padding:6px 0 6px 14px; margin-left:-2px; border-left:2px solid transparent; font-size:.9rem; line-height:1.35; color:var(--ink-3); text-decoration:none; transition:color .2s, border-color .2s; }
.toc a:hover { color:var(--ink); }
.toc a.is-active { color:var(--purple); border-left-color:var(--purple); font-weight:600; }

/* article typography */
.ai-article { max-width:720px; font-size:1.09rem; line-height:1.75; color:var(--ink-2); }
.ai-article p, .ai-article ul { margin:0 0 1.1em; }
.ai-article strong { color:var(--ink); font-weight:600; }
.ai-article a:not(.btn):not(.link-arrow):not(.ov-card) { color:var(--purple); text-decoration:underline; text-decoration-color:rgb(89 56 183 / .35); text-underline-offset:3px; transition:text-decoration-color .2s; }
.ai-article a:not(.btn):not(.link-arrow):not(.ov-card):hover { text-decoration-color:var(--purple); }
.ai-article ul { padding-left:1.25em; }
.ai-article ol { margin:0 0 1.1em; padding-left:1.5em; }
.ai-article ol > li::marker { font-weight:600; }
.ai-article li > strong:first-child { color:var(--ink); }
.ai-article li { margin-bottom:.5em; }
.ai-article li::marker { color:var(--purple); }
.ai-article h2 { margin:0 0 .7em; font-family:var(--font-display); font-weight:500; font-size:clamp(1.6rem, 1.25rem + 1vw, 2.15rem); line-height:1.15; letter-spacing:-.02em; color:var(--ink); text-wrap:balance; }
.ai-article h3 { margin:0 0 .4em; font-size:1.06rem; font-weight:600; color:var(--ink); line-height:1.35; }
.ai-article .block > h3 { margin-top:1.6em; }
.ai-article .block > .post-prompt { margin:1.4em 0 1.8em; }
/* tables in prose (same pattern as .lib-table in the library) */
.post-table { overflow-x:auto; margin:0 0 1.2em; border-radius:14px; background:var(--paper-2); }
.post-table table { width:100%; border-collapse:collapse; font-size:.92rem; line-height:1.5; }
.post-table th, .post-table td { padding:10px 14px; text-align:left; vertical-align:top; border-bottom:1px solid var(--line-soft); }
.post-table tr:last-child td { border-bottom:0; }
.post-table th { color:var(--ink); font-weight:600; }
.ai-intro > p:first-child { font-size:1.2rem; line-height:1.6; color:var(--ink); }
.block, .ai-step { scroll-margin-top:96px; margin-top:clamp(56px, 6vw, 88px); }

/* overview of 9 steps */
.ov { margin:clamp(40px,5vw,64px) 0 0; padding:clamp(20px,3vw,32px); border-radius:26px; background:#F9F6F3; }
.ov__h { margin:0 0 16px !important; font-family:var(--font-display); font-size:1.35rem; font-weight:500; color:var(--ink); letter-spacing:-.01em; }
.ov__grid { display:grid; grid-template-columns:1fr; gap:10px; }
@media (min-width: 640px) { .ov__grid { grid-template-columns:1fr 1fr; } }
@media (min-width: 900px) { .ov__grid { grid-template-columns:1fr 1fr 1fr; } }
.ov-card { display:flex; gap:12px; align-items:flex-start; padding:14px 16px; border-radius:18px; background:#fff; box-shadow:var(--sh-1); color:var(--ink); text-decoration:none; font-size:.95rem; line-height:1.35; font-weight:500; transition:transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s; }
.ov-card:hover { transform:translateY(-2px); box-shadow:var(--sh-2); }

/* number circles */
.ai-num { flex:none; display:inline-grid; place-items:center; width:28px; height:28px; border-radius:50%; background:#E0D4F7; color:#201547; font:600 .85rem/1 var(--font-ui); }
.ai-num--lg { width:44px; height:44px; font-size:1.1rem; font-family:var(--font-display); font-weight:500; }
.ai-step__h { display:flex; gap:16px; align-items:flex-start; }
.ai-step__h .ai-num { margin-top:-2px; }
@media (max-width: 640px) { .ai-step__h { flex-direction:column; gap:12px; } }

/* "Jak to děláme u nás" cards */
.us { margin:1.6em 0; padding:22px 24px; border-radius:22px; color:var(--ink); font-size:1.02rem; line-height:1.65; }
.us p { margin:0; }
.us .us__label { display:inline-block; margin:0 0 10px; padding:4px 11px; border-radius:999px; background:rgb(255 255 255 / .6); font-size:.82rem; font-weight:600; line-height:1.4; }
.us a { color:inherit !important; text-decoration-color:currentColor !important; }
.us--lilac { background:var(--lilac); } .us--lilac .us__label { color:#201547; }
.us--blue { background:var(--blue); } .us--blue .us__label { color:#13325B; }
.us--peach { background:var(--peach-s); } .us--peach .us__label { color:#5A2A0E; }
.us--green { background:var(--green); } .us--green .us__label { color:#1D4D28; }
.us--yellow { background:var(--yellow); } .us--yellow .us__label { color:#4A3500; }
.us--pink { background:var(--pink); } .us--pink .us__label { color:#5B1840; }

/* offers */
.offers { display:grid; grid-template-columns:1fr; gap:14px; margin:1.4em 0 1.6em; }
@media (min-width: 700px) { .offers { grid-template-columns:1fr 1fr; } .offer--feat { grid-column:1 / -1; } }
.offer { display:flex; flex-direction:column; gap:8px; padding:22px 24px; border-radius:22px; background:#fff; box-shadow:var(--sh-1); transition:box-shadow .25s; }
.offer:hover { box-shadow:var(--sh-2); }
.offer h3 { margin:0; font-size:1.1rem; }
.offer p { margin:0 0 6px; font-size:.98rem; line-height:1.6; }
.offer .link-arrow { margin-top:auto; font-weight:600; color:var(--purple); text-decoration:none; display:inline-flex; align-items:center; gap:6px; }
.offer .link-arrow .arrow { transition:transform .25s; }
.offer .link-arrow:hover .arrow { transform:translateX(4px); }
.offer--feat { background:#1B1B1B; padding:28px; }
.offer--feat h3 { color:#FAF4EE; font-family:var(--font-display); font-weight:500; font-size:1.5rem; letter-spacing:-.01em; }
.offer--feat p { color:rgb(250 244 238 / .8); }
.offer--feat .btn { align-self:flex-start; margin-top:8px; }

/* checklist */
.ai-checklist { padding:clamp(24px,3vw,36px); border-radius:26px; background:#F9F6F3; }
.ai-checklist .muted { color:var(--ink-3); margin-top:-.3em; }
.ai-checklist ol { list-style:none; margin:18px 0 0; padding:0; display:grid; gap:10px; }
.ai-checklist li { display:flex; gap:14px; align-items:flex-start; margin:0; padding:14px 16px; border-radius:16px; background:#fff; box-shadow:var(--sh-1); color:var(--ink); line-height:1.5; font-size:1rem; }
.tick { flex:none; display:grid; place-items:center; width:24px; height:24px; margin-top:1px; border-radius:50%; background:#D4F0D4; color:#2F6B3F; }

/* faq: reuse site .faq, tighten inside article */
.ai-article .faq details { font-size:1rem; }
.ai-article .faq summary { font-weight:600; color:var(--ink); }

.ai-article .post-author { margin-top:64px; }

/* reading progress + preview badge */
.read-progress { position:fixed; top:0; left:0; right:0; height:3px; z-index:1000; pointer-events:none; }
.read-progress span { display:block; height:100%; background:var(--purple); transform-origin:0 50%; transform:scaleX(0); }

@media (prefers-reduced-motion: reduce) { .ov-card, .offer, .toc a { transition:none; } }
.offer .link-arrow { font-size:.98rem; }
.offer:last-child:nth-child(even) { grid-column:1 / -1; }
.ai-checklist li { padding:0; }
.ck { display:flex; gap:14px; align-items:flex-start; width:100%; padding:14px 16px; border:0; border-radius:16px; background:#fff; box-shadow:var(--sh-1); color:var(--ink); font:inherit; line-height:1.5; text-align:left; cursor:pointer; transition:box-shadow .2s; }
.ck:hover { box-shadow:var(--sh-2); }
.ck .tick { background:#fff; color:transparent; box-shadow:inset 0 0 0 1.5px #CFCAC2; transition:background .2s, color .2s, box-shadow .2s; }
.ck[aria-pressed="true"] .tick { background:#D4F0D4; color:#2F6B3F; box-shadow:none; }
.ck[aria-pressed="true"] > span:last-child { color:var(--ink-3); text-decoration:line-through; text-decoration-color:rgb(27 27 27 / .25); }
.ai-checklist li { box-shadow:none; background:none; }

.ai-article .post-author { margin-top:clamp(56px, 6vw, 88px); }
.ai-article .ai-pull { margin:1.2em 0 1.6em; font-family:var(--font-display); font-weight:500; font-size:clamp(1.3rem, 1.1rem + .6vw, 1.6rem); line-height:1.3; letter-spacing:-.01em; color:var(--ink); text-wrap:balance; }
.ai-hero__crumb { margin:0 0 20px; font-size:.95rem; color:rgb(255 255 255 / .86); }
.ai-hero__crumb a { color:#fff; text-decoration:none; font-weight:600; }
.ai-hero .h1 { text-wrap:balance; }
.ai-help { margin-top:clamp(56px, 6vw, 88px); }
.ai-help__gifts { margin-top:clamp(48px, 5vw, 72px); }
.ai-help__gifts > .h3 { margin:0 0 20px; }
.ai-help .ugifts { grid-template-columns:repeat(2, minmax(0, 1fr)); max-width:880px; } @media (max-width: 700px) { .ai-help .ugifts { grid-template-columns:1fr; } }
.ai-offer .ai-pilot { padding:28px 30px; border-radius:24px; background:#1B1B1B; color:rgb(250 244 238 / .8); }
.ai-pilot__k { margin:0 0 8px !important; font-size:.9rem; font-weight:600; color:#A98DF6; }
.ai-pilot__h { margin:0 0 8px !important; font-family:var(--font-display); font-weight:500; font-size:clamp(1.4rem, 1.2rem + .6vw, 1.75rem) !important; line-height:1.2 !important; letter-spacing:-.015em; color:#FAF4EE !important; }
.ai-pilot__p { margin:0 0 18px !important; font-size:1rem; line-height:1.6; }
.ai-offer .ugifts { display:grid; margin-top:16px; grid-template-columns:repeat(2, minmax(0,1fr)); gap:16px; }
.ai-offer .ugifts > .ugift { grid-column:auto; }
@media (max-width: 640px) { .ai-offer .ugifts { grid-template-columns:1fr; } }
.ai-offer .ugift__t { font-size:1.05rem !important; margin:0 !important; }
.ai-offer .ugift__t a, .ai-offer .ugift__link { color:var(--ink) !important; text-decoration:none !important; }
.ai-offer .ugift p { margin:0 !important; }
.ai-author-photo { width:56px !important; height:56px !important; object-fit:cover; object-position:50% 50%; background:#F1EBFF; }

/* "Vyzkoušej": cream card with a copyable prompt (same as blog-post.css) */
.ai-article .post-try { margin: 2em 0 2.4em; padding: clamp(20px, 3vw, 30px); border-radius: var(--r-xl); background: var(--frame-cream); }
.ai-article .post-try__h { margin: 0 0 8px; font-family: var(--font-display); font-weight: 500; font-size: 1.4rem; line-height: 1.2; letter-spacing: -0.012em; color: var(--ink); }
.ai-article .post-try > p:not(.post-try__h) { margin: 0 0 4px; }
.ai-article .post-prompt { margin-top: 16px; overflow: hidden; border-radius: 16px; background: var(--card); box-shadow: var(--sh-1); }
.ai-article .post-prompt__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 18px; border-bottom: 1px solid var(--line-soft); }
.ai-article .post-prompt__bar .app-label { font-size: 0.7rem; }
.ai-article .post-prompt__text { margin: 0; padding: 16px 18px 20px; border-radius: 0; background: none; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.84rem; line-height: 1.7; color: var(--ink); }
.ai-article .post-copy { gap: 7px; }
.ai-article .post-copy svg { width: 14px; height: 14px; }
.ai-article .post-copy.is-done { --btn-bg: #D4F0D4; --btn-fg: #1D4D28; --btn-bd: #D4F0D4; box-shadow: none; }
.ai-article .post-copy.is-done::before { display: none; }
