/* Vypočítaj.sk identity and calculator adapters for the LIFE ZONE templates. */
:root {
    --blue: #3528f5;
    --blue-dark: #2420a6;
    --accent: var(--blue);
    --lime: #eeecff;
    --rubric-ink: var(--blue);
    --font: var(--ui);
}
.publication.site-canvas { max-width: none; border: 0; }
.publication .header-actions { display: flex; gap: 6px; }
.lzp-logotype .site-title { display: flex; max-width: 100%; gap: 8px; font: 800 clamp(16px, 2vw, 27px)/1 var(--ui); letter-spacing: -.055em; }
.lzp-logotype .site-title-icon { width: clamp(22px, 3vw, 42px); height: auto; }
.lzp-logotype .site-title > span { white-space: nowrap; }
.lz-footer .lzp-logotype .site-title { color: white; }
.lz-footer .lzp-logotype .brand-dot { color: #d3cdff; }
.lzp-trends a:hover, .lz-footer a:hover { color: #d2cbff; }
.lzp-trends :focus-visible { outline-color: #d2cbff; }
.lz-footer .lzp-footer-top > a:last-child, .lz-footer .lz-tags a { color: #d2cbff; }
.vyp-footer-services { display: grid; gap: 8px; }

.lz-shell > .site-main, .lzp-vyp-layout > .site-main { width: 100%; padding-inline: 0; padding-bottom: 0; }
.lzp-vyp-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: clamp(24px, 3vw, 42px);
    align-items: start;
    margin-block: var(--page-start) 36px;
}
.lzp-vyp-layout > .site-main { min-width: 0; container-type: inline-size; }
.lzp-vyp-rail { min-width: 0; border-top: 2px solid var(--blue); }
.lzp-vyp-rail .lzm-latest { min-height: 0; }
.lzm-home .lzed-home-cover { background: linear-gradient(135deg, #2c24ad, #1b174b); }
.lzm-home .lzed-home-cover .lzed-card-visual { mask-image: linear-gradient(90deg, transparent 61%, #000 78%); }
.lzm-home .lzed-home-cover .lzed-card-visual img { object-position: right center; }
.lzp-vyp-layout :is(.calculator-hero, .category-hero, .search-hero, .information-hero) {
    margin: 0 0 24px;
    padding: 0;
    border: 0;
    background: white;
}
.lzp-vyp-layout :is(.category-hero, .search-hero, .information-hero) > h1 {
    margin: 0;
    font: 800 clamp(34px, 3.6vw, 54px)/1.08 var(--heading);
    letter-spacing: -.045em;
}
.lzp-vyp-layout .calculator-hero :is(.eyebrow, .calculator-availability) { display: none; }
.lzp-vyp-layout .calculator-hero .lead { margin-block-end: 18px; }
.lzp-vyp-layout .calculator-seo-content { font-family: var(--ui); }
.lzp-vyp-layout .calculator-page { --topic-accent: var(--blue-dark); --topic-rule: var(--blue); --topic-wash: var(--lime); }
.vyp-recommendations { margin-block: 24px 36px; }
.vyp-recommendations .article-recommendations { width: 100%; }
.lz-shell > .vyp-listing { padding-bottom: 36px; }
.vyp-listing > div { min-width: 0; container-type: inline-size; }

/* A deterministic reservation keeps the follow-on content stationary. */
.vz-ad-stage, .vzrail-pair-unit { position: relative; }
.vzrail-ad-pair > .vz-ad-stage {
    --ad-width: 300px;
    --ad-height: 250px;
    display: grid;
    grid-template-columns: var(--ad-width);
    justify-content: center;
    gap: 12px;
    container-type: normal;
}
.vzrail-pair-unit { min-width: 0; height: var(--ad-height); }
.lzm-home { container-type: inline-size; }
.vz-ad-square > .vz-ad-stage, .vz-ad-tower > .vz-ad-stage { width: min(100%, 300px); height: 250px; }
.vz-ad-stage[data-vz-fallback] > ins[data-ad-status="unfilled"],
.vzrail-pair-unit[data-vz-fallback] > ins[data-ad-status="unfilled"] { display: none !important; }
.vz-ad-fallback {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    align-items: center;
    justify-items: center;
    gap: 8px;
    width: min(100%, 336px);
    margin-inline: auto;
    padding: 10px;
    border: 1px solid #ebd9d8;
    color: #55131d;
    background: #faf4f4;
    text-decoration: none;
    line-height: 1.2;
}
.vz-ad-fallback-brand { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 9px 11px; background: #9c1627; color: white; font-weight: 700; }
.vz-ad-fallback-brand small { font-size: 10px; font-weight: 400; }
.vz-ad-fallback img { display: block; width: auto; height: 100%; max-width: 100%; object-fit: contain; }
.vz-ad-fallback:hover strong { text-decoration: underline; }

@container (width >= 336px) {
    .vzrail-ad-pair > .vz-ad-stage { --ad-width: 336px; --ad-height: 280px; }
}
@container (width >= 684px) {
    .vzrail-ad-pair > .vz-ad-stage { grid-template-columns: repeat(2, var(--ad-width)); }
}
@container (width < 300px) {
    .vzrail-ad-pair > .vz-ad-stage { --ad-width: 250px; }
}
@media (min-width: 1100px) {
    .vz-ad-tower > .vz-ad-stage { height: 600px; }
}
@media (max-width: 1050px) {
    .lzp-vyp-layout { grid-template-columns: minmax(0, 1fr); }
    .lzp-vyp-rail { margin-top: 12px; }
}
@media (max-width: 630px) {
    .lzp-logotype .site-title { font-size: clamp(14px, 4.3vw, 22px); gap: 5px; }
    .lzp-logotype .site-title-icon { width: 24px; }
}
@media print {
    .publication-header, .lzp-vyp-rail, .lz-footer, .vyp-recommendations { display: none !important; }
    .lzp-vyp-layout { display: block; }
    .lz-shell { width: 100%; }
}
