/* Pohoda 2027 web refresh (#136) — Figma "P2027_Web".
   ONE file shared by both webs: www (repo pohoda, web/assets_2027/) and shop (repo pohoda-festival, public/assets_2027/).
   Keep the two copies identical. Loaded after the site CSS, so it overrides main.css / the shop's encore build. */

:root {
    --p27-pink: #FF2FAC;
    --p27-green: #2AEB4B;
    --p27-grey: #EEEEEE;
    --p27-orange: #FF7D2A;
    --p27-gravity: "ABCGravity", "ABC Gravity Upright", sans-serif;
    /* Gravity's caps sit .062em above the middle of their line box (hhea 1916/-735, cap 1434 of 2048 upm, same on Win/Mac):
       shifting the text down by it centres the capitals in bars and pills ("všetky položky na stred", client 13. 11.) */
    --p27-cap: .062em;
}

/* ---------- HEADER: black top bar, logo + name left, date right ---------- */
.header_main_section .header_section .logo-bar.header-top-bg { background-color: #000 !important; }
.header_main_section:not(.thecure-header) .header_section .heading .heading_title,
.header_main_section:not(.thecure-header) .header_section .heading_date { color: #F5F5F5 !important; }  /* microsites keep their accent */
.header_main_section .header_section .heading .heading_title,
.header_main_section .header_section .heading_date {
    font-family: var(--p27-gravity);
    font-size: 34px;
    font-weight: 700;
    line-height: 1.5;
    font-variation-settings: "wdth" 70, "slnt" 0;
    text-transform: uppercase;
}
.header_main_section .p27-date {
    display: inline-block;
    padding-right: 2px;   /* + 10px bar padding = right edge at 1500 of 1512 (Figma) */
    white-space: nowrap;
}

/* menu row */
@media (min-width: 1024px) {
    .header_main_section .logo-bar .logo img {
        position: absolute !important;
        left: 16px !important;
        top: 12px !important;
        width: 23.34px !important;
        height: auto !important;
        margin: 0 !important;
    }
    .header_main_section .logo-bar .logo .slideshow { margin-left: 42px; }  /* name at x=56 (Figma) */
    .header_main_section .logo-bar .heading .heading_title { margin-right: 0; }
    .header_main_section .logo-bar .heading_title,
    .header_main_section .logo-bar .heading_date { position: relative; top: var(--p27-cap); line-height: 50px; }  /* bar 50 */

    /* Figma: 36px between items ("ideálne zúžiť medzeru medzi položkami") */
    .header_main_section .menu-bar .main-menu { padding-left: 0 !important; gap: 12px; }  /* 10+2 border + 12 + 2+10 = 36 */
    .header_main_section .menu-bar .main-menu > li > a > span {
        font-family: "Suisse Int'l", "Helvetica Neue", Arial, sans-serif;
        font-size: 20px;
        font-weight: 700;
        padding: 0.45em 10px;
    }
    .header_main_section .menu-bar .main-menu > li:first-child > a > span { padding-left: 14px; }
    .header_main_section .menu-controls { display: flex; align-items: center; gap: 10px; padding-right: 14px; }
}
@media (min-width: 1024px) and (max-width: 1399px) {
    .header_main_section .menu-bar .main-menu { gap: 4px; }
    .header_main_section .menu-bar .main-menu > li > a > span { padding-left: 8px; padding-right: 8px; font-size: 18px; }
}

/* ---------- MOBILE header (Figma 420px frame 215:555, client review 13. 11.): sizes in --u = 1px at ≥420, scaled down below ---------- */
@media (max-width: 1023px) {
    :root { --u: min(1px, calc(100vw / 420)); }
    /* black bar 56: mark left, name right-aligned ("Pohoda zalomiť do prava") */
    .header_main_section .bar.header_section, .header_main_section .logo-bar { height: calc(56 * var(--u)) !important; min-height: 0 !important; padding: 0 !important; }
    .header_main_section .logo-bar .heading { display: flex; align-items: center; height: 100%; }
    .header_main_section .logo-bar .logo { display: flex !important; align-items: center; width: 100%; height: 100%; padding: 0 calc(12 * var(--u)) 0 calc(12.6 * var(--u)) !important; }
    .header_main_section .logo-bar .logo img { position: static !important; width: calc(31.7 * var(--u)) !important; height: auto !important; margin: 0 !important; flex: none; }
    .header_main_section .logo-bar .logo .slideshow { flex: 1; align-self: stretch; text-align: right; margin: 0 !important; }
    .header_main_section .logo-bar .slideshow > span {
        left: auto !important; right: 0 !important; top: var(--p27-cap) !important; margin: 0 !important; transform: none !important;
        font-size: calc(45 * var(--u)) !important; line-height: calc(56 * var(--u)) !important;
        font-variation-settings: "wdth" 65, "slnt" 0 !important;
    }
    /* white row 54: green Kúpiť lístok + pink Adéla Day, bigger search + menu icons */
    .header_main_section .menu-bar { height: calc(54 * var(--u)); }
    .header_main_section .menu-bar .menu-controls { width: 100%; height: 100%; padding: 0 calc(17 * var(--u)) 0 calc(12 * var(--u)) !important; gap: calc(8 * var(--u)); justify-content: flex-start; }
    .header_main_section .menu-controls .buy-ticket, .header_main_section .menu-controls .cart-link { order: 1; margin: 0 !important; padding: 0 !important; background: transparent !important; }
    .header_main_section .menu-controls .p27-pill--adela { display: inline-flex !important; order: 2; }
    .header_main_section .menu-controls .header_action_section { order: 3; margin-left: auto; display: flex; align-items: center; gap: calc(17.5 * var(--u)); }
    .header_main_section .menu-controls .buy-ticket > span,
    .header_main_section .menu-controls .cart-link > span,
    .header_main_section .menu-controls .p27-pill {
        display: inline-flex; align-items: center; height: calc(40 * var(--u)); margin: 0 !important;
        padding: 0 calc(15 * var(--u)) !important; border-radius: 100px !important;
        background-color: var(--p27-green) !important; color: #000 !important;
        font-family: "Helvetica Neue", Arial, sans-serif !important; font-size: calc(20 * var(--u)) !important; font-weight: 700 !important; line-height: 1 !important; white-space: nowrap;
    }
    .header_main_section .menu-controls .buy-ticket > span,
    .header_main_section .menu-controls .cart-link > span { display: inline-block !important; line-height: calc(40 * var(--u)) !important; }  /* not flex: keeps the space in "Košík 0 €" (shop) */
    .header_main_section .menu-controls .p27-pill--adela { background-color: var(--p27-pink) !important; padding-right: calc(10 * var(--u)) !important; gap: calc(1 * var(--u)); }
    .header_main_section .menu-controls .p27-pill--adela::after { width: calc(26 * var(--u)); height: calc(26 * var(--u)); background-size: calc(19.6 * var(--u)) calc(16.9 * var(--u)); }
    .header_main_section .menu-controls .header_action_section .search-toggle { width: auto !important; height: auto !important; margin: 0 !important; padding: 0 !important; }
    .header_main_section .menu-bar .menu-controls .header_action_section .search-toggle img { width: calc(28.9 * var(--u)) !important; min-width: calc(28.9 * var(--u)); max-width: none !important; height: calc(28.9 * var(--u)) !important; }
    .header_main_section .menu-controls .header_action_section .nav-toggle {
        width: calc(21 * var(--u)) !important; height: calc(16 * var(--u)) !important; margin: 0 !important; padding: 0 !important;
        font-size: 0 !important; color: transparent !important;
        background: linear-gradient(#000, #000) top / 100% calc(2.2 * var(--u)) no-repeat, linear-gradient(#000, #000) center / 100% calc(2.2 * var(--u)) no-repeat, linear-gradient(#000, #000) bottom / 100% calc(2.2 * var(--u)) no-repeat !important;
    }
}

/* pills in the menu row: Adéla Day (pink, ↗) + Kúpiť lístok (green); mobile keeps the blue Kúpiť lístok */
.p27-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 15px;
    border-radius: 100px;
    color: #000 !important;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none !important;
    transition: filter .2s ease;
}
.p27-pill:hover, .p27-pill:focus { filter: brightness(.92); }
.p27-pill--adela { background: var(--p27-pink); padding-right: 10px; gap: 1px; }
.p27-pill--adela::after {
    content: "";
    width: 26px;
    height: 26px;
    background: url(/assets/img/2027/arrow_2027.svg) center / 19.6px 16.9px no-repeat;
    transform: rotate(135deg);
}
@media (min-width: 1024px) {
    .header_main_section .menu-controls .buy-ticket > span,
    .header_main_section .menu-controls .cart-link > span {
        display: inline-block;   /* not flex: keeps the space in "Košík 12 €" */
        height: 40px;
        line-height: 40px !important;
        padding: 0 15px !important;
        border-radius: 100px !important;
        background-color: var(--p27-green) !important;
        color: #000 !important;
        font-family: "Helvetica Neue", Arial, sans-serif;
        font-size: 20px !important;
        font-weight: 700;
        line-height: 1;
    }
    .header_main_section .menu-controls .buy-ticket > span:hover,
    .header_main_section .menu-controls .buy-ticket > span:focus,
    .header_main_section .menu-controls .cart-link > span:hover { background-color: var(--p27-green) !important; color: #000 !important; filter: brightness(.92); }
    .header_main_section .menu-controls .cart-link { background: transparent !important; }
}

/* Sk / En in the menu row (Figma order: En Sk) */
.header_main_section .p27-languages .languages { display: flex; flex-direction: row-reverse; gap: 10px; margin: 0; padding: 0; list-style: none; }
.header_main_section .p27-languages .languages li { margin: 0; }
.header_main_section .p27-languages .languages li span,
.header_main_section .p27-languages .languages li a {
    color: #000 !important;
    font-family: "Helvetica Neue", Arial, sans-serif !important;
    font-size: 20px !important;
    font-weight: 700;
    line-height: 1;
    opacity: 1 !important;
    text-decoration: none;
}
.header_main_section .menu-controls .header_action_section .search-toggle { padding: 0 0 0 0; }
.header_main_section .menu-controls .header_action_section .search-toggle img { transform: translateY(-7%); }  /* the lens sits low in the svg: centre the drawing, not the box */

/* ---------- DOODLES toggle (desktop only; off by default; state in localStorage, see p2027.js) ---------- */
.p27-doodles-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 2px;
    padding: 0;
    border: 0;
    background: none;
    color: #000;
    cursor: pointer;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}
.p27-switch {
    position: relative;
    flex: none;
    width: 31.5px;
    height: 18px;
    border: 2px solid #000;
    border-radius: 100px;
    background: #000;
    transition: background-color .2s ease, border-color .2s ease;
}
.p27-switch::after {
    content: "";
    position: absolute;
    top: 1px;
    right: 1.5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    transition: right .2s ease;
}
html.p27-doodles-on .p27-switch { background: var(--p27-orange); border-color: var(--p27-orange); }
html.p27-doodles-on .p27-switch::after { right: 12.5px; }
@media (max-width: 1023px) { .p27-doodles-toggle { display: none !important; } }

/* doodle layers: absolute overlay per page zone, rendered by components/layout/doodles.html.twig */
.p27-doodle-zone {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 1;   /* under the sticky header (z 2) and the fixed bottom bar (z 1, later in the DOM) — as in Figma */
    overflow: visible;
    pointer-events: none;
}
.p27-doodle { position: absolute; max-width: none; height: auto; user-select: none; }
@media (min-width: 1024px) { html.p27-doodles-on .p27-doodle-zone { display: block; } }

/* doodles are static on both sites (client 16. 11.); the motion rules are in git history */
.p27-has-doodles { position: relative; }
/* tickers fade on hover (main.css opacity .9 = new stacking context) → keep their doodles above the hero below, under the sticky header (z 2) */
.homepage_marquee_section.p27-has-doodles, .homepage_marquee_section.p27-marquee { z-index: 1; }
/* Safari snaps the hero video/photo and its neighbours apart at fractional heights → 1px white line; overlap them by 1px */
.homepage_marquee_section + article, .p27-lineup, .adela-hero { margin-top: -1px; }
.adela-hero { margin-bottom: -1px; }

/* ---------- BOTTOM BAR: white, black countdown + icons, black W ---------- */
.footer-bar { background-color: #fff !important; }
.countdown { color: #000 !important; }
@media (min-width: 1024px) {
    .countdown { font-family: var(--p27-gravity) !important; font-size: 34px !important; font-weight: 700 !important; font-variation-settings: "wdth" 130, "slnt" 0 !important; padding-left: 17px !important; }
}
.footer-bar .social img { filter: brightness(0) !important; }
footer .footer-bar a.webparty-link { background-color: #000 !important; color: #fff !important; }
@media (max-width: 767px) { .social-container { background: #fff !important; } }

/* ---------- COOKIE BAR: Adéla pink #FF2FAC instead of #FE66FE (client review 13. 11.), fade above it too ---------- */
footer .cookie-bar, footer .cookie-bar .button:hover { background-color: var(--p27-pink) !important; }
footer .cookie-bar::before { background-image: linear-gradient(to top, rgba(255, 47, 172, 1) 0, rgba(255, 47, 172, .3) 50%, rgba(255, 47, 172, .15) 65%, rgba(255, 47, 172, .075) 75.5%, rgba(255, 47, 172, .037) 82.85%, rgba(255, 47, 172, .019) 88%, rgba(255, 47, 172, 0) 100%) !important; }

/* ---------- FOOTER: new "Pohoda" logo (P2027_Paticka) + Figma spacing (desktop) ---------- */
/* no own stacking context: doodles of the section above (z 1) hang over the footer, the fixed bottom bar (z 1, later in DOM) stays on top */
footer.footer-content { z-index: auto !important; } /* main.css: footer { z-index: 1 !important } */
footer.footer-content .footer-info .footer-image { padding: 2.6rem 0 25px !important; margin: 0 !important; }
footer.footer-content .footer-info .footer-image > a { display: block; position: relative; width: 96.56vw; margin: 0 auto; }
@media (min-width: 1024px) {
    footer.footer-content .footer-info { padding: 0 !important; }
    footer.footer-content .footer-info .footer-info-frame { margin: 0 !important; padding: 37px 0 0 !important; border: 0 !important; }
    footer.footer-content .footer-info .footer-info-section { padding: 0 16px 0 28px !important; }
    footer.footer-content .footer-info .footer-info-menu-newsletter .newsletter_heading { margin: 0 0 21px !important; line-height: 24px !important; }
    footer.footer-content .footer-info .footer-info-menu-newsletter .newsletter_mail { gap: 11px !important; margin-bottom: 27px !important; align-items: center; }
    footer.footer-content .footer-info .footer-info-menu-newsletter .newsletter_mail input { flex: 0 0 382px !important; width: 382px !important; height: 39px !important; }
    footer.footer-content .footer-info .footer-info-menu-newsletter .newsletter_mail button,
    footer.footer-content .footer-info .footer-info-menu-newsletter .footer-newsletter-submit {
        height: 40px !important; padding: 0 21px !important; border-radius: 100px !important;
        font-family: "Helvetica Neue", Arial, sans-serif !important; font-size: 20px !important; font-weight: 700 !important; line-height: 40px !important; white-space: nowrap;
    }
    footer.footer-content .footer-info .footer-info-menu-newsletter .newsletter_content_section .checkbox-group input { width: 18px !important; height: 18px !important; margin-top: 2px !important; }
    footer.footer-content .footer-info .footer-info-menu-newsletter .newsletter_content_section .checkbox-group label { padding-left: 12px !important; max-width: 539px; font-size: 14px !important; line-height: 20px !important; }
    footer.footer-content .footer-info .footer-info-menu > .cell.large-4 { width: 50% !important; }
    footer.footer-content .footer-info .footer-info-menu > .cell.large-7 { width: 50% !important; margin-left: 0 !important; }
    footer .secondary-menu { display: grid !important; grid-template-columns: repeat(3, 171px); column-gap: 16px; justify-content: end; margin: 31px 0 0 !important; }
    footer .secondary-menu > .cell { width: auto !important; margin: 0 !important; padding: 0 !important; }
    footer .secondary-menu .footer_submenu { margin: 0 !important; }
    footer .secondary-menu .footer_submenu li { margin: 0 !important; line-height: 30px !important; height: auto !important; }
    footer .secondary-menu .footer_submenu a { font-family: "Helvetica Neue", Arial, sans-serif !important; font-size: 20px !important; font-weight: 700 !important; line-height: 30px !important; }
    footer.footer-content .footer-info .footer-image { padding-top: 76px !important; }
}
footer.footer-content .footer-info .footer-image img { display: block; width: 100%; height: auto; }

/* ---------- HOMEPAGE (www only) ---------- */
/* Adéla Day marquee */
.homepage_marquee_section.p27-marquee { position: relative; }
.homepage_marquee_section.p27-marquee .homepage_marquee {
    background-color: var(--p27-pink);
    color: #000;
    font-family: var(--p27-gravity);
    font-size: 80px;
    font-weight: 700;
    font-variation-settings: "wdth" 73, "slnt" 0;
    line-height: 92px;
    height: 92px;
    padding: 0;
    word-spacing: 0;
}
.p27-marquee .p27-marquee-item { display: inline-block; margin-right: 112px; transform: translateY(var(--p27-cap)); }
@media (max-width: 1023px) {
    .homepage_marquee_section.p27-marquee .homepage_marquee { font-size: calc(56.4 * var(--u)); line-height: calc(67 * var(--u)); height: calc(67 * var(--u)); padding-top: 0; margin-top: 0; }
    .p27-marquee .p27-marquee-item { margin-right: calc(79 * var(--u)); }
    #homepage-video { min-height: 0 !important; height: 83.5vw !important; }  /* Figma mobile hero 267/320 */
}

/* line-up: poster chessboard (admin → Homepage → plagáty) */
.p27-lineup { background: #fff; }
.p27-posters { display: grid; grid-template-columns: repeat(5, 1fr); }
.p27-poster { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: #000; }
.p27-poster img { display: block; width: calc(100% + 2px); height: calc(100% + 2px); margin: -1px; max-width: none; object-fit: cover; }  /* crop 1px all round: no light hairline between posters from image edges */
.p27-poster.is-hidden { display: none; }
.p27-poster-pill {
    position: absolute;
    left: 50%;
    top: 50%;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: max-content;           /* one line unless the name is too long (Figma: "Cruz Beckham / and the Breakers") */
    max-width: calc(100% - 24px);
    padding: 11px 14px;
    border-radius: 100px;
    background: var(--p27-pill, #FFEB52);
    color: #000;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: .98;
    text-align: center;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity .2s ease;
}
.p27-poster-pill::after {
    content: "";
    flex: none;
    width: 19.6px;
    height: 16.9px;
    background: url(/assets/img/2027/arrow_2027.svg) center / contain no-repeat;
    transform: rotate(180deg);
}
.p27-poster:hover .p27-poster-pill, .p27-poster:focus-visible .p27-poster-pill { opacity: 1; }
.p27-lineup-more {
    display: block;
    margin: 29px auto 0;
    padding: 0;
    border: 0;
    background: none;
    color: #000;
    cursor: pointer;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: underline;
}
.p27-lineup-more[hidden] { display: none; }
.p27-lineup-more .p27-mob { display: none; }
.p27-lineup-actions { display: flex; justify-content: center; gap: 32px; padding: 55px 16px 94px; }
@media (min-width: 1024px) {
    .p27-lineup-more--mobile-only { visibility: hidden; }  /* ≤ 15 posters: nothing to reveal on desktop, keep the spacing */
}
.p27-bigpill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 24.9px 36.5px;
    border-radius: 164px;
    font-family: var(--p27-gravity);
    font-size: 63.1px;
    font-weight: 700;
    font-variation-settings: "wdth" 75, "slnt" 0;
    font-feature-settings: "ss06" 1, "lnum" 1, "tnum" 1;
    line-height: 44px;
    height: 93.8px;
    text-transform: uppercase;
    white-space: nowrap;
    text-decoration: none !important;
    transition: background-color .2s ease, color .2s ease;
}
.p27-bigpill > span { display: block; transform: translateY(var(--p27-cap)); }
/* client 13. 11.: buttons are pink + lilac, the black/grey look from Figma is their hover */
.p27-bigpill--lilac { background: #EA97FF; color: #000 !important; }
.p27-bigpill--pink { background: var(--p27-pink); color: #000 !important; }
.p27-bigpill:hover, .p27-bigpill:focus-visible { background: #000; color: #EEE !important; }
.p27-lineup-actions.p27-adela-actions { gap: 28px; padding: 26px 16px; background: #fff; }  /* Adéla (Figma 215:1881): 26px above and below */
@media (max-width: 1023px) {
    .p27-posters { grid-template-columns: repeat(2, 1fr); }
    .p27-poster.is-hidden-mobile { display: none; }
    .p27-poster-pill { font-size: 13px; padding: 7px 9px; }
    .p27-poster-pill::after { width: 13px; height: 11px; }
    .p27-lineup-more { margin-top: 30px; font-size: 18px; }
    .p27-lineup-more .p27-desk { display: none; }
    .p27-lineup-more .p27-mob { display: inline; }
    .p27-lineup-actions { flex-direction: column; align-items: center; gap: 12px; padding: 22px 16px 36px; }
    .p27-lineup-actions.p27-adela-actions { gap: 12px; padding: 26px 16px; }
    .p27-bigpill { font-size: 40px; line-height: 28px; height: 56px; padding: 14px 22px; }
}

/* news: black section, grey cards */
.news_section.p27-news { background-color: #000 !important; position: relative; padding-bottom: 0; }
.p27-news .news_section_header { padding: 48px 16px 0 !important; align-items: flex-start !important; }
.p27-news .news_section_header .news-title {
    color: var(--p27-grey) !important;
    font-family: var(--p27-gravity);
    font-size: 80px;
    font-weight: 700;
    font-variation-settings: "wdth" 60, "slnt" 0;
    line-height: .9;
    text-transform: uppercase;
}
.p27-news .p27-news-all {
    display: inline-flex;
    align-items: center;
    height: 40px;
    margin-top: 16px;
    padding: 0 16px;
    border-radius: 100px;
    background: var(--p27-grey) !important;
    color: #000 !important;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none !important;
}
.p27-news .p27-news-all:hover { filter: brightness(.9); }
.p27-news #news-scroll-container { margin-top: 48px; padding: 0 0 0 16px; scroll-padding-left: 16px; }  /* snap keeps the first card at x=16 (tailwind.css has no lg:scroll-pl-4) */  /* no scrollbar-color: it disables the ::-webkit-scrollbar styles in Chrome */
.p27-news #news-scroll-container::-webkit-scrollbar { height: 15.6px !important; background: var(--p27-grey) !important; width: auto !important; }
.p27-news #news-scroll-container::-webkit-scrollbar-thumb { background: #000 !important; border: 1px solid var(--p27-grey) !important; border-radius: 0; }
.p27-news .p27-news-card { background: var(--p27-grey) !important; border: 1px solid #000 !important; border-top: 0 !important; margin-left: -1px; min-width: 329px !important; width: 329px; }
.p27-news .p27-news-card:first-child { margin-left: 0; }  /* Figma: first card border at x=16 */
.p27-news .p27-news-card img { height: 327px !important; object-fit: cover; border: 0 !important; }
.p27-news .p27-news-card .p-news-padding { padding: 13px 24px 0; min-height: 240px; }
.p27-news .p27-news-card p { margin: 0; font-family: "Suisse Int'l", "Helvetica Neue", Arial, sans-serif; font-size: 14px; font-weight: 700; line-height: normal; }
.p27-news .p27-news-card h1 { margin: 12px 0 0 !important; font-family: "Suisse Int'l", "Helvetica Neue", Arial, sans-serif; font-size: 20px !important; font-weight: 700; line-height: normal !important; }
.p27-news .p27-news-nav { display: flex; justify-content: space-between; padding: 17px 16px 19px 22px; }
.p27-news .p27-news-nav .arrow_nav { position: static !important; padding: 0 !important; width: 40px; height: 40px; }
.p27-news .p27-news-nav .arrow_nav img { width: 40px; height: 40px; }
@media (max-width: 1023px) {
    /* Figma 420 frame: cards 16px from the edges ("Novinky viac na okraj"), square photo, bigger type */
    .news_section.p27-news { padding-left: 0 !important; padding-right: 0 !important; }  /* main.css adds 16px, the cards carry their own */
    .p27-news .news_section_header { padding: calc(23 * var(--u)) calc(20 * var(--u)) 0 !important; }
    .p27-news .news_section_header .news-title { font-size: calc(52 * var(--u)); }
    .p27-news #news-scroll-container { margin-top: calc(53 * var(--u)) !important; padding: 0 calc(16 * var(--u)) !important; margin-left: 0 !important; margin-right: 0 !important; }
    .p27-news .p27-news-card { width: auto; min-width: 0 !important; margin: 0 0 0 0; border: 0 !important; }
    .p27-news .p27-news-card + .p27-news-card { margin-top: 1px; }
    .p27-news .p27-news-card img { width: 100%; height: auto !important; aspect-ratio: 1 / 1; }
    .p27-news .p27-news-card .p-news-padding { padding: calc(11 * var(--u)) calc(12 * var(--u)) 0; min-height: calc(267.5 * var(--u)); }
    .p27-news .p27-news-card p { font-family: Helvetica, Arial, sans-serif; font-size: calc(15.75 * var(--u)); }
    .p27-news .p27-news-card h1 { font-family: "Helvetica Neue", Arial, sans-serif; font-size: calc(26.25 * var(--u)) !important; line-height: 1.27 !important; margin-top: calc(10 * var(--u)) !important; }
    .p27-news .p27-news-all--mobile { margin: 24px 12px 0; }
    .p27-news { padding-bottom: 40px !important; }
}
