/* CLAILA web v2: the blog (Figma "CLAILA UI", page W2, frames "Blog · výpis" and "Blog · článek"). Loaded on /blog and on
   every article. The article text itself is HTML from the Markdown class, so it is styled by element under .w-prose. */

/* ---- listing */
.w-blog-head { padding: 64px 0 40px; }
.w-blog-head .w-wrap { display: flex; flex-direction: column; gap: 12px; }
.w-blog-head .w-h1 { font-size: 52px; line-height: 58px; }
.w-blog { padding: 0 0 96px; }
.w-post-lead { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; margin-bottom: 64px; }
.w-post-lead-img, .w-post-img { display: block; overflow: hidden; aspect-ratio: 16 / 9; background: var(--w-tint); }
.w-post-lead-img { border-radius: 20px; }
.w-post-lead-img img, .w-post-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.w-post-lead:hover .w-post-lead-img img, .w-post:hover .w-post-img img { transform: scale(1.025); }
.w-post-lead-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.w-post-lead-copy h2 a:hover, .w-post-title a:hover { color: var(--w-accent); }
.w-post-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; line-height: 20px; color: var(--w-text-3); }
.w-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px; }
.w-post { display: flex; flex-direction: column; min-width: 0; }
.w-post-img { border-radius: 14px; }
.w-post-date { margin-top: 16px; font-size: 13px; line-height: 18px; color: var(--w-text-3); }
.w-post-title { margin-top: 8px; font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -.005em; text-wrap: balance; }
.w-post-desc { margin-top: 10px; font-size: 15px; line-height: 24px; color: var(--w-text-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.w-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 72px; }
.w-pager-num, .w-pager-step { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; font-size: 15px; line-height: 22px; font-weight: 500;
  color: var(--w-text-1); border: 1px solid transparent; font-variant-numeric: tabular-nums; }
a.w-pager-num:hover, a.w-pager-step:hover { border-color: var(--w-line-strong); }
.w-pager-num.is-on { background: var(--w-action); color: var(--w-action-text); font-weight: 600; }
.w-pager-step { border-color: var(--w-line); }
.w-pager-step.is-off { opacity: .35; }
.w-pager-gap { min-width: 24px; text-align: center; color: var(--w-text-3); }

/* ---- the "for business" band under blog pages */
.w-biz { padding: 0 0 80px; }
.w-art-more + .w-biz { padding-top: 64px; }
.w-biz-in { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; padding: 36px 40px; border-radius: 20px; background: var(--w-ink); color: var(--w-on-ink); }
.w-biz-copy { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.w-biz-copy h2 { font-size: 26px; line-height: 34px; font-weight: 600; letter-spacing: -.01em; }
.w-biz-copy p:last-child { font-size: 16px; line-height: 26px; color: var(--w-on-ink-2); }
.w-biz .w-btn { flex: none; }
.w-biz + .w-foot { margin-top: 0; }

/* ---- "Ask CLAILA": the question box in articles */
.w-ask { display: flex; flex-direction: column; gap: 12px; margin: 28px 0; padding: 20px; border-radius: var(--w-r-card); background: var(--w-surface); border: 1px solid var(--w-line); box-shadow: var(--w-shadow-md); }
.w-ask-over { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--w-accent); }
.w-ask-bar { display: flex; align-items: flex-end; gap: 8px; padding: 6px 6px 6px 20px; border-radius: 26px; border: 1px solid var(--w-line-strong); background: var(--w-surface); transition: border-color .15s, box-shadow .15s; }
.w-ask-bar:focus-within { border-color: var(--w-action); box-shadow: 0 0 0 4px rgba(91, 91, 214, .16); }
.w-ask textarea { flex: 1; min-width: 0; min-height: 40px; max-height: 200px; padding: 8px 0; border: 0; outline: 0; resize: none; background: none; font: inherit; font-size: 16px; line-height: 24px; color: var(--w-text-1); }
.w2 .w-ask textarea:focus-visible { outline: 0; }
.w-ask textarea::placeholder { color: var(--w-text-3); }
.w-ask-send { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--w-action); color: var(--w-action-text); transition: background .15s; }
.w-ask-send:hover { background: var(--w-action-hover); }
.w-ask.is-busy .w-ask-send { opacity: .6; cursor: progress; }
.w-ask-note { font-size: 13px; line-height: 20px; color: var(--w-text-3); }
/* inside an article the text's own paragraph spacing must not reach into the box; a marker written as its own paragraph leaves empty <p>s around it */
.w-prose .w-ask p { margin: 0; }
.w-prose p:empty { display: none; }

