/*
    Šablona Doma - blog a článek (fáze 3, část A).

    Výpis blogu (Components/Blog/BlogPage.js), karta článku (Components/Article/Article.js), detail
    článku (Components/Article/ArticleDetail.js) a doporučené články pod článkem. Značky jsou stejné
    jako v Klasické, vzhled dává jen tenhle soubor - všechno je pod .theme-doma (obal stránky).

    - výpis: nadpis s ručně taženou linkou, popis stránky, karty článků jako fotky přilepené páskou
      (natočení a barva pásky se střídají), tlačítko „načíst další“ s obrysem;
    - článek: hlavní fotka v rámečku se dvěma páskami, úzký sloupec textu, úvodní odstavec větší,
      seznamy s kreslenými fajfkami a čísly ručním písmem, citát (blockquote) jako lepicí lístek,
      obrázek s popiskem z editoru (figure.image + figcaption) jako polaroid;
    - vložený produkt (kód s:ID) je prvek Doporučené produkty - vzhled dává products.css,
      tady jen dostane šířku sloupce textu;
    - bannery a newsletter na konci blogu a článku stylí marketing.css, tady se jich nic netýká.

    Natočení a nadzvednutí používá vlastnosti rotate/translate (ne transform), animace vjezdu
    běží přes transform - obojí se skládá. Předci karet mají overflow:clip místo hidden, aby
    nezablokovali animace podle posunu (animation-timeline: view()).
*/

/* ------------------------------------------------------------------------------------------
    Papírové prvky blogu a článku mají vždy světlý kontext - i na stránce s tmavou barvou
------------------------------------------------------------------------------------------ */
.theme-doma .blog-articles article,
.theme-doma .blog-article-detail .content-text :is(.cm-review-element .review .content,blockquote,figure.image){
    --doma-text:var(--palette-brown);
    --doma-text-soft:color-mix(in oklab, var(--palette-brown) 91%, var(--palette-cream));
    --doma-text-body:color-mix(in oklab, var(--palette-brown) 83%, var(--palette-cream));
    --doma-text-muted:color-mix(in oklab, var(--palette-brown) 72%, var(--palette-cream));
    --doma-heading:var(--headline-color-from, var(--palette-brown));
    --doma-accent:var(--doma-gold-deep);
    color:var(--doma-text-body);
}

/* ------------------------------------------------------------------------------------------
    Výpis blogu
------------------------------------------------------------------------------------------ */
.theme-doma section.blog{
    min-height:0;
    padding:16.8rem 0 14rem;
    overflow:clip;
    background-color:transparent;
    background-image:
        radial-gradient(closest-side, color-mix(in srgb, var(--palette-apricot) 50%, transparent), transparent),
        radial-gradient(closest-side, color-mix(in srgb, var(--palette-lavender) 65%, transparent), transparent);
    background-size:86rem 78rem, 90rem 90rem;
    background-position:right -26rem top -22rem, left -32rem top 45%;
    background-repeat:no-repeat;
}
/* stín pod obsahem je v Klasické kvůli bannerům přes obrazovku - v Domě jdou bannery normálně pod obsahem */
.theme-doma :is(section.blog,section.blog-article-detail).shadow{
    box-shadow:none !important;
}
.theme-doma :is(section.blog,section.blog-article-detail,section.related-articles) > .container,
.theme-doma section.related-articles .related-articles-content > .container{
    width:auto;
    max-width:124rem;
    padding:0 3.2rem;
}

/* mřížka článků - nadpis stránky a tlačítko přes celou šířku, články ve dvou sloupcích */
.theme-doma .blog-articles{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:6.4rem 4.4rem;
    margin:0 !important;
}
.theme-doma section.blog .blog-articles{
    margin-top:0;
}
.theme-doma .blog-articles > :is(.cm-col,.cm-col-100){
    flex:none;
    width:auto;
    max-width:none;
    min-width:0;
    padding:0;
}
.theme-doma .blog-articles > .cm-col-100{
    grid-column:1 / -1;
}

