/* S05: C01/D8 catalog composition, applied to unchanged SSR content. */
/* F7 R3-K6 (19.09.2026): the age tile style is limited to the age navigation (.md-s05-ages). The adapter tags every link to an age list,
   also one inside an editorial sentence - there it stays an ordinary inline link. */
body[data-md-public="on"][data-md-adapter="s05"] #div_page_content .page_col2_l:only-child {width:100%;max-width:none;min-width:0}
body[data-md-public="on"][data-md-adapter="s05"] #div_page_content {font-family:Montserrat,Arial,sans-serif;overflow-wrap:anywhere}
body[data-md-public="on"][data-md-adapter="s05"] .md-s05-ages {display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;clear:both;float:none;width:100%;margin:24px 0;padding:0}
body[data-md-public="on"][data-md-adapter="s05"] .md-s05-ages div {display:contents!important;float:none!important;margin:0!important;padding:0!important}
body[data-md-public="on"][data-md-adapter="s05"] .md-s05-ages::before,
body[data-md-public="on"][data-md-adapter="s05"] .md-s05-ages::after {content:none!important}
body[data-md-public="on"][data-md-adapter="s05"] .md-s05-ages .md-s05-age-link {display:flex!important;align-items:center;min-height:54px;min-width:0;padding:12px 14px;border:1px solid #E9EEF2;border-radius:6px;font:600 13px/1.6 Montserrat,Arial,sans-serif!important;color:#003368!important;background:#fff;white-space:normal!important;overflow-wrap:anywhere;box-sizing:border-box}
body[data-md-public="on"][data-md-adapter="s05"] .md-s05-locations {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;clear:both;margin:24px 0}
body[data-md-public="on"][data-md-adapter="s05"] .md-s05-locations>div,
body[data-md-public="on"][data-md-adapter="s05"] .md-s05-locations>span {display:contents}
body[data-md-public="on"][data-md-adapter="s05"] .md-s05-locations br {display:none}
body[data-md-public="on"][data-md-adapter="s05"] .md-s05-locations .md-s05-location-link {display:flex;align-items:center;min-height:60px;padding:12px 16px;border-radius:6px;background:#EDF3F7;color:#003368;white-space:normal;overflow-wrap:anywhere;font:600 14px/1.6 Montserrat,Arial,sans-serif}
body[data-md-public="on"][data-md-adapter="s05"] .md-s05-ages .md-s05-age-link:focus-visible,
body[data-md-public="on"][data-md-adapter="s05"] .md-s05-location-link:focus-visible {outline:3px solid #003368;outline-offset:3px}
body[data-md-public="on"][data-md-adapter="s05"] .md-s05-empty {margin:24px 0;padding:24px;border:1px solid #E9EEF2;border-radius:6px;background:#EDF3F7;font:400 16px/1.6 Montserrat,Arial,sans-serif;color:#003368}
body[data-md-public="on"][data-md-adapter="s05"] .lista_om {font-family:Montserrat,Arial,sans-serif}
body[data-md-public="on"][data-md-adapter="s05"] .lista_om_motto {height:auto;min-width:0;overflow-wrap:anywhere}
body[data-md-public="on"][data-md-adapter="s05"] .lista_om_info,
body[data-md-public="on"][data-md-adapter="s05"] .lista_om_user {white-space:normal;overflow-wrap:anywhere}
@media(max-width:767px) {
 body[data-md-public="on"][data-md-adapter="s05"] .md-s05-ages,
 body[data-md-public="on"][data-md-adapter="s05"] .md-s05-locations {grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 body[data-md-public="on"][data-md-adapter="s05"] .md-s05-ages .md-s05-age-link {padding:10px;min-height:68px}
}
@media(max-width:575px) {
 body[data-md-public="on"][data-md-adapter="s05"] .md-s05-locations {grid-template-columns:1fr}
}
/* Country catalogs use template 87 but emit the same native C01 frame as 66. */
body[data-md-public="on"][data-md-adapter="s05"] .nav_lista_om {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));list-style:none;margin:24px 0;padding:0;width:100%}
body[data-md-public="on"][data-md-adapter="s05"] .lista_om>table:not(.lista_om_table)>tbody>tr:first-child,
body[data-md-public="on"][data-md-adapter="s05"] .lista_om>table:not(.lista_om_table)>tbody>tr:last-child,
body[data-md-public="on"][data-md-adapter="s05"] .lista_om>table:not(.lista_om_table)>tbody>tr>td[width],
body[data-md-public="on"][data-md-adapter="s05"] .md-public-details-col td[width="20"] {display:none!important}
@media(max-width:767px) {
 body[data-md-public="on"][data-md-adapter="s05"] .nav_lista_om {grid-template-columns:1fr}
}
body[data-md-public="on"][data-md-adapter="s05"] .swiper-container:has(>.md-s05-empty) {height:auto!important;min-height:0;overflow:visible}
body[data-md-public="on"][data-md-adapter="s05"] [id^="slider_twarze"]:has(.md-s05-empty)>.slider_arrow_left,
body[data-md-public="on"][data-md-adapter="s05"] [id^="slider_twarze"]:has(.md-s05-empty)>.slider_arrow_right {display:none}

/* F6 audit 017: consistent gutters and complete catalogue sections. */
body[data-md-public="on"][data-md-adapter="s05"] .md-s05-ages.row{margin-left:0;margin-right:0;width:100%}
body[data-md-public="on"][data-md-adapter="s05"] .md-public-small-heading{margin:32px 0 20px}
body[data-md-public="on"][data-md-adapter="s05"] .md-public-region-heading{margin:32px 0 20px;border-top:1px solid #E9EEF2;padding-top:28px}
body[data-md-public="on"][data-md-adapter="s05"] .md-public-region-heading h2{margin:0 0 12px}
body[data-md-public="on"][data-md-adapter="s05"] .md-public-region-heading p{margin:0}
body[data-md-public="on"][data-md-adapter="s05"] .md-catalog-empty-actions a{display:inline-flex;align-items:center;min-height:44px;font-weight:600;text-decoration:underline}
body.md-public-offers .md-public-join + .md-standalone-footer{margin-top:0}

body[data-md-public="on"][data-md-adapter="s05"] .md-s05-link-row{margin-left:0!important;margin-right:0!important}
body[data-md-public="on"][data-md-adapter="s05"] .md-s05-locations[aria-label^="Biura"]{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:1023px){body[data-md-public="on"][data-md-adapter="s05"] .md-s05-locations[aria-label^="Biura"]{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:575px){body[data-md-public="on"][data-md-adapter="s05"] .md-s05-locations[aria-label^="Biura"]{grid-template-columns:1fr}}

/* A024-17: native controls, same GET fields and existing dependent-filter IDs. */
body[data-md-public="on"][data-md-adapter="s05"] form[name="szukaj_bl"] {max-width:100%;min-width:0}
body[data-md-public="on"][data-md-adapter="s05"] form[name="szukaj_bl"] .div_select_kraj {width:100%;height:auto;min-width:0;background:none}
body[data-md-public="on"][data-md-adapter="s05"] form[name="szukaj_bl"] select.md-native-search {display:block!important;position:static!important;opacity:1!important;appearance:auto;width:100%!important;max-width:100%;height:48px!important;min-height:48px;padding:8px 12px;border:1px solid #B6CAD9;border-radius:6px;background:#fff;color:#003368;font:inherit}
body[data-md-public="on"][data-md-adapter="s05"] form[name="szukaj_bl"] .div_select_plec {height:44px;min-width:44px;width:44px;background:none}
body[data-md-public="on"][data-md-adapter="s05"] form[name="szukaj_bl"] input.md-native-search[type="radio"] {opacity:1!important;position:static!important;width:44px!important;height:44px!important;margin:0;accent-color:#7AC319}
body[data-md-public="on"][data-md-adapter="s05"] form[name="szukaj_bl"] .home_search_label {font-size:14px;white-space:normal}
body[data-md-public="on"][data-md-adapter="s05"] .md-native-search:focus-visible {outline:3px solid #003368;outline-offset:3px}

/* F7 R3-K1 (19.09.2026): the country select loses the second (legacy) frame from 576 px up, as it already does on mobile.
   The "Szukam" indicators (#div_partner_k/m) are NOT restyled here: public.css (R3-03) draws them with the production sprite
   home_search_v2_radio.png; an empty row in a laboratory means only that the local /_img mirror lacks that sprite (R1 K-1). */
@media(min-width:576px){body[data-md-public="on"][data-md-adapter="s05"] form[name="szukaj_bl"] .div_select_kraj{width:auto;max-width:100%;height:auto;border:0;background:none;padding:0}
body[data-md-public="on"][data-md-adapter="s05"] form[name="szukaj_bl"] #home_search_kraj{width:100%;max-width:100%;height:44px}}