/* ---- article */
.w-art-head { padding: 36px 0 0; }
.w-crumbs { display: flex; align-items: center; gap: 6px; font-size: 13px; line-height: 18px; color: var(--w-text-3); }
.w-crumbs a:hover { color: var(--w-accent); }
.w-crumbs-admin { margin-left: auto; }
.w-art-title { max-width: 900px; margin-top: 16px; font-size: 46px; line-height: 54px; font-weight: 600; letter-spacing: -.02em; text-wrap: balance; }
/* a long word of another language ("Datenschutzrichtlinie") must not run out of a phone screen; English titles never need it */
.w-art-title { overflow-wrap: break-word; }
html:not([lang="en"]) .w-art-title { hyphens: auto; }
.w-art-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 20px; font-size: 14px; line-height: 20px; color: var(--w-text-3); }
.w-art-by { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--w-text-1); }
.w-art-avatar { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--w-ink); color: var(--w-mint); }
.w-art-img { display: block; width: 100%; max-width: 900px; height: auto; margin-top: 32px; border-radius: 20px; background: var(--w-tint); }
.w-art-ask { max-width: 720px; margin-top: 12px; }
.w-art-grid { display: grid; grid-template-columns: 200px minmax(0, 1fr) 232px; gap: 48px; align-items: start; padding-top: 40px; padding-bottom: 88px; }
.w-art-toc, .w-art-side { position: sticky; top: 104px; }
.w-art-over { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--w-text-3); }
.w-art-over-accent { color: var(--w-accent); }
.w-art-toc ol { display: flex; flex-direction: column; margin-top: 12px; border-left: 1px solid var(--w-line); max-height: calc(100vh - 180px); overflow-y: auto; }
.w-art-toc a { display: block; margin-left: -1px; padding: 6px 0 6px 14px; border-left: 2px solid transparent; font-size: 13px; line-height: 19px; color: var(--w-text-2); }
.w-art-toc a:hover { color: var(--w-text-1); }
.w-art-toc a.is-on { border-left-color: var(--w-action); color: var(--w-accent); font-weight: 600; }
.w-art-main { min-width: 0; }
.w-art-biz { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 20px; border-radius: var(--w-r-card); background: var(--w-tint); font-size: 14px; line-height: 22px; color: var(--w-text-2); }
.w-art-biz-title { font-size: 17px; line-height: 24px; font-weight: 600; color: var(--w-text-1); }
.w-art-biz .w-link { margin-top: 4px; }

/* the text of an article */
.w-prose { font-size: 17px; line-height: 29px; color: var(--w-text-1); overflow-wrap: break-word; }
.w-prose > :first-child { margin-top: 0; }
.w-prose p { margin: 0 0 20px; }
.w-prose h2 { margin: 48px 0 16px; font-size: 28px; line-height: 36px; font-weight: 600; letter-spacing: -.012em; scroll-margin-top: 96px; text-wrap: balance; }
.w-prose h3 { margin: 36px 0 12px; font-size: 22px; line-height: 30px; font-weight: 600; letter-spacing: -.008em; scroll-margin-top: 96px; }
.w-prose h4 { margin: 28px 0 10px; font-size: 18px; line-height: 26px; font-weight: 600; }
.w-prose a { color: var(--w-accent); text-decoration: underline; text-decoration-color: rgba(87, 83, 198, .35); text-underline-offset: 3px; }
.w-prose a:hover { text-decoration-color: currentColor; }
.w-prose strong { font-weight: 600; }
.w-prose ul, .w-prose ol { margin: 0 0 20px; padding-left: 26px; }
.w-prose ul { list-style: disc; } .w-prose ol { list-style: decimal; }
.w-prose li { margin-bottom: 8px; padding-left: 4px; }
.w-prose li::marker { color: var(--w-action); font-weight: 600; }
.w-prose li > ul, .w-prose li > ol { margin: 8px 0 0; }
.w-prose img { display: block; max-width: 100%; height: auto; margin: 28px 0; border-radius: 14px; }
.w-prose hr { margin: 40px 0; border: 0; border-top: 1px solid var(--w-line); }
.w-prose blockquote { margin: 24px 0; padding: 18px 22px; border-radius: 14px; background: var(--w-accent-soft); color: var(--w-text-1); }
.w-prose blockquote > :last-child { margin-bottom: 0; }
.w-prose code { padding: 2px 6px; border-radius: 6px; background: var(--w-tint); border: 1px solid var(--w-line); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace; font-size: .86em; }
.w-prose pre { position: relative; margin: 24px 0; padding: 20px 22px; border-radius: 14px; background: var(--w-ink); color: var(--w-on-ink); overflow-x: auto; font-size: 14px; line-height: 23px; }
.w-prose pre code { padding: 0; border: 0; background: none; color: inherit; font-size: inherit; white-space: pre; }
.w-prose pre.has-copy { padding-top: 48px; }
.w-copy { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 8px; background: rgba(255, 255, 255, .1); color: var(--w-on-ink);
  font-family: var(--w-font); font-size: 12px; line-height: 16px; font-weight: 500; }
.w-copy:hover { background: rgba(255, 255, 255, .18); }
.w-table-scroll { margin: 24px 0; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--w-line); border-radius: 14px; }
.w-prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 23px; }
.w-prose th, .w-prose td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--w-line); }
.w-prose thead th { background: var(--w-tint); font-size: 14px; font-weight: 600; white-space: nowrap; }
.w-prose tbody tr:last-child td { border-bottom: 0; }
/* ---create-account---: the Markdown class prints <a class="btn …"> */
.w-prose a.btn { display: inline-flex; align-items: center; justify-content: center; height: 46px; margin: 4px 0 8px; padding: 0 22px; border-radius: var(--w-r-btn); background: var(--w-action); color: var(--w-action-text);
  font-size: 15px; line-height: 22px; font-weight: 600; text-decoration: none; transition: background .15s; }