/* nadpis a popis stránky */
.theme-doma .blog-articles > .cm-col-100:first-child{
    display:flex;
    flex-direction:column;
    align-items:center;
    margin-bottom:1.6rem;
    text-align:center;
}
.theme-doma .blog-articles h1{
    position:relative;
    max-width:100rem;
    margin:0;
    font-size:clamp(4.2rem, 4.6vw, 6.4rem);
    line-height:1.12;
    text-align:center;
    color:var(--doma-heading);
}
.theme-doma :is(.blog-articles h1,.blog-article-detail .content-text > h1)::after{
    content:"";
    display:block;
    width:min(26rem, 60%);
    height:.3em;
    margin:.12em auto 0;
    background-color:var(--palette-gold);
    -webkit-mask:url(svg/mark-line.svg) 0 0 / 100% 100% no-repeat;
    mask:url(svg/mark-line.svg) 0 0 / 100% 100% no-repeat;
    pointer-events:none;
}
.theme-doma section.blog .blog-articles .cat-desc{
    max-width:64rem;
    margin:2.2rem auto 0;
    color:var(--doma-text-muted);
    text-wrap:pretty;
}
.theme-doma .blog-articles .cat-desc :is(p,li,p *,li *){
    font-size:1.9rem;
    line-height:1.65;
}
.theme-doma .blog-articles .cat-desc > :last-child{
    margin-bottom:0;
}

/* karta článku - fotka přilepená páskou, natočení a barva pásky se střídají */
.theme-doma .blog-articles > .cm-col > article{
    position:relative;
    display:flex;
    flex-direction:column;
    height:100%;
    padding:1.4rem 1.4rem 3.2rem;
    border-radius:24px;
    background-color:var(--palette-paper);
    box-shadow:0 30px 60px -40px var(--doma-shadow);
    rotate:-.8deg;
    transition:rotate .9s var(--doma-ease), translate .9s var(--doma-ease), box-shadow .9s var(--doma-ease);
}
.theme-doma .blog-articles > .cm-col > article::before{
    content:"";
    position:absolute;
    z-index:2;
    top:-1.3rem;
    left:50%;
    width:10.4rem;
    height:2.8rem;
    margin-left:-5.2rem;
    background-color:color-mix(in srgb, var(--palette-butter) 92%, transparent);
    box-shadow:0 2px 4px var(--doma-shadow-tape);
    rotate:-3deg;
    pointer-events:none;
}
/* ve výpisu je první dítě mřížky nadpis stránky, první článek je tedy 2. (6n+2) */
.theme-doma .blog-articles > .cm-col:nth-child(6n+3) > article{rotate:.7deg}
.theme-doma .blog-articles > .cm-col:nth-child(6n+4) > article{rotate:.5deg}
.theme-doma .blog-articles > .cm-col:nth-child(6n+5) > article{rotate:-.6deg}
.theme-doma .blog-articles > .cm-col:nth-child(6n) > article{rotate:.8deg}
.theme-doma .blog-articles > .cm-col:nth-child(6n+1) > article{rotate:-.5deg}
.theme-doma .blog-articles > .cm-col:nth-child(6n+5) > article::before{
    rotate:2deg;
}
.theme-doma .blog-articles > .cm-col:nth-child(3n) > article::before{
    background-color:color-mix(in srgb, var(--palette-lavender) 95%, transparent);
    rotate:3deg;
}
.theme-doma .blog-articles > .cm-col:nth-child(3n+1) > article::before{
    background-color:color-mix(in srgb, var(--palette-apricot) 95%, transparent);
    rotate:-2deg;
}

