
/* Relax na MAX – blogové příspěvky
   Verze 1.0 */

/* Základní nastavení */
.rnm-article {
    --rnm-accent: #253b4b;
    --rnm-border: #e0e4e8;
    --rnm-background: #f5f7f8;
    --rnm-radius: 8px;
    line-height: 1.7;
    overflow-wrap: break-word;
}

.rnm-article h2 {
    margin: 32px 0 16px;
    line-height: 1.3;
}

.rnm-article h3 {
    margin: 24px 0 12px;
    line-height: 1.4;
}

.rnm-article p {
    margin: 0 0 16px;
}

.rnm-article img {
    max-width: 100%;
    height: auto;
}

.rnm-article figure {
    margin: 24px 0;
}

.rnm-article figcaption {
    margin-top: 8px;
    font-size: 0.9em;
    color: #666;
    text-align: center;
}

/* Společné obsahové boxy */
.rnm-article .rnm-box {
    margin: 24px 0;
    padding: 20px;
    border: 1px solid var(--rnm-border);
    border-radius: var(--rnm-radius);
    background: var(--rnm-background);
}

.rnm-article .rnm-box-title {
    display: block;
    margin: 0 0 10px;
    font-size: 1.15em;
    font-weight: 700;
}

.rnm-article .rnm-box p:last-child {
    margin-bottom: 0;
}

/* Praktický tip */
.rnm-article .rnm-tip {
    border-left: 4px solid var(--rnm-accent);
}

/* Důležité upozornění */
.rnm-article .rnm-warning {
    background: #fffbf1;
    border-color: #e8d9ba;
    border-left: 4px solid #c39a50;
}

/* Produktová karta */
.rnm-article .rnm-product {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 24px 0;
    padding: 20px;
    border: 1px solid var(--rnm-border);
    border-radius: var(--rnm-radius);
    background: #fff;
}

.rnm-article .rnm-product-image {
    flex: 0 0 180px;
    display: block;
}

.rnm-article .rnm-product-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.rnm-article .rnm-product-content {
    flex: 1;
    min-width: 0;
}

.rnm-article .rnm-product-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.8em;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.rnm-article .rnm-product-title {
    display: block;
    margin-bottom: 10px;
    font-size: 1.25em;
    font-weight: 700;
}

/* Tlačítka */
.rnm-article a.rnm-button {
    display: inline-block;
    box-sizing: border-box;
    max-width: 100%;
    padding: 11px 20px;
    border-radius: 5px;
    background: var(--rnm-accent);
    color: #fff;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    transition: background 0.2s ease;
}

.rnm-article a.rnm-button:hover {
    background: #182b39;
    color: #fff;
}

.rnm-article a.rnm-button:focus-visible {
    outline: 3px solid #7895ac;
    outline-offset: 3px;
}

/* Související články */
.rnm-article .rnm-related ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.rnm-article .rnm-related li {
    padding: 10px 0;
    border-bottom: 1px solid var(--rnm-border);
}

.rnm-article .rnm-related li:last-child {
    border-bottom: 0;
}

/* Kontaktní karta */
.rnm-article .rnm-contact {
    text-align: center;
    padding: 28px 20px;
}

/* FAQ */
.rnm-article .rnm-faq {
    margin: 24px 0;
}

.rnm-article .rnm-faq-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--rnm-border);
}

.rnm-article .rnm-faq-item h3 {
    margin: 0 0 8px;
    font-size: 1.1em;
}

.rnm-article .rnm-faq-item p {
    margin: 0;
}

/* Tabulky */
.rnm-article .rnm-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    margin: 24px 0;
}

.rnm-article .rnm-table {
    width: 100%;
    border-collapse: collapse;
}

.rnm-article .rnm-table th,
.rnm-article .rnm-table td {
    padding: 12px;
    border: 1px solid var(--rnm-border);
    text-align: left;
    vertical-align: top;
}

.rnm-article .rnm-table th {
    background: var(--rnm-background);
}

/* Mobilní zařízení */
@media (max-width: 767px) {
    .rnm-article .rnm-product {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
    }

    .rnm-article .rnm-product-image {
        flex: none;
        width: 100%;
        max-width: 220px;
        margin: 0 auto;
    }

    .rnm-article .rnm-product-content {
        width: 100%;
    }

    .rnm-article .rnm-box {
        padding: 16px;
    }

    .rnm-article a.rnm-button {
        display: block;
        width: 100%;
    }

    .rnm-article h2 {
        margin-top: 26px;
    }
}
