/*
Theme Name: Sport Super Power Recovered
Description: Motyw odtworzony z zachowanych plików strony Sport Super Power, bez zależności od Oxygen Builder.
Version: 1.0.3
Text Domain: sportsuperpower-recovered
*/

html { scroll-behavior: smooth; }
body { margin: 0; }
.ssp-empty-image { background: #eef1fb; min-height: 220px; }
.ssp-form-notice { margin-top: 12px; font-size: 14px; font-weight: 600; }

/* Keep recovered blog cards independent of intrinsic media dimensions. */
#_dynamic_list-433-214,
#_dynamic_list-21-369 {
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
#_dynamic_list-433-214 > .ct-div-block,
#_dynamic_list-21-369 > .ct-div-block { min-width: 0; }
.blog-post__wrapper { width: 100%; min-width: 0; flex-direction: column; }
.blog-post__wrapper > img.ssp-post-thumbnail,
.blog-post__wrapper > .ssp-empty-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: .8rem;
    flex: 0 0 auto;
}
.blog-post__wrapper > h3,
.blog-post__wrapper > p { overflow-wrap: anywhere; }
.ssp-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .8rem;
    width: 100%;
    margin-top: 3.2rem;
    position: relative;
    z-index: 20;
    font-size: 1.8rem;
    line-height: 1.4;
}
.ssp-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4.4rem;
    min-height: 4.4rem;
    padding: .8rem 1.2rem;
    border: 1px solid #4d66c4;
    border-radius: .8rem;
    background: #fff;
    color: #2f50c6;
    font-weight: 600;
    text-decoration: none;
}
.ssp-pagination .current,
.ssp-pagination a:hover { background: #4d66c4; color: #fff; }
.ssp-pagination a:focus-visible { outline: 3px solid #141414; outline-offset: 3px; }
.ssp-pagination .dots { border-color: transparent; background: transparent; min-width: 2.4rem; }
@media (max-width: 991px) {
    #_dynamic_list-433-214,
    #_dynamic_list-21-369 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 479px) {
    #_dynamic_list-433-214,
    #_dynamic_list-21-369 { grid-template-columns: minmax(0, 1fr); }
    .ssp-pagination { gap: .6rem; font-size: 1.6rem; }
}

/* Responsive header and hero: retain artwork without viewport-height stretching. */
#header > .ct-section-inner-wrap {
    min-height: 104px;
    max-width: 1280px;
    padding: 16px clamp(20px, 4vw, 64px);
    gap: clamp(16px, 2vw, 32px);
}
#link-117-10 { flex: 0 0 auto; }
#logo-text { height: 72px; width: auto; }
#div_block-58-10 { margin-left: 0; min-width: 0; }
#div_block-85-10 { margin-right: 0; align-items: center; }
#div_block-85-10 > a { white-space: nowrap; }
#header__funded { width: clamp(180px, 18vw, 240px); height: auto; flex: 0 0 auto; }
#header__ue { width: 52px; height: auto; flex: 0 0 auto; }
main.ct-inner-content { margin-top: 104px; }
.admin-bar #header { top: 32px; }
@media (min-width: 768px) {
    #div_block-58-10 { flex: 1 1 auto; justify-content: center; }
    #div_block-59-10 { transform: none !important; min-width: 0; }
    #div_block-85-10 { gap: clamp(4px, .7vw, 12px); }
    #div_block-85-10 > a { padding: 8px 4px; font-size: clamp(16px, 1.5vw, 20px); }
}
#section-2-214 {
    height: auto;
    min-height: clamp(560px, 55vw, 760px);
    background-attachment: scroll;
    background-position: center;
}
#section-2-214 > .ct-section-inner-wrap {
    max-width: 1280px;
    min-height: inherit;
    flex-direction: row;
    align-items: center;
    gap: 4%;
    padding: clamp(64px, 6vw, 96px) clamp(20px, 4vw, 64px);
}
#div_block-3-214 { width: 52%; min-width: 0; margin-top: 0; }
#div_block-9-214 { width: 44%; max-width: 480px; margin-top: 0; }
#headline-4-214 { margin-top: 0; font-size: clamp(40px, 4.4vw, 64px); line-height: 1.12; }
#span-5-214 { display: block; margin-top: 4px; font-size: 1.125em; line-height: inherit; }
#headline-4-214 > br { display: none; }
#text_block-6-214 { width: 100%; margin-bottom: 0; font-size: clamp(18px, 1.7vw, 24px); }
#code_block-8-214 { top: -100px; width: clamp(160px, 19vw, 255px); }
#code_block-8-214 > svg { width: 100%; height: auto; }
@media (min-width: 768px) and (max-width: 900px) {
    #logo-text { height: 64px; }
    #header > .ct-section-inner-wrap { gap: 12px; }
    #div_block-85-10 > a { padding: 8px 2px; font-size: 16px; }
}
@media (max-width: 767px) {
    #header > .ct-section-inner-wrap { min-height: 88px; padding: 12px 20px; }
    #logo-text { height: 64px; }
    main.ct-inner-content { margin-top: 88px; }
    #div_block-58-10 { margin-left: auto; }
    #div_block-85-10 { align-items: flex-start; padding: 88px 24px 32px; gap: 20px; }
    #div_block-59-10 { height: 100dvh; overflow-y: auto; touch-action: pan-y; }
    #section-2-214 { min-height: 0; }
    #section-2-214 > .ct-section-inner-wrap {
        min-height: 0;
        flex-direction: column;
        align-items: center;
        gap: 32px;
        padding: 80px 24px 48px;
    }
    #div_block-3-214 { width: 100%; max-width: 640px; margin-top: 0; }
    #div_block-9-214 { width: 80%; max-width: 360px; margin-top: 0; }
    #headline-4-214 { margin-top: 0; font-size: clamp(36px, 7.5vw, 50px); }
    #code_block-8-214 { top: -52px; width: 160px; }
    .admin-bar #header { top: 46px; }
}