.theme-doma .blog-articles article a.image{
    flex:none;
    padding-bottom:62.5%;
    border-radius:16px;
    overflow:clip;
    box-shadow:none;
    transform:none;
    background-color:color-mix(in oklab, var(--palette-cream) 70%, var(--palette-butter));
}
.theme-doma .blog-articles article a.image img{
    border-radius:16px;
    transition:scale 1.4s var(--doma-ease);
}
.theme-doma .blog-articles article h2{
    width:auto;
    margin:2.6rem 1.8rem 0;
    font-family:var(--font-heading, inherit);
    font-size:3rem;
    line-height:1.2;
    text-align:left;
    color:var(--doma-heading);
}
.theme-doma .blog-articles article h2 a{
    color:inherit !important;
    text-decoration:none;
}
/* perex nejvýš na 4 řádky (i v doporučených článcích) - karty v řadě jsou pak podobně vysoké */
.theme-doma .blog-articles article > div{
    display:-webkit-box;
    margin:1.2rem 1.8rem 0;
    overflow:hidden;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:4;
    line-clamp:4;
}
.theme-doma .blog-articles article > div :is(p,li,p *,li *){
    font-size:1.65rem;
    line-height:1.65;
}
.theme-doma .blog-articles article > div :is(p,li){
    margin:0 0 .8em;
    color:var(--doma-text-body);
}
.theme-doma .blog-articles article > div > :last-child{
    margin-bottom:0;
}

/* nadzvednutí karty při najetí myší i při procházení klávesnicí */
@media (prefers-reduced-motion: no-preference){
    .theme-doma .blog-articles > .cm-col > article:focus-within{
        rotate:0deg;
        translate:0 -6px;
        box-shadow:0 36px 60px -30px var(--doma-shadow-strong);
    }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference){
    .theme-doma .blog-articles > .cm-col > article:hover{
        rotate:0deg;
        translate:0 -6px;
        box-shadow:0 36px 60px -30px var(--doma-shadow-strong);
    }
    .theme-doma .blog-articles > .cm-col > article:hover a.image img{
        scale:1.04;
    }
}