.w-prose a.btn:hover { background: var(--w-action-hover); }
/* the old contents list of the Markdown class is never asked for here; should it appear, keep it out of sight */
.w-prose > nav.toc { display: none; }

/* the "name your app" form of CLAILA Apps (include/content/apps-name-form.php) in the light look */
.w-art-apps { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 48px; padding: 28px; border-radius: var(--w-r-card); background: var(--w-tint); }
.w-art-apps h2 { font-size: 22px; line-height: 30px; font-weight: 600; }
.w-art-apps > p { font-size: 16px; line-height: 26px; color: var(--w-text-2); }
.w2 .apf { width: 100%; max-width: none; margin: 8px 0 0; }
.w2 .apf-box { padding: 8px; border-radius: 16px; background: var(--w-surface); border: 1px solid var(--w-line-strong); box-shadow: var(--w-shadow-sm); }
.w2 .apf input, .w2 .apf textarea { background: var(--w-surface); border-color: transparent; color: var(--w-text-1); font-family: inherit; }
.w2 .apf textarea { border-color: var(--w-line); }
.w2 .apf input:focus, .w2 .apf textarea:focus { border-color: var(--w-action); box-shadow: 0 0 0 3px rgba(91, 91, 214, .16); }
.w2 .apf input::placeholder, .w2 .apf textarea::placeholder { color: var(--w-text-3); }
.w2 .apf-go { border-radius: 12px; background: var(--w-action); color: var(--w-action-text); font-size: 15px; cursor: pointer; }
.w2 .apf-go:hover { background: var(--w-action-hover); }
.w2 .apf-note { text-align: left; color: var(--w-text-3); }
.w-prose .apf { margin: 28px 0; }

/* ---- legal pages (terms, privacy): the same typography, one narrow column */
.w-legal { padding: 36px 0 96px; }
.w-legal .w-wrap { max-width: calc(820px + 2 * var(--w-pad)); }
.w-legal .w-art-title { margin-bottom: 36px; }
.w-legal .w-prose { font-size: 16px; line-height: 27px; }
.w-legal .w-prose h2 { margin-top: 40px; font-size: 22px; line-height: 30px; }
.w-legal .w-prose .tab-1 { margin-left: 28px; } .w-legal .w-prose .tab-2 { margin-left: 56px; }

.w-art-more .w-h3 { margin-bottom: 32px; }
.w-art-more { padding: 72px 0; }

@media (max-width: 1180px) {
  .w-art-grid { grid-template-columns: 200px minmax(0, 1fr); }
  .w-art-side { display: none; }
}
@media (max-width: 1020px) {
  .w-blog-head { padding: 48px 0 32px; } .w-blog-head .w-h1 { font-size: 40px; line-height: 46px; }
  .w-post-lead { grid-template-columns: 1fr; gap: 24px; margin-bottom: 48px; }
  .w-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
  .w-art-grid { grid-template-columns: minmax(0, 720px); justify-content: center; padding-top: 32px; padding-bottom: 64px; }
  .w-art-toc { display: none; }
  .w-art-title { font-size: 36px; line-height: 44px; }
  .w-biz-in { flex-direction: column; align-items: flex-start; padding: 28px; }
}
@media (max-width: 680px) {
  .w-blog-head { padding: 32px 0 24px; } .w-blog-head .w-h1 { font-size: 34px; line-height: 40px; }
  .w-blog { padding-bottom: 64px; }
  .w-posts { grid-template-columns: 1fr; gap: 36px; }
  .w-pager { margin-top: 48px; gap: 4px; } .w-pager-num, .w-pager-step { min-width: 40px; height: 40px; padding: 0 8px; }
  .w-art-head { padding-top: 24px; }
  .w-art-title { margin-top: 12px; font-size: 30px; line-height: 37px; }
  .w-art-img { margin-top: 24px; border-radius: 14px; }
  .w-prose { font-size: 16px; line-height: 27px; }
  .w-prose h2 { margin-top: 40px; font-size: 24px; line-height: 31px; }
  .w-prose h3 { font-size: 20px; line-height: 27px; }
  .w-ask { padding: 16px; }
  .w-art-apps { padding: 20px; }
  .w-biz { padding-bottom: 56px; } .w-biz-in { padding: 24px; } .w-biz-copy h2 { font-size: 22px; line-height: 29px; } .w-biz .w-btn { width: 100%; }
  /* a longer translation of the button may take two lines on a phone (one line keeps the 44px look) */
  .w-biz .w-btn { height: auto; min-height: 44px; padding-top: 11px; padding-bottom: 11px; white-space: normal; text-align: center; }
  .w-art-more { padding: 56px 0; }
}
