.hpromo-campaign-single [data-campaign-tab-panel][hidden] { display: none; }

.hpromo-campaign-single :is([data-campaign-tab-panel], .hpromo-campaign-rules [id], #prijava) {
    scroll-margin-top: 100px;
}

.hpromo-campaign-single .hpromo-campaign-rules {
    padding: 0;
    max-width: none;
    background: none;
    border: 0;
}

.henkel-rules-with-contents {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 20px;
}

.hpromo-campaign-single .hpromo-campaign-rules .hpromo-text-content {
    width: 100%;
    min-width: 0;
    max-width: none;
    padding: clamp(20px, 4vw, 44px);
    border: 1px solid #ded7d6;
    border-top: 3px solid #e1000f;
    border-radius: 10px;
    background: #fff;
    color: #3b3b3b;
    font-size: 1rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.hpromo-campaign-rules .hpromo-text-content :is(p, ul, ol, table) { margin: 0 0 1em; }
.hpromo-campaign-rules .hpromo-text-content :is(ul, ol) { padding-inline-start: 1.5em; }
.hpromo-campaign-rules .hpromo-text-content li + li { margin-top: .35em; }

.hpromo-campaign-rules .hpromo-text-content .henkel-rules-title {
    margin: 0 0 12px;
    color: #3b3b3b;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    line-height: 1.15;
    text-align: start !important;
    text-transform: none;
}

.hpromo-campaign-rules .henkel-rules-title + h2 {
    margin: 0 0 24px;
    color: #626262 !important;
    font-size: 1.0625rem;
    line-height: 1.5;
    text-align: start !important;
}

.hpromo-campaign-rules .hpromo-text-content :is(h2, h3)[id] {
    margin: 2em 0 .65em;
    padding-top: .85em;
    border-top: 1px solid #ded7d6;
    font-size: clamp(1.12rem, 2vw, 1.32rem);
    line-height: 1.35;
}

.hpromo-campaign-rules .hpromo-text-content h4 {
    margin: 1.3em 0 .4em;
    font-size: 1rem;
    line-height: 1.4;
}

.henkel-rules-contents {
    border: 1px solid #ded7d6;
    border-radius: 10px;
    background: #f9f9f9;
    color: #3b3b3b;
}

.henkel-rules-contents summary {
    padding: 13px 16px;
    cursor: pointer;
    font-weight: 700;
}

.henkel-rules-contents summary::marker { color: #e1000f; }
.henkel-rules-contents ul { list-style: none; margin: 0; padding: 0 10px 10px; }
.henkel-rules-contents a {
    display: block;
    padding: 5px 6px;
    border-radius: 5px;
    color: inherit;
    font-size: .9rem;
    line-height: 1.35;
    text-decoration: none;
}

.henkel-rules-contents a:hover,
.henkel-rules-contents a:focus-visible {
    background: #fff;
    color: #b5000c;
    text-decoration: underline;
}

.henkel-rules-with-contents > .hpromo-button { grid-column: 1 / -1; justify-self: start; }

@media (min-width: 900px) {
    .henkel-rules-with-contents {
        grid-template-columns: clamp(190px, 23%, 255px) minmax(0, 1fr);
        gap: clamp(20px, 3vw, 36px);
    }
    .henkel-rules-with-contents > aside {
        position: sticky;
        top: 96px;
        max-height: calc(100vh - 115px);
        overflow: auto;
    }
    .henkel-rules-with-contents > .hpromo-button { grid-column: 2; }
}