/* tlačítko „načíst další“ - obrys a šipka dolů */
.theme-doma .blog-articles > .cm-col-100 .btn,
.theme-doma .blog-articles > .cm-col-100 .btn:hover{
    display:inline-flex;
    align-items:center;
    gap:1rem;
    min-height:5.2rem;
    padding:0 2.8rem;
    border:2px solid var(--doma-text);
    background:transparent;
    color:var(--doma-text) !important;
    font-size:1.6rem;
    box-shadow:none;
}
.theme-doma .blog-articles > .cm-col-100 .btn::after{
    content:"";
    flex:none;
    width:1.4rem;
    height:1.4rem;
    background-color:currentColor;
    -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4.5 6 8l4-3.5' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4.5 6 8l4-3.5' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* karty vyjíždějí při posunu stránky; prohlížeč bez animation-timeline je ukáže hned */
@keyframes cm-doma-blog-rise{
    from{opacity:0;transform:translateY(28px)}
    to{opacity:1;transform:none}
}
@keyframes cm-doma-blog-draw{
    from{clip-path:inset(0 100% 0 0)}
    to{clip-path:inset(0 0 0 0)}
}
@media (prefers-reduced-motion: no-preference){
    .theme-doma :is(.blog-articles h1,.blog-article-detail .content-text > h1)::after{
        animation:cm-doma-blog-draw 2.4s .5s cubic-bezier(.65,0,.35,1) both;
    }
    @supports (animation-timeline: view()){
        .theme-doma .blog-articles > .cm-col:has(> article),
        .theme-doma section.related-articles h2.headline,
        .theme-doma .blog-article-detail .content-text :is(.cm-review-element,blockquote,figure.image){
            animation:cm-doma-blog-rise linear backwards;
            animation-timeline:view();
            animation-range:entry 0% entry 55%;
        }
    }
}

/* ------------------------------------------------------------------------------------------
    Detail článku
------------------------------------------------------------------------------------------ */
.theme-doma section.blog-article-detail{
    min-height:0;
    padding:14.4rem 0 12rem;
    overflow:clip;
    background-color:transparent;
    background-image:
        radial-gradient(closest-side, color-mix(in srgb, var(--palette-butter) 55%, transparent), transparent),
        radial-gradient(closest-side, color-mix(in srgb, var(--palette-lavender) 65%, transparent), transparent),
        radial-gradient(closest-side, color-mix(in srgb, var(--palette-apricot) 55%, transparent), transparent);
    background-size:86rem 78rem, 90rem 90rem, 86rem 86rem;
    background-position:left -30rem top -16rem, right -32rem top 45%, left -28rem top 90%;
    background-repeat:no-repeat;
}
.theme-doma section.blog-article-detail.alone-article{
    padding-top:6.4rem;
}

/* hlavní fotka a nadpis jsou širší, text v úzkém sloupci */
.theme-doma .blog-article-detail .content-text{
    width:auto;
    max-width:none;
    margin:0;
    padding:0;
}
.theme-doma .blog-article-detail .content-text > *{
    max-width:72rem;
    margin-left:auto;
    margin-right:auto;
}

/* hlavní fotka - papírový rámeček se dvěma páskami; fotka se ořízne dovnitř rámečku */
.theme-doma .blog-article-detail .content-text > .img-container{
    max-width:110rem;
    height:auto;
    padding:0;
    aspect-ratio:21 / 9;
    border-radius:28px;
    background-color:var(--palette-paper);
    box-shadow:0 40px 80px -50px var(--doma-shadow-strong);
    rotate:-.8deg;
}
.theme-doma .blog-article-detail .content-text > .img-container::before,
.theme-doma .blog-article-detail .content-text > .img-container::after{
    content:"";
    position:absolute;
    z-index:2;
    top:-1.5rem;
    width:13rem;
    height:3.2rem;
    box-shadow:0 2px 4px var(--doma-shadow-tape);
    pointer-events:none;
}
.theme-doma .blog-article-detail .content-text > .img-container::before{
    left:12%;
    background-color:color-mix(in srgb, var(--palette-butter) 92%, transparent);
    rotate:-4deg;
}
.theme-doma .blog-article-detail .content-text > .img-container::after{
    right:12%;
    background-color:color-mix(in srgb, var(--palette-lavender) 95%, transparent);
    rotate:3deg;
}
.theme-doma .blog-article-detail .content-text > .img-container img.main{
    border-radius:0;
    box-shadow:none;
    clip-path:inset(12px round 18px);
}

.theme-doma .blog-article-detail .content-text > h1{
    max-width:90rem;
    margin-top:6.4rem;
    margin-bottom:0;
    font-size:clamp(4rem, 4.4vw, 6.2rem);
    line-height:1.14;
    text-align:center;
    color:var(--doma-heading);
}
.theme-doma section.blog-article-detail.no-main-image .content-text > h1{
    margin-top:0;
}

/* text článku */
.theme-doma .blog-article-detail .content-text > h1 + *{
    margin-top:5.6rem;
}
.theme-doma .blog-article-detail .content-text > div:not([class]) :is(p,li,td,th,blockquote){
    font-size:1.8rem;
    line-height:1.8;
}
.theme-doma .blog-article-detail .content-text > div:not([class]) :is(p,li,td,th,blockquote,figcaption) *{
    font-size:inherit;
    line-height:inherit;
}
.theme-doma .blog-article-detail .content-text > div:not([class]) > :is(p,ul,ol,table){
    margin:0 0 2.6rem;
}
.theme-doma .blog-article-detail .content-text > div:not([class]) :is(p,li){
    color:var(--doma-text-body);
}
/* úvodní odstavec */
.theme-doma .blog-article-detail .content-text > h1 + div > p:first-child{
    font-size:2.1rem;
    line-height:1.7;
    color:var(--doma-text);
}
.theme-doma .blog-article-detail .content-text > div:not([class]) > :is(h2,h3,h4){
    margin:4.8rem 0 1.8rem;
    font-weight:400;
    line-height:1.2;
    text-align:left;
    color:var(--doma-heading);
}
.theme-doma .blog-article-detail .content-text > div:not([class]) > :is(h2,h3,h4) *{
    font-size:inherit;
    font-weight:inherit;
}
.theme-doma .blog-article-detail .content-text > div:not([class]) > h2{
    font-size:3.4rem;
}
.theme-doma .blog-article-detail .content-text > div:not([class]) > h3{
    font-size:2.8rem;
}
.theme-doma .blog-article-detail .content-text > div:not([class]) > h4{
    font-size:2.3rem;
}
.theme-doma .blog-article-detail .content-text > h1 + div:not([class]) > :is(h2,h3,h4):first-child{
    margin-top:0;
}

/* odkazy v textu článku - barva textu se zlatým podtržením (terakota z barvy odkazů má na krému jen 3,6 : 1) */
.theme-doma .blog-article-detail .content-text > div:not([class]) a:not(.btn){
    color:var(--doma-text);
    text-decoration-color:var(--palette-gold);
    text-decoration-thickness:2px;
    text-underline-offset:3px;
}
.theme-doma .blog-article-detail .content-text > div:not([class]) a:not(.btn):hover{
    color:var(--palette-terracotta);
    text-decoration-color:currentColor;
}

/* odrážky jako ručně kreslené fajfky */
.theme-doma .blog-article-detail .content-text > div:not([class]) > ul{
    display:flex;
    flex-direction:column;
    gap:1.2rem;
    margin-left:0;
    padding-left:0;
    list-style:none;
}
.theme-doma .blog-article-detail .content-text > div:not([class]) > ul > li{
    position:relative;
    margin:0;
    padding-left:3.6rem;
}
.theme-doma .blog-article-detail .content-text > div:not([class]) > ul > li::before{
    content:"";
    position:absolute;
    left:0;
    top:.4em;
    top:calc(.5lh - 1rem);
    width:2.2rem;
    height:2rem;
    background-color:var(--palette-gold);
    -webkit-mask:url(svg/check.svg) center / contain no-repeat;
    mask:url(svg/check.svg) center / contain no-repeat;
}
/* číslovaný seznam - čísla ručním písmem (značka seznamu drží i start a obrácené pořadí) */
.theme-doma .blog-article-detail .content-text > div:not([class]) > ol{
    display:flex;
    flex-direction:column;
    gap:1.4rem;
    margin-left:0;
    padding-left:4.4rem;
}
.theme-doma .blog-article-detail .content-text > div:not([class]) > ol > li{
    margin:0;
    padding-left:.4rem;
}
.theme-doma .blog-article-detail .content-text > div:not([class]) > ol > li::marker{
    font:700 3rem/1 var(--font-accent, cursive);
    color:var(--doma-gold-deep);
}
.theme-doma .blog-article-detail .content-text > div:not([class]) :is(ul,ol) :is(p,ul,ol){
    margin-bottom:.6rem;
}

/* citát (blockquote) jako lepicí lístek s páskou - z editoru jde buď jako prvek recenze, nebo přímo */
.theme-doma .blog-article-detail .content-text .cm-review-element,
.theme-doma .blog-article-detail .content-text blockquote{
    max-width:56rem;
    margin:4.8rem auto;
}
.theme-doma .blog-article-detail .content-text .cm-review-element .review{
    margin:0;
    padding:0;
}
.theme-doma .blog-article-detail .content-text .cm-review-element .review .content,
.theme-doma .blog-article-detail .content-text blockquote{
    position:relative;
    padding:3.4rem 3.8rem 3rem;
    border:0;
    border-radius:8px 8px 30px 8px !important;
    background-color:var(--palette-butter);
    box-shadow:0 30px 60px -30px var(--doma-shadow-strong);
    rotate:-1.5deg;
    transition:rotate .9s var(--doma-ease), translate .9s var(--doma-ease), box-shadow .9s var(--doma-ease);
}
.theme-doma .blog-article-detail .content-text .cm-review-element .review .content::before,
.theme-doma .blog-article-detail .content-text blockquote::before{
    content:"";
    position:absolute;
    z-index:2;
    top:-1.4rem;
    left:3.4rem;
    width:11rem;
    height:2.8rem;
    background-color:color-mix(in srgb, var(--palette-lavender) 95%, transparent);
    box-shadow:0 2px 4px var(--doma-shadow-tape);
    rotate:-5deg;
    pointer-events:none;
}
/* uvozovky prvku recenze lístek nemá - citát je v textu i s uvozovkami */
.theme-doma .blog-article-detail .content-text .cm-review-element .review .content .quotes{
    display:none;
}
.theme-doma .blog-article-detail .content-text .cm-review-element .review .content .text{
    padding:0;
    text-align:left;
}
/*
    text citátu má velikost a řádkování textu článku - i když v něm z editoru není odstavec (<em>…</em> Jméno
    přímo v citátu), jinak by spadl na výchozích 10 px webu. Odstavce uvnitř si velikost nastavují samy.
*/
.theme-doma .blog-article-detail .content-text :is(.cm-review-element .review .content .text,blockquote){
    font-size:1.8rem;
    line-height:1.8;
    color:var(--doma-text);
}
.theme-doma .blog-article-detail .content-text :is(.cm-review-element .review .content .text,blockquote) *{
    font-size:inherit;
    line-height:inherit;
}
/* krátký citát (jeden odstavec) písmem nadpisů, delší úryvek (víc odstavců) písmem textu */
.theme-doma .blog-article-detail .content-text :is(.cm-review-element .review .content .text,blockquote) :is(p,li){
    margin:0 0 1.2rem;
    text-align:left;
    color:var(--doma-text);
}
.theme-doma .blog-article-detail .content-text :is(.cm-review-element .review .content .text,blockquote):not(:has(> :is(p,ul,ol) ~ :is(p,ul,ol))) p{
    font-family:var(--font-heading, inherit);
    font-size:2.6rem;
    line-height:1.3;
    text-wrap:pretty;
}
/* písmo nadpisů má jen jeden řez - tučné a kurzíva by se dopočítaly a citát by byl rozmazaný */
.theme-doma .blog-article-detail .content-text :is(.cm-review-element .review .content .text,blockquote):not(:has(> :is(p,ul,ol) ~ :is(p,ul,ol))) p :is(strong,b,em,i){
    font-weight:400;
    font-style:normal;
}
.theme-doma .blog-article-detail .content-text :is(.cm-review-element .review .content .text,blockquote) > :last-child{
    margin-bottom:0;
}
.theme-doma .blog-article-detail .content-text :is(.cm-review-element .review .content .text,blockquote) :is(strong,b){
    font-weight:700;
}

/* obrázek s popiskem z editoru (figure.image) jako polaroid - páska, popisek ručním písmem */
.theme-doma .blog-article-detail .content-text figure.image{
    position:relative;
    display:block;
    width:fit-content;
    max-width:100%;
    margin:4.8rem auto;
    padding:1.2rem 1.2rem 0;
    border-radius:10px;
    background-color:var(--palette-paper);
    box-shadow:0 30px 60px -30px var(--doma-shadow-strong);
    rotate:2deg;
    transition:rotate .9s var(--doma-ease), translate .9s var(--doma-ease), box-shadow .9s var(--doma-ease);
}
.theme-doma .blog-article-detail .content-text figure.image:nth-of-type(2n){
    rotate:-2deg;
}
.theme-doma .blog-article-detail .content-text figure.image:not(:has(figcaption)){
    padding-bottom:4.6rem;
}
.theme-doma .blog-article-detail .content-text figure.image::before{
    content:"";
    position:absolute;
    z-index:2;
    top:-1.4rem;
    left:50%;
    width:11rem;
    height:2.8rem;
    margin-left:-5.5rem;
    background-color:color-mix(in srgb, var(--palette-apricot) 95%, transparent);
    box-shadow:0 2px 4px var(--doma-shadow-tape);
    rotate:-3deg;
    pointer-events:none;
}
.theme-doma .blog-article-detail .content-text figure.image img{
    display:block;
    max-width:100%;
    height:auto;
    margin:0;
    border-radius:6px;
}
.theme-doma .blog-article-detail .content-text figure.image figcaption{
    box-sizing:border-box;
    width:0;
    min-width:100%;
    margin:0;
    padding:1.2rem .6rem 1.6rem;
    font-family:var(--font-accent, cursive);
    font-size:2.4rem;
    font-weight:600;
    line-height:1.15;
    text-align:center;
    color:var(--palette-brown);
}
/* zarovnání obrázku z editoru vlevo / vpravo - polaroid obtéká text */
.theme-doma .blog-article-detail .content-text figure.image.align-left{
    float:left;
    max-width:45%;
    margin:1rem 3.6rem 2.4rem 0;
    rotate:-2deg;
}
.theme-doma .blog-article-detail .content-text figure.image.align-right{
    float:right;
    max-width:45%;
    margin:1rem 0 2.4rem 3.6rem;
    rotate:2deg;
}
.theme-doma .blog-article-detail .content-text > div:not([class])::after{
    content:"";
    display:block;
    clear:both;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference){
    .theme-doma .blog-article-detail .content-text .cm-review-element .review .content:hover,
    .theme-doma .blog-article-detail .content-text blockquote:hover,
    .theme-doma .blog-article-detail .content-text figure.image:hover{
        rotate:0deg;
        translate:0 -6px;
        box-shadow:0 36px 60px -30px var(--doma-shadow-strong);
    }
}

/* ostatní obsah textu - obrázky v odstavci, videa a tabulky */
.theme-doma .blog-article-detail .content-text > div:not([class]) > p img{
    border-radius:12px;
}
.theme-doma .blog-article-detail .content-text > div:not([class]) iframe{
    border-radius:16px;
}
.theme-doma .blog-article-detail .content-text > div:not([class]) table :is(th,td){
    border-bottom-color:var(--doma-line);
}
.theme-doma .blog-article-detail .content-text > div:not([class]) table th{
    border-bottom-width:2px;
    color:var(--doma-text);
}

/* vložený produkt a formulář (kódy s: a f:) - jen odsazení od textu, vzhled mají ze svých souborů */
.theme-doma .blog-article-detail .content-text > div[class]:not(.img-container){
    margin-top:4.8rem;
    margin-bottom:4.8rem;
}

/* ------------------------------------------------------------------------------------------
    Doporučené články pod článkem - menší karty, krátký perex
------------------------------------------------------------------------------------------ */
.theme-doma section.related-articles{
    padding-top:14rem;
    background-color:transparent;
}
.theme-doma section.related-articles.no-top-padding{
    padding-top:4rem;
}
.theme-doma section.related-articles h2.headline{
    margin:0 0 5.6rem;
    font-size:clamp(3.4rem, 3.8vw, 5rem);
    line-height:1.15;
    text-align:center;
    color:var(--doma-heading);
}
.theme-doma section.related-articles .blog-articles{
    gap:4.4rem 3.2rem;
}
.theme-doma section.related-articles .blog-articles > .cm-col > article{
    padding:1.2rem 1.2rem 2.6rem;
    border-radius:22px;
}
.theme-doma section.related-articles .blog-articles > .cm-col > article::before{
    top:-1.2rem;
    width:9rem;
    height:2.4rem;
    margin-left:-4.5rem;
}
.theme-doma section.related-articles .blog-articles article a.image,
.theme-doma section.related-articles .blog-articles article a.image img{
    border-radius:14px;
}
.theme-doma section.related-articles .blog-articles article h2{
    margin:2rem 1.4rem 0;
    font-size:2.4rem;
}
.theme-doma section.related-articles .blog-articles article > div{
    margin:1rem 1.4rem 0;
}
.theme-doma section.related-articles .blog-articles article > div :is(p,li,p *,li *){
    font-size:1.55rem;
    line-height:1.6;
}
@media (min-width: 1200px){
    .theme-doma section.related-articles .blog-articles:has(> .cm-col:nth-child(3)){
        grid-template-columns:repeat(3, minmax(0, 1fr));
    }
    .theme-doma section.related-articles .blog-articles:has(> .cm-col:nth-child(4)){
        grid-template-columns:repeat(4, minmax(0, 1fr));
    }
}

/* ------------------------------------------------------------------------------------------
    Tablet a telefon
------------------------------------------------------------------------------------------ */
@media (max-width: 991px){
    .theme-doma .blog-articles{
        gap:5.6rem 3.2rem;
    }
    .theme-doma .blog-articles article h2{
        font-size:2.6rem;
    }
}
@media (max-width: 767px){
    .theme-doma section.blog{
        padding:13rem 0 10rem;
        background-size:60rem 56rem, 64rem 64rem;
        background-position:right -30rem top -20rem, left -36rem top 45%;
    }
    .theme-doma section.blog-article-detail{
        padding:12rem 0 8rem;
        background-size:60rem 56rem, 64rem 64rem, 60rem 60rem;
    }
    .theme-doma section.blog-article-detail.alone-article{
        padding-top:4rem;
    }
    .theme-doma :is(section.blog,section.blog-article-detail,section.related-articles) > .container,
    .theme-doma section.related-articles .related-articles-content > .container{
        padding:0 1.6rem;
    }
    .theme-doma .blog-articles,
    .theme-doma section.related-articles .blog-articles{
        grid-template-columns:minmax(0, 1fr);
        gap:4.8rem;
    }
    .theme-doma .blog-articles h1{
        font-size:clamp(3.6rem, 10vw, 4.2rem);
    }
    .theme-doma .blog-articles .cat-desc :is(p,li,p *,li *){
        font-size:1.7rem;
    }
    .theme-doma .blog-articles > .cm-col > article{
        padding:1.2rem 1.2rem 2.6rem;
        border-radius:20px;
    }
    .theme-doma .blog-articles article h2,
    .theme-doma section.related-articles .blog-articles article h2{
        margin:2rem 1.2rem 0;
        font-size:2.5rem;
    }
    .theme-doma .blog-articles article > div,
    .theme-doma section.related-articles .blog-articles article > div{
        margin:1rem 1.2rem 0;
    }
    .theme-doma .blog-articles article > div :is(p,li,p *,li *){
        font-size:1.6rem;
    }

    .theme-doma .blog-article-detail .content-text > .img-container{
        aspect-ratio:16 / 10;
        border-radius:20px;
    }
    .theme-doma .blog-article-detail .content-text > .img-container img.main{
        clip-path:inset(8px round 14px);
    }
    .theme-doma .blog-article-detail .content-text > .img-container::before,
    .theme-doma .blog-article-detail .content-text > .img-container::after{
        width:9rem;
        height:2.6rem;
        top:-1.2rem;
    }
    .theme-doma .blog-article-detail .content-text > h1{
        margin-top:4.8rem;
        font-size:clamp(3.4rem, 9.6vw, 4rem);
    }
    .theme-doma .blog-article-detail .content-text > h1 + *{
        margin-top:4rem;
    }
    .theme-doma .blog-article-detail .content-text > h1 + div > p:first-child{
        font-size:2rem;
    }
    .theme-doma .blog-article-detail .content-text > div:not([class]) > h2{
        font-size:2.9rem;
    }
    .theme-doma .blog-article-detail .content-text > div:not([class]) > h3{
        font-size:2.5rem;
    }
    .theme-doma .blog-article-detail .content-text > div:not([class]) > h4{
        font-size:2.1rem;
    }
    .theme-doma .blog-article-detail .content-text .cm-review-element .review .content,
    .theme-doma .blog-article-detail .content-text blockquote{
        padding:3rem 2.6rem 2.6rem;
    }
    .theme-doma .blog-article-detail .content-text :is(.cm-review-element .review .content .text,blockquote):not(:has(> :is(p,ul,ol) ~ :is(p,ul,ol))) p{
        font-size:2.4rem;
    }
    .theme-doma .blog-article-detail .content-text figure.image.align-left,
    .theme-doma .blog-article-detail .content-text figure.image.align-right{
        float:none;
        max-width:100%;
        margin:4rem auto;
    }
    .theme-doma section.related-articles{
        padding-top:10rem;
    }
    .theme-doma section.related-articles h2.headline{
        margin-bottom:4.4rem;
    }
}

/* ------------------------------------------------------------------------------------------
    Omezení pohybu - bez vjezdů, kreslení a nadzvedávání
------------------------------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce){
    .theme-doma .blog-articles > .cm-col > article,
    .theme-doma .blog-articles article a.image img,
    .theme-doma .blog-article-detail .content-text :is(.cm-review-element .review .content,blockquote,figure.image){
        transition:none !important;
    }
    .theme-doma :is(.blog-articles h1,.blog-article-detail .content-text > h1)::after{
        animation:none !important;
    }
}
