﻿.articleContent {
    --article-green: #174b3a;
    --article-green-soft: #eef3e8;
    --article-cream: #f8f3e8;
    --article-cream-light: #fcfaf5;
    --article-orange: #d77a23;
    --article-gold: #bd963d;
    --article-text-soft: #675f55;
    --article-border: #e5ded1;
    --article-radius: 12px;
    line-height: 1.7;
}

.articleContent > *:first-child {
    margin-top: 0;
}

.articleContent h2 {
    color: var(--article-green);
}

.articleContent h3 {
    color: var(--article-green);
}

.articleContent p {
    margin: 0 0 1em;
}

/* Perex */
.articleLead {
    max-width: 900px;
    margin: 0 0 1.8em;
    font-size: 1.08em;
    line-height: 1.65;
    font-weight: 500;
}

/* Shrnutí na začátku článku */
.articleSummary {
    margin: 1.6em 0 2.5em;
    padding: 22px 24px;
    border-radius: var(--article-radius);
    background: var(--article-green-soft);
}

.articleSummary h2 {
    margin: 0 0 16px;
    font-size: 1.35em;
}

.articleSummaryGrid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
}

.articleSummaryItem {
    position: relative;
    min-width: 0;
    padding: 0 16px 0 40px;
}

.articleSummaryItem + .articleSummaryItem {
    border-left: 1px solid rgba(23, 75, 58, .18);
}

.articleSummaryNum {
    position: absolute;
    left: 6px;
    top: 1px;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--article-gold);
    color: #fff;
    font-weight: 700;
    font-size: .82em;
}

.articleSummaryItem strong {
    display: block;
    margin-bottom: 3px;
    line-height: 1.3;
}

.articleSummaryItem p {
    margin: 0;
    color: var(--article-text-soft);
    font-size: .9em;
    line-height: 1.45;
}

/* Text + obrazek vedle sebe */
.articleSplit {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(360px, 1.05fr);
    gap: 32px;
    align-items: center;
    margin: 2em 0 1em;
}

.articleSplit > * {
    min-width: 0;
}

.articleSplit h2 {
    margin-top: 0;
}

/* Obrazek s popiskem */
.articleImage {
    margin: 1.7em 0 2.2em;
    overflow: hidden;
    border-radius: var(--article-radius);
    background: var(--article-cream-light);
}

.articleImage img {
    display: block;
    width: 100%;
    height: auto;
}

.articleImage figcaption {
    padding: 11px 15px 13px;
    color: var(--article-text-soft);
    font-size: .9em;
    line-height: 1.45;
}

/* Malé principy / tipy */
.articleTipGrid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 1.25em 0 2.5em;
}

.articleTip {
    padding: 16px 17px;
    border: 1px solid var(--article-border);
    border-radius: 10px;
    background: var(--article-cream-light);
}

.articleTip strong {
    display: block;
    margin-bottom: 4px;
    color: var(--article-green);
}

.articleTip span {
    color: var(--article-text-soft);
    font-size: .92em;
}

/* Sada karet - tipy, kombinace, varianty */
.articleCards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 1.25em 0 2.6em;
}

.articleCard {
    padding: 17px 17px 15px;
    border: 1px solid var(--article-border);
    border-radius: 10px;
    background: #fff;
}

.articleCard h3 {
    margin: 0 0 7px;
    font-size: 1.08em;
}

.articleCard p {
    margin: 0;
    color: var(--article-text-soft);
    font-size: .93em;
    line-height: 1.5;
}

.articleCard small {
    display: block;
    margin-top: 11px;
    padding-top: 9px;
    border-top: 1px solid var(--article-border);
    color: #786f63;
    line-height: 1.4;
}

/* Univerzální editorial box */
.articleBox {
    margin: 2em 0 1em;
    padding: 22px 24px;
    border-radius: var(--article-radius);
    background: var(--article-cream);
}

.articleBox h2,
.articleBox h3 {
    margin-top: 0;
}

/* Dva editorial boxy vedle sebe */
.articleBoxGrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 2em 0 2.8em;
}

.articleBoxGrid .articleBox {
    margin: 0;
}

/* Box s obrazkem nahore */
.articleMediaBox {
    overflow: hidden;
    border: 1px solid var(--article-border);
    border-radius: var(--article-radius);
    background: #fff;
}

.articleMediaBox img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.articleMediaBoxBody {
    padding: 20px 22px;
}

.articleMediaBoxBody h2,
.articleMediaBoxBody h3 {
    margin-top: 0;
}

.articleMediaCaption {
    margin-top: 14px;
    padding: 11px 13px;
    border-radius: 8px;
    background: var(--article-cream);
    color: var(--article-text-soft);
    font-size: .9em;
}

/* Krátký závěrečný tahák */
.articleCheatSheet {
    padding: 22px 24px;
    border-radius: var(--article-radius);
    background: var(--article-green-soft);
}

.articleCheatSheet h2 {
    margin: 0 0 15px;
}

.articleCheatGrid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.articleCheatItem {
    padding: 13px 14px;
    border-radius: 9px;
    background: #fff;
}

.articleCheatItem strong {
    display: block;
    margin-bottom: 3px;
    color: var(--article-green);
}

.articleCheatItem span {
    color: var(--article-text-soft);
    font-size: .91em;
}

/* Jednoduché tagy např. na složení */
.articleTags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 12px 0 0;
}

.articleTags span {
    padding: 6px 9px;
    border: 1px solid rgba(23, 75, 58, .14);
    border-radius: 999px;
    background: #fff;
    font-size: .88em;
}

/* Konec článku */
.articleOutro {
    max-width: 800px;
    margin: 2.4em auto 0;
    text-align: center;
    font-weight: 600;
}

/* Tablet */
@media (max-width: 980px) {
    .articleSummaryGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 0;
    }

    .articleSummaryItem:nth-child(3),
    .articleSummaryItem:nth-child(5) {
        border-left: none;
    }

    .articleSplit {
        grid-template-columns: 1fr;
    }

    .articleCards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .articleCheatGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobil */
@media (max-width: 640px) {
    .articleSummary {
        padding: 18px;
    }

    .articleSummaryGrid,
    .articleCards,
    .articleTipGrid,
    .articleBoxGrid,
    .articleCheatGrid {
        grid-template-columns: 1fr;
    }

    .articleSummaryItem,
    .articleSummaryItem + .articleSummaryItem {
        padding: 3px 0 13px 38px;
        border-left: none;
        border-bottom: 1px solid rgba(23, 75, 58, .15);
    }

    .articleSummaryItem:last-child {
        padding-bottom: 0;
        border-bottom: 0;
    }

    .articleSummaryNum {
        left: 0;
    }

    .articleSplit {
        gap: 18px;
    }

    .articleBox,
    .articleCheatSheet {
        padding: 10px;
    }
}
