/* zalando-sans-semiexpanded-regular - latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Zalando Sans SemiExpanded';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/zalando-sans-semiexpanded-v2-latin_latin-ext-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* zalando-sans-semiexpanded-500 - latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Zalando Sans SemiExpanded';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/zalando-sans-semiexpanded-v2-latin_latin-ext-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* zalando-sans-semiexpanded-600 - latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Zalando Sans SemiExpanded';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/zalando-sans-semiexpanded-v2-latin_latin-ext-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* zalando-sans-semiexpanded-700 - latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Zalando Sans SemiExpanded';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/zalando-sans-semiexpanded-v2-latin_latin-ext-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* zalando-sans-semiexpanded-800 - latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Zalando Sans SemiExpanded';
  font-style: normal;
  font-weight: 800;
  src: url('../fonts/zalando-sans-semiexpanded-v2-latin_latin-ext-800.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}




/* zalando-sans-regular - latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Zalando Sans';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/zalando-sans-v2-latin_latin-ext-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* zalando-sans-500 - latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Zalando Sans';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/zalando-sans-v2-latin_latin-ext-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* zalando-sans-600 - latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Zalando Sans';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/zalando-sans-v2-latin_latin-ext-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* zalando-sans-700 - latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Zalando Sans';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/zalando-sans-v2-latin_latin-ext-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* zalando-sans-800 - latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Zalando Sans';
  font-style: normal;
  font-weight: 800;
  src: url('../fonts/zalando-sans-v2-latin_latin-ext-800.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

:root {
  --spacing-sm: 5px;
  --spacing-md: 10px;
  --spacing-lg: 15px;
  --spacing-xl: 20px;
  
  --rounded-sm: 5px;
  --rounded-md: 10px;
  
  --image-rounded-sm: var(--rounded-sm);
  --image-rounded-md: var(--rounded-md);
  
  --transition-fast: 0.1s;
  --transition-default: 0.25s;
  
  --content-width: 1024px;
  
  --image-hover-opacity: 0.85;
  
  --color-primary: #ff8700;
  --color-gradient-1: #ffae00; 
  --color-gradient-2: #ff5d00;
  --color-primary-transparent: #ff8700;
  --color-link: var(--color-primary);
  --color-link-hover: hsla(32, 100%, 65%, 1.00);
  
  
  --color-background: #1b1b1b;
  --color-background-static: #1b1b1b;
  --color-post-background: #2b2b2b;
  --color-post-background-static: #2b2b2b;
  --color-post-background-hover: #303030;
  --color-background-transparent: #000c;
  --color-border: #444;
  --color-text: #ddd;
  --color-text-white: #ddd;
  --color-text-inverted: #000;
  --color-text-inverted-hover: #ddd;
  --color-text-secondary: #bbb;
  --color-text-secondary-hover: #9f9f9f;
  --color-text-hover: #aaa;
  --color-text-barely-visible: #999;
  --color-text-placeholder: #888;
  --category-tag-background: var(--color-border);
  
  --outline: 2px solid var(--color-border);
}

body {
    color-scheme: dark;
}

body.light-mode {
    --color-background: #efefef;
    --color-post-background: #fafafa;
    --color-post-background-hover: #fff;
    --color-text: #222;
    --color-text-secondary: #444;
    --color-text-secondary-hover: #777;
    --color-border: #aaa;
    --category-tag-background: #ddd;
    
    color-scheme: light;
    
    --color-primary: hsla(32, 100%, 45%, 1.00);
    --color-link: var(--color-primary);
    --color-link-hover: hsla(32, 100%, 60%, 1.00);
    
    .post-content {
        a {
            text-decoration: underline;
        }
    }
    
    .sidebar-card-header--absolute {
        color: #ddd    
    }

}

/* RESETY I INNE ########################################## */

ul, p, h1, h2, h3 {
    margin: 0;
    padding: 0;
}

li {
    list-style: none;
}

.splide__slide img {
  width: 100%;
  height: auto;
}

body.admin-bar {
    .header-menu-mobile,
    header {
        top: 32px !important;
    }
    
    .index-sidebar-sticky {
        top: 158px;
    }
    
    &.header-away {
        .index-sidebar-sticky {
            top: 87px !important;
        }
    }
    
    
}
@media screen and (max-width: 782px) {
    body.admin-bar {
        .header-menu-mobile,
        header {
            top: 46px !important;
        }
    }
}

@media screen and (max-width: 600px) {
    body.admin-bar {
        header {
            top: 0px !important;
            position: sticky !important;
        }
    }
}

/* GLOBAL ################################################# */

html {
  scroll-behavior: smooth;
}

body, input {
    font-family: 'Zalando Sans', Arial, 'Trebuchet MS', Helvetica, sans-serif;
}

input {
    &::placeholder {
        color: var(--color-text-placeholder) !important;
    }
}

body {
    letter-spacing: 0.25px;
    background-color: var(--color-background);
    color: var(--color-text);
    margin: 0;
    font-size: 0.85rem;
}


a {
    color: inherit;
    text-decoration: none;
    
    &:hover {
        color: var(--color-primary);
    }
}

img {
    overflow: hidden;
    border-radius: var(--image-rounded-md);
}

h1, h2, h3, h4 {
    letter-spacing: 0.5px;
    font-weight: 600;
}

hr {
    border-color: var(--color-border) !important;
    border-style: solid !important;
    border-bottom: 0 !important;
    margin-block: var(--spacing-lg);
}
/* LAYOUT ################################################## */

header,
main,
footer {
    display: flex;
    justify-content: center;
    
    .language-links {
        max-width: 800px;
        display: flex;
        gap: var(--spacing-lg);
        flex-wrap: wrap;
        margin-bottom: var(--spacing-lg);
    }
}

.content-wrapper {
    max-width: var(--content-width);
    width: 100%;
}

/* HEADER ################################################## */

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    display: flex;
    justify-content: center;
    padding-inline: var(--spacing-md );
    background-color: var(--color-background);
    border-bottom: 1px solid var(--color-border);
    transition: opacity 0.5s, transform 0.25s;
    
    &.away {
        transform: translateY(-70px);
        
        @media (max-width: 1055px) {
            transform: none;
        }
        
        @media (max-width: 500px) {
            transform: translateY(-45px);
        }
    }
    
     .header-logo {
        a {
            display: flex;
            
            img {
                border-radius: 0 !important;
                max-width: 150px;
                background-color: transparent;
            }
        }
        
        .header-logo-image {
            max-width: 150px;
        }
    }
}

.header-content {
    min-height: 50px;
    display: flex;
    gap: var(--spacing-md);
    flex-direction: column;
    justify-content: space-between;
    padding-top: var(--spacing-lg);
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    
    a {
        transition: color var(--transition-fast);
        
        &:hover {
            color: var(--color-text-hover);
        }
    }
    
    svg {
        position: relative;
        top: 1px;
        height: 20px;
        stroke: var(--color-border) !important;
        
    }
}

.archive-results-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.header-row--top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-xl);
    
    & > div {
        display: flex;
        gap: var(--spacing-xl);
        align-items: center;
        
        &:first-child {
            flex: 1;
        }
        
        &:last-child {
            justify-content: flex-end;
        }
    }
    
    @media (max-width: 1055px) {
        gap: var(--spacing-md);
        
        div {
            gap: var(--spacing-md);
        }
    }
    
    @media (max-width: 500px) {
        
        .header-logo {
            position: absolute;
            top: var(--spacing-md);
            width: calc(100vw - (var(--spacing-md) * 2));
            justify-content: center;
        }
        
        & > div:first-child {
            margin-top: 40px;
            flex-direction: column;
            gap: var(--spacing-lg);
            align-items: initial;
        }
        
        & > div:last-child {
            gap: var(--spacing-md);
            align-self: flex-end;
        }
    }
}

.black-friday-count {
    span {
        color: var(--color-primary);
    }
    
    @media (max-width: 1055px) {
        display: none;
    }
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance:none;
}

.header-search {
    flex: 1;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    padding: 0 var(--spacing-md);
    display: flex;
    gap: var(--spacing-xl); 
    height: 40px;
    max-width: 300px;
    align-items: center;
    outline-offset: -1px;
    outline: 0px solid transparent;
    outline-color: var(--color-border) !important;
    transition: outline var(--transition-fast);
    
    &:focus-within {
        outline: var(--outline);
    }
    
    input {
        background-color: transparent !important;
        border: none;   
        outline: none !important;
        color: var(--color-text);
        width: 100%;
        height: 100%;
    }
}

.header-search-toggle {
    all: unset;
    cursor: pointer;
    transition: color var(--transition-fast);
    
    &:hover {
        color: var(--color-text-secondary);
    }
}

.header-logo {
    display: flex;
    align-items: center;
    
    img {
        max-height: 50px;
    }
}

.header-menu {
    display: flex;
    align-items: center;
    height: 100%;
    position: relative;
    
    a {
        transition: color var(--transition-fast);
    }
    
    .menu-item {
        span {
            display: flex;
            align-items: center;
            gap: var(--spacing-sm);
            
            svg {
                width: 18px;
            }
        }
    }
    
    img {
      border-radius: 0 !important;
    }
    
    ul {
        list-style: none;
        display: flex;
        gap: var(--spacing-lg);
        height: 100%;
        
        &#primary-menu {
            li {
                &.current-post-ancestor:not(.current-post-parent), &.current-menu-ancestor {
                    & > a {
                        color: var(--color-primary) !important;
                    }
                }
            }
            
            .sub-menu {
                li {
                    &.current-post-parent {
                        & > a {
                            color: var(--color-primary) !important;
                        }
                    }
                }
            }
        }
        
        li {
            position: relative;
            display: flex;
            align-items: center;
            
            &.current-menu-item {
                & > a {
                    color: var(--color-primary) !important;
                }
            }
            
            &.current-menu-item, &.current-menu-ancestor, &.current-post-ancestor:not(.current-post-parent) {
                &:before {
                    content: '';
                    position: absolute;
                    height: 5px;
                    bottom: 0;
                    width: 100%;
                    background: linear-gradient(to right, var(--color-gradient-1), var(--color-gradient-2));
                    border-top-left-radius: var(--rounded-sm);
                    border-top-right-radius: var(--rounded-sm);
                }
            }
        }
        
        li a {
            box-sizing: border-box;
            position: relative;
            bottom: -1px;
            padding: var(--spacing-md) var(--spacing-md);
            letter-spacing: 0.5px;
            height: 100%;
            width: 100%;
            font-size: 0.8rem;
            display: flex;
            align-items: center;
            
            &:hover {
                color: var(--color-text-secondary-hover);
            }
        }
    }
    
    .menu-main-menu-container {
        height: 100%;
    }
    
    &.header-menu-desktop {
        .sub-menu {
            position: absolute;
            top: calc(100% + 1px);
            display: none;
            border: 1px solid var(--color-border);
            border-top: none;
            border-bottom-left-radius: var(--rounded-md);
            border-bottom-right-radius: var(--rounded-md);
            box-shadow: 0px 30px 30px -20px #00000077;
            z-index: -1;
            background-color: var(--color-background);
            width: max-content;
            height: auto;
            padding-bottom: var(--spacing-md);
            
            &:before {
                content: '';
                position: absolute;
                top: 0;
                width: 100%;
                height: 10px;
                background: linear-gradient(to top, #0000, #0002);
            }
            
            & > li {
                
                &.current-menu-item {
                    &:before {
                        content: none;
                    }
                }
                a {
                    padding-inline: var(--spacing-xl);
                    width: 100%;
                }
            }
        }
        
        .menu-item-has-children {
            &:hover {
                .sub-menu {
                    display: flex;
                    gap: 0;
                    flex-direction: column;
                    flex-wrap: wrap;
                    max-height: calc(100vh - 200px);
                }
            }
    }
    }
    
    &.header-menu-mobile {
        overflow-y: auto;
        padding-bottom: var(--spacing-xl);
        
        ul {
            gap: 0px;
        }
        
        .menu-item {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
        }
        
        .sub-menu {
            margin-top: 0;
            gap: 0;
            margin-left: 24px;
        }
    }
    
}

.dark-mode-switch {
  position: relative;
  display: inline-block;
  width: 70px;
  height: 40px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  cursor: pointer;
  user-select: none;
  padding: 0;
  box-sizing: border-box;
  
  .icon {
    display: flex;
    position: relative;
    svg {
         width: 18px;
         height: 18px;
    }
    
    &.sun {
        left: 4px;
    }
    
    &.moon {
        right: 4px;
    }
  }
}

.dark-mode-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
  left: 0; top: 0;
}

.dark-mode-switch .slider {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5px;
  box-sizing: border-box;
}

.dark-mode-switch .icon {
  font-size: 18px;
  color: #444;
  z-index: 1;
}

.dark-mode-switch .toggle-ball {
  position: absolute;
  top: 6px;
  bottom: 2px;
  left: 5px;
  height: 26px;
  width: 26px;
  background: #222;
  border-radius: 50%;
  transition: left 0.3s ease;
  z-index: -1;
}

/* Kiedy checkbox jest zaznaczony */
.dark-mode-switch input:checked + .slider .toggle-ball {
  left: calc(100% - 31px);
  background-color: #fff;
}

/* Kolory ikon w zależności od stanu */
.dark-mode-switch input:not(:checked) + .slider .sun {
  color: var(--color-primary); /* złocisty/słoneczny */
}

.dark-mode-switch input:not(:checked) + .slider .moon {
  color: var(--color-border);
}

.dark-mode-switch input:checked + .slider .sun {
  color: var(--color-border);
}

.dark-mode-switch input:checked + .slider .moon {
  color: var(--color-primary); /* jasny księżycowy kolor */
}

.header-icon {
    all: unset;
    display: flex;
    padding: var(--spacing-md) var(--spacing-sm);
    color: var(--color-text-secondary) !important;
    transition: color var(--transition-fast);
    
    svg {
        height: 18px;
        color: var(--color-text-secondary);
        transition: color var(--transition-fast);
    }
    
    &:hover {
        color: var(--color-text-hover) !important;
        cursor: pointer !important;
        
        svg {
            color: var(--color-text-hover) !important;
            cursor: pointer !important;
        }
    }
}

.header-mobile-toggle {
    display: none;
    box-sizing: border-box;
    justify-content: center;
    gap: var(--spacing-sm);
    align-items: center;
    height: 40px;
    padding-inline: var(--spacing-lg);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    
    @media (max-width: 1055px) {
        display: flex;
    }
    
    @media (max-width: 700px) {
        gap: 0px;
        padding-inline: 0px;
        width: 40px;
        
        span {
            opacity: 0;
            width: 0px;
        }
    }
}

.header-search-clear {
    display: none; 
    position:absolute; 
    right:45px; top:50%; 
    transform:translateY(-50%);
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-inline: var(--spacing-md);
  margin-top: 130px;
  
  @media (max-width: 1055px) {
     margin-top: 84px;
  }
  
  @media (max-width: 500px) {
    margin-top: 122px;
  }
}

.header-menu-mobile {
    display: none;
    height: initial !important;
    
    ul {
        li {
            &::before {
                content: none !important;
            }
        }
    }
    
    .logo-image {
        max-width: 150px;
    }
}

.header-mobile-icons {
    display: none;
}

.header-menu-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    pointer-events: none;
    z-index: 998;
    transition: opacity var(--transition-default) ease;
    
    &.active {
        opacity: 1;
        pointer-events: auto;
    }
}

@keyframes slide-in {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(0%);
    }
}

@keyframes slide-out {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

.header-menu-mobile {
    z-index: 999;
    min-width: 200px;
    padding: var(--spacing-lg);
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    height: 100vh;
    background-color: var(--color-background);
    display: none; /* domyślnie ukryte */
    transform: translateX(-100%); /* start poza widokiem */

    &.open {
        display: block;
        animation: slide-in var(--transition-default) forwards;
    }
    &.closing {
        animation: slide-out var(--transition-default) forwards;
    }

    & > div {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    ul {
        margin-top: 40px;
        padding: 0;
        flex-direction: column;

        a {
            display: block;
        }
    }

    .header-mobile-close {
        all: unset;
        display: flex;
        right: var(--spacing-md);
    }
}

main {
}

/* FOOTER ################################################## */

footer {
  margin-block: var(--spacing-lg);
  padding-inline: var(--spacing-md)  ;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  
  .footer-safety {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    span {
        display: flex;
    align-items: center;
    }
    
    svg {
        height: 18px;
    }
  }
  
  .content-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
  }
  
  img {
      padding-top: var(--spacing-lg);
      max-width: 150px;
      width: 100%;
  }
  
  a {
    text-decoration: underline;
  }
}

@media screen and (max-width: 1055px) {
    .header-menu-desktop { 
        display: none;
    }
    
    .header-mobile-icons {
        display: flex;
    }
}

/* INDEX LAYOUT ###################################### */

body.header-away {
    .index-sidebar .index-sidebar-sticky {
        top: 57px;
    }
}

.index {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}
.index-wrapper {
    position: relative;
    display: flex;
    gap: var(--spacing-lg);
    
    & > * {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-lg);
        min-width: 0;
    }
    
    .index-content {
        flex: 6;
    }
    
    .index-sidebar {
        flex: 3;
        
        &.index-sidebar--first {
            padding-top: 44px;
        }
    }
    
    .index-sidebar-sticky {
        position: sticky;
        top: 127px;
        transition: top 0.25s;
        display: flex;
        flex-direction: column;
        gap: var(--spacing-lg);
    }
    
    @media (max-width: 1055px) {
        flex-direction: column-reverse;
        
        .index-sidebar.index-sidebar--first {
            padding-top: 0;
        }
        
        .list-small {
            display: grid;
            gap: var(--spacing-lg);
            grid-template-columns: repeat(4, 1fr);
            
            .list-small-item {
                padding: 0 !important;
                border-bottom: none !important;
            }
        }
    }
    
    @media (max-width: 1024px) {
        .list-small {
            grid-template-columns: repeat(3, 1fr);
        }
    }
    
    @media (max-width: 768px) {
        .list-small {
            grid-template-columns: repeat(2, 1fr);
        }
    }
    
    @media (max-width: 480px) {
        .list-small {
            grid-template-columns: repeat(1, 1fr);
        }
    }
}

.sidebar-card {
    position: relative;
    background-color: var(--color-post-background);
    border-radius: var(--rounded-md);
    border: 1px solid var(--color-border);
    
    &.sidebar-card--desktop {
        @media (max-width: 1040px) {
            display: none;
        }
    }
    
    &.sidebar-card--no-background {
        background-color: transparent;
        border: none;
    }
}

.sidebar-category-cloud {
    padding: var(--spacing-md) var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    padding-top: 8px;
    height: 93px;
}

.sidebar-popular-searches {
    padding: var(--spacing-lg);
    padding-top: 11px;
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    font-size: 0.75rem;
    
    a {
        transition: color var(--transition-fast);
        color: var(--color-text-secondary);
        
        &:hover {
            color: var(--color-primary);
        }
    }
}

.sidebar-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    margin-top: 55px;
    
    .sidebar-list-item {
        a {
            display: flex;
            gap: var(--spacing-lg);
            align-items: center;
            background-color: var(--color-post-background);
            border: 1px solid var(--color-border);
            border-radius: var(--rounded-md);
            overflow: hidden;
        }
    }
    
    .sidebar-list-thumbnail {
        width: 75px;
        height: 75px;
        
        
        img {
            border-radius: 0;
            height: 75px;
            width: 75px;
            object-fit: cover;
        }
    }
    
    .sidebar-list-title {
        font-size: 0.85rem;
        padding-right: var(--spacing-md);
    }
}

/* LIST SMALL ################################### */

.list-small {
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 120px;
    
    .list-small-item {
        &:not(:last-child) {
            padding-bottom: var(--spacing-md);
            border-bottom: 1px dotted var(--color-border);
        }
        
        &:not(:first-child) {
            padding-top: var(--spacing-md);
        }
        
        a {
            display: flex;
            align-items: center;
            gap: var(--spacing-md);
            
            &:hover {
              color: inherit;
              
                img {
                  opacity: var(--image-hover-opacity);
                }
            }
        }
        
        .list-small-thumbnail {
            height: 50px;
            flex: 1;
            
            img {
                height: 100%;
                width: 100%;
                object-fit: cover;
                border-radius: var(--rounded-sm);
                transition: opacity var(--transition-fast);
            }
        }
    }
}

.list-small-title {
    display: block;
    flex: 2;
    font-size: 0.75rem;
    letter-spacing: 0.25px;
    line-height: 1rem;
    font-weight: 600;
}
        
/* SLIDER ################################## */


.slider {
  .splide__pagination {
    position: initial !important;
    bottom: 0px !important;
  }
  .splide__pagination__page {
      transform: scale(1) !important;
      background-color: #555;
    
      &.is-active {
        background: #aaa !important;
      }
  }
  
  .slider-link {
    position: absolute;
    inset: 0;
    opacity: 0;
  }
}

.slider.small {
  min-height: 100px;
  
  .splide__slide__container {
      display: flex;
      gap: var(--spacing-md);
      position: relative;
      
      &:hover {
        img {
            opacity: var(--image-hover-opacity);
        }
      }
  }
  
  img {
      transition: opacity var(--transition-fast);
      height: 65px;
      width: 100%;
      object-fit: cover;
      margin-bottom: var(--spacing-md);
      border-radius: var(--image-rounded-sm);
  }
  
  .slider-link {
    z-index: 1;
  }
  
  .slider-thumbnail {
      min-width: 100px;
  }
  
  .category-tag {
      font-size: 0.675rem;
      letter-spacing: 0.5px;
      position: relative;
      z-index: 1;
  }

      
  .slider-title {
      line-height: 1rem;
  }
}


  .slider-title {
      margin-top: var(--spacing-sm);
      font-size: 0.75rem;
      letter-spacing: 0.25px;
  }

.slider.big {
  margin-bottom: var(--spacing-xl);
	
  .splide__pagination {
    margin-top: var(--spacing-lg);  
  }
  
  .splide__pagination__page {
    background-color: #444;
    
    &.is-active {
      background-color: #777 !important;
    }
  }
  

  .splide__slide {
    border-radius: var(--rounded-md);
    overflow: hidden;
    padding: var(--spacing-xl);
    
    &:hover {
      .slider-thumbnail img {
        opacity: var(--image-hover-opacity);
      }
    }
  }
  
  .splide__slide__container {
      display: flex;
      gap: var(--spacing-lg);
  }
  
  .slider-link {
    z-index: 1;
  }
  
  .slider-info {
    flex: 1;
  }
  
  .slider-thumbnail {
    flex: 1;
    
    img {
      object-fit: cover;
      transition: opacity var(--transition-fast);
      max-height: 300px;
    }
  }
  
  .slider-thumbnail-background {
    position: absolute;
    inset: 0;
    opacity: 0.2;
    z-index: -1;
    
    img {
      filter: blur(20px);
      scale: 1.2;
    }
  }
  
  .slider-title {
      margin-top: var(--spacing-sm);
      font-size: 2rem;
      letter-spacing: 0.25px;
  }
  
  .slider-excerpt {
    margin-top: var(--spacing-lg);
    line-height: 1.5rem;
  }
  
   @media (max-width: 850px) {
    .splide__slide__container {
      flex-direction: column;
    }
  }
}

.slider.sidebar {
    transition: outline var(--transition-fast), background-color var(--transition-fast);
    outline-color: var(--color-border) !important;
    outline-offset: 0px;
    border-radius: var(--rounded-md);
    overflow: hidden;
    outline: 0px solid transparent;
    
    &:hover {
        outline: var(--outline);
        
        .splide__slide.is-active {
            .slider-thumbnail {
                &:before, &:after {
                  opacity: 0.95;  
                }
                
                img {
                    scale: 1.05;
                }
            }
        }
        
    }
    
    .section-header {
        color: var(--color-text-white);
        padding: var(--spacing-md) var(--spacing-lg);
        position: absolute;
        z-index: 2;
        pointer-events: none;
    }
    
    
    
    .splide__slide {
        height: 484px;
        display: flex;
        align-items: flex-end;
        overflow: hidden;
    }
    
    .splide__pagination {
        position: absolute !important;
        bottom: 10px !important; 
    }
    
    .splide__slide__container {
        height: 100%;
    }
    
    .slider-thumbnail {
        height: 100%;
        
        img {
            position: absolute;
            inset: 0;
            z-index: 0;
            height: 100%;
            width: 100%;
            object-fit: cover;
            transition: scale 0.5s;
        }
        
        &:before, &:after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(to top, var(--color-post-background-static) 20%,  #0000 60%, var(--color-post-background-static));
            z-index: 1;
            transition: opacity var(--transition-fast);
        }
        
        &:after {
            background: linear-gradient(to right, var(--color-post-background-static),  #0000, #0000, var(--color-post-background-static));
            
        }
    }
    
    .slider-link {
        z-index: 4;
    }

    .slider-info {
        color: var(--color-text-white);
        box-sizing: border-box;
        position: relative;
        z-index: 2;
        padding: var(--spacing-lg);
        padding-top: 50px;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }
    
    .slider-title {
        font-size: 1rem;
        margin-bottom: var(--spacing-lg);
        margin-top: var(--spacing-md);
    }
    
    .slider-excerpt {
        font-size: 0.8rem !important;
        line-height: 1.25rem !important;
        margin-bottom: var(--spacing-xl);
    }
}
.slider.fullwidth {
  --slider-fw-height: 700px;
  position: relative;
  height: var(--slider-fw-height);
  overflow: hidden;
  
  @media (max-width: 600px) {
    --slider-fw-height: 600px;
  }
  
  .splide__slide {
    height: var(--slider-fw-height);
    position: relative;
  }
  
  .slider-gradient {
    &:before, &:after {
      content: '';
      position: absolute;
      inset: 0;
      z-index: 1;
      pointer-events: none;
    }
    
    &:before {
      background: linear-gradient(var(--color-background), #0000 20%, var(--color-background));
      
      @media (max-width: 600px) {
        height: 70%;
      }
      
    }
    
    &:after {
      background: linear-gradient(to left, var(--color-background), #0000, var(--color-background));
    }
  
  }
  
  .splide__slide__container {
    height: var(--slider-fw-height);
  }
  
  .slider-link {
    z-index: 2;
  }
  
  .slider-thumbnail {
    height: 100%;
    
    @media (max-width: 600px) {
        height: 70%;
    }
    
    overflow: hidden;
    img {
        height: 100%;
        object-fit: cover;
    }
  }
  
  .slider-info {
    max-width: calc(100vw - var(--spacing-xl));
    width: var(--content-width);
    position: absolute;
    left: 0;
    right: 0;
    bottom: 15%;
    z-index: 1;
    margin: auto;
    
    .category-tag {
      font-size: 1rem;
      
      @media (max-width: 600px) {
        font-size: 0.75rem;
      }
    }
    
    .slider-title {
      font-size: 3rem;
      margin-bottom: var(--spacing-lg);
      
      @media (max-width: 600px) {
        font-size: 1.5rem;
      }
    }
    
    .slider-excerpt {
        line-height: 1.5rem;
    }
  }
}

.overlay-gradient {
    &:before {
        content: '';
        pointer-events: none;
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 85%;
        background: linear-gradient(#0000, #000);
        transition: opacity var(--transition-fast);
    }
}

/* GRID ################################## */
.post-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-xl);
  margin: 0 auto;

  .post {
    position: relative;
    display: flex;
    flex-direction: column;
    
    &:not(.post-featured) {
        img {
        transition: opacity var(--transition-fast);
    }
    
        &:hover {
            img {
                opacity: var(--image-hover-opacity);
            }
        }
    }

    &.post-featured {
        grid-column: span 2;
        
        &:hover {
            .overlay-gradient::before {
                opacity: var(--image-hover-opacity);
            }
        }
        
        @media (max-width: 480px) {
            grid-column: span 1;
            
            .post-excerpt {
                display: none;
            }
            
            .overlay-gradient::before {
                display: none;
            }
        }
        
        @media (min-width: 481px) {
            .post-link {
                z-index: 2;
            }
 
            
        
            
            .post-info {
                position: absolute;
                z-index: 1;
                bottom: 0;
                color: var(--color-text);
                padding: var(--spacing-lg);
                
                .category-tag {
                    color: var(--color-text);
                    position: relative;
                }
                
                .post-title {
                    font-size: 1.5rem;
                    letter-spacing: 0.75px;
                    line-height: 1.75rem;
                }
                
                .post-excerpt {
                    margin-top: var(--spacing-sm);
                    line-height: 1.25rem;
                    font-size: 0.85rem;
                }
            }
            
            .post-thumbnail {
                position: relative;
                overflow: hidden;
                
                img {
                    height: 264px;
                }
            }
        }
    }
    
    .post-link {
        position: absolute;
        inset: 0;
        opacity: 0;
        z-index: 1;
    }

    .post-thumbnail {
      background-color: var(--color-background);
      border-radius: var(--rounded-md);
      overflow: hidden;
      -webkit-mask-image: radial-gradient(circle, white 100%, black 100%);
      
      img {
        width: 100%;
        height: 150px;
        object-fit: cover;
        display: block;
      }
    }

    .post-info {
      flex-grow: 1;
      display: flex;
      flex-direction: column;
      margin-top: var(--spacing-md);

      .post-category {
        position: relative;
        z-index: 1;
        pointer-events: none;
        margin-bottom: var(--spacing-sm);
        
        a {
            pointer-events: all;
        }
      }
      
      .post-title {
        margin-top: var(--spacing-sm);
        line-height: 1.3rem;
        font-size: 1rem;
      }
    }
  }

  @media (max-width: 1024px) {
    grid-template-columns: repeat(3, 1fr);
  }

  @media (max-width: 768px) {
    grid-template-columns: repeat(2, 1fr);
  }

  @media (max-width: 480px) {
    grid-template-columns: 1fr;
  }
}

/* WSZYSTKO INNE ################################## */
.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}
.category-tag {
    color: var(--color-text-secondary);
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.6rem;
    letter-spacing: 0.5px;
    
    a {
        display: inline-block;
        background-color: var(--category-tag-background);
        padding: var(--spacing-sm) var(--spacing-md);
        border-radius: 999px;
        
        &:hover {
            color: var(--color-text-secondary-hover);
        }
    }
}

.section-header {
    margin-top: 0; 
    top: 0;
    
    position: relative;
    display: inline-block;
    font-weight: 500;
    font-size: 1.5rem;
    
    &.sidebar-card-header {
        padding-top: var(--spacing-md);
        padding-left: var(--spacing-lg);
        padding-bottom: var(--spacing-sm);
        z-index: 1;
        
        &.sidebar-card-header--absolute {
            position: absolute;
        }
        
        &.sidebar-card-header--small {
            font-size: 1rem;
        }
    }
}

.section-header-hr {
  margin-top: 0;
  opacity: 0;
}

/* SEARCH ######################################## */

.search-overlay {
  display: none;
  opacity: 0;
  transition: opacity var(--transition-default) ease;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: flex-start;
  z-index: 1500;
  pointer-events: none;
}

.search-overlay.active {
  display: flex !important;
  opacity: 1;
  pointer-events: auto;
}

.search-overlay.closing {
  opacity: 0;
  pointer-events: none;
}

.search-overlay-content {
  display: flex;
  background-color: var(--color-background);
  padding: var(--spacing-md);
  border-radius: 999px;
  max-width: 400px;
  position: relative;
  top: 90px;
  margin-inline: var(--spacing-lg);
  max-width: 100vw;
  overflow: hidden;
}

.search-overlay-content form {
  display: flex;
  gap: 0.5rem;
}

.search-overlay-content input[type="search"] {
  width: 100%;
  font-size: 1.25rem;
  padding: var(--spacing-md) var(--spacing-lg);
  border: 1px solid var(--color-border);
  border-radius: 999px;
}

.search-overlay-content button[type="submit"] {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-primary, #000);
}

.search-overlay-close {
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-primary, #000);
  cursor: pointer;
}

/* SEARCH RESULTS ############################################################################# */

.archive-page-title {
    margin-block: var(--spacing-xl);
    span {
        color: var(--color-text-secondary);
    }
}

.post-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
    
    .post {
        position: relative;
        display: flex;
        border: 1px solid var(--color-border);
        border-radius: var(--rounded-md);
        background-color: var(--color-post-background);
        overflow: hidden;
        outline: 0px solid transparent;
        transition: outline var(--transition-fast), background-color var(--transition-fast);
        outline-offset: -1px;
        
        
        &:hover {
            background-color: var(--color-post-background-hover);
            outline-color: var(--color-border) !important;
            outline: var(--outline);
        }
     
    }
    
    .post-link {
        position: absolute;
        inset: 0;
        opacity: 0;
    }
    
    .post-thumbnail {
        overflow: hidden;
        width: 150px;
        min-width: 150px;
        min-height: 150px;
        max-height: 150px;
        height: 100%;
        aspect-ratio: 1/1;
        
        img {
            object-fit: cover;
            transition: opacity var(--transition-fast), scale var(--transition-default);
            pointer-events: none;
            border-radius: 0;
            height: 100%;
            width: 100%;
        }
        
    }
    
    .post-info {
        padding: var(--spacing-lg);
    }
    
    .post-excerpt {
        font-size: 0.8rem;
            line-height: 1.25rem;
    }
    
    .category-tags {
        display: inline-flex;
        position: relative;
      margin-bottom: var(--spacing-md);
    }
    
    .post-title {
        margin-bottom: var(--spacing-md);
        font-size: 1rem;
    }
    
    @media (max-width: 1200px) {
        .post-title {
            font-size: 1rem !important;
        }
        
    }
    
    @media (max-width: 900px) {
        grid-template-columns: repeat(1, 1fr);
        
        .post {
            max-height: unset;
        
            .post-thumbnail {
                height: 100%;
                max-height: unset;
                
                img {
                    border-radius: 0;
                    height: 100%;
                }
            }
        }
    }
    
    &.post-list--single {
        grid-template-columns: repeat(1, 1fr);
    }
}

.post-list-archive {
    grid-template-columns: repeat(3, 1fr);
    .post {
        flex-direction: column;
    }
    
    @media (max-width: 950px) {
        grid-template-columns: repeat(2, 1fr);
    }
    
    @media (max-width: 600px) {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .post-thumbnail {
        width: 100%;
        height: 180px !important;
        max-height: 180px !important;
    }
}

/* SINGLE POST ################################### */

.post-content, .privacy-policy {
    h1, h2, h3, h4, h5 {
      scroll-margin-block: 100px;
      margin-top: calc(2 * var(--spacing-lg));
      margin-bottom: var(--spacing-lg);
  }
  
  font-size: 1rem;
  line-height: 1.75rem;
  
  h2 {
    line-height: 1.75rem;
  }
  
  a {
    text-decoration: underline;
  }
}

.wp-singular {
    .post-meta {
        display: flex;
        gap: var(--spacing-sm);
        align-items: center;
        
        .category-tag:not(.post-category) {
            font-size: 0.75rem;
        }
        
        .post-author-photo {
            border-radius: 999px;
            height: 40px;
            width: 40px;
            overflow: hidden;
            margin-right: var(--spacing-sm);
            img {
                width: 100%;
                height: 100%;
            }
        }
    }
    
    .category-tags {
        display: inline-flex;
    }
}

body.wp-singular .post-thumbnail {
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    z-index: -1;
    
    &:before, &:after {
        content: '';
        position: absolute;
        inset: 0;
    }
    
    &:before {
        background: linear-gradient(to left, #000c, #0000, #000c);
    }
 
    &:after {
        background: linear-gradient(#0000 , var(--color-background));
    }
    
    img {
        aspect-ratio: 16/9;
        object-fit: cover;
        width: 100%;
        height: 450px;
        border-radius: 0 !important;
    }
}

.single-post-container {
    display: flex;
    gap: var(--spacing-xl);
    
    .main-content {
        flex: 4;
        
        .post {
            position: relative;
            
            & > * {
                margin-bottom: var(--spacing-lg);
            }
            
            .category-tags {
                padding-top: 120px;
                
                &.has-thumbnail {
                    padding-top: 300px;
                    
                    @media (max-width: 600px) {
                        padding-top: 350px;
                    }
                }
            }
            .post-title {
                font-size: 2.5rem;
                
                @media (max-width: 600px) {
                    font-size: 2rem;
                }
                
                
            }
            .post-meta {
                 margin-bottom: var(--spacing-xl);
                
                .post-date, .post-categories {
                    position: relative;
                    padding-left: var(--spacing-md);
                    margin-left: 2px;
                    
                    &:before {
                        content: "";
                        position: absolute;
                        left: 0px;
                        top: 50%;
                        width: 3px;
                        height: 3px;
                        background-color: var(--color-text-secondary);
                        transform: translateY(-50%);
                        border-radius: 50px;
                    }
                
                }
            }
            
            .post-content {
                
                h1:first-of-type {
                    display: none;
                }
                a {
                    color: var(--color-link);
                    transition: color var(--transition-fast);
                    
                    &:hover {
                        color: var(--color-link-hover);
                    }
                }
            }
        }
    }
    
    .single-sidebar {
        flex: 1;
        margin-bottom: var(--spacing-lg);
        
        .sidebar-posts {
            @media (max-width: 1024px) {
                display: grid;
                grid-template-columns: repeat(3, 1fr);
                gap: var(--spacing-md);
                
                .sidebar-post-item {
                    border-bottom: none !important;
                }
                
                .sidebar-post-item--big {
                    padding-top: 0;
                    
                    .overlay-gradient::before {
                        display: none;
                    }
                }
            }
            
            @media (max-width: 800px) {
                grid-template-columns: repeat(2, 1fr);
            }
            
            @media (max-width: 500px) {
                grid-template-columns: repeat(1, 1fr);
            }
        }
        
        .sidebar-post-item {
            position: relative;
            
            &:not(.sidebar-post-item--big) {
              &:hover {
                .sidebar-post-thumbnail img {
                  opacity: var(--image-hover-opacity);
                }
              }
            }
            
            a {
                display: flex;
                align-items: center;
                gap: var(--spacing-lg);
                
                &:hover {
                    color: inherit;
                }
                
                .sidebar-post-thumbnail {
                    flex: 1;
                    
                    img {
                        height: 50px;
                        width: 100%;
                        object-fit: cover;
                        border-radius: var(--rounded-sm);
                        transition: opacity var(--transition-fast);;
                    }
                }
                
                .sidebar-post-title {
                    flex: 2;
                    line-height: 1rem;
                }
            }
            
              &.sidebar-post-item--big {
                    @media (min-width: 1024px) {
                        &:hover {
                        .overlay-gradient::before {
                          opacity: var(--image-hover-opacity);
                        }
                    }
                    
                    .sidebar-post-thumbnail {
                        position: relative;
                        border-radius: var(--rounded-md);
                        overflow: hidden;
                        margin-bottom: var(--spacing-sm);
                        
                        
                        
                        img {
                            height: 155px;
                        }
                    }
                    
                    .sidebar-post-title {
                        position: absolute;
                        bottom: 0;
                        padding: var(--spacing-xl) var(--spacing-lg);
                        color: var(--color-text-inverted);
                        font-size: 1rem;
                        transition: color var(--transition-fast);
                        line-height: 1.25rem;
                        letter-spacing: 0.75px;
                    }
                    
                    .category-tag {
                        display: inline-block;
                        color: var(--color-text-inverted-hover);
                        margin-bottom: var(--spacing-sm);
                    }
                    }
                }
        }
        
        h3 {
            margin-bottom: var(--spacing-lg);
        }
        
        ul {
            display: flex;
            flex-direction: column;
        }
        
        li {
            padding-top: var(--spacing-md);
            
            &:not(:last-child) {
                border-bottom: 1px dotted var(--color-border);
                padding-bottom: var(--spacing-sm);
            }
            
            &:first-child {
              padding-top: 0;
            }
            
        }
        
    }
    
    .related-posts-section {
        margin-top: var(--spacing-xl);
        margin-bottom: var(--spacing-lg);
        
        h2 {
            margin-bottom: var(--spacing-lg);
        }
    }
    
    hr {
        margin-top: var(--spacing-xl);
    }
    .related-posts {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-lg);
        
        .related-post {
            position: relative;
            background-color: var(--color-post-background);
            border-radius: var(--rounded-md);
            border: 1px solid var(--color-border);
            overflow: hidden;
            
            &:hover {
                a {
                    color: var(--color-text) !important;
                }
                
                .related-post-thumbnail img {
                    opacity: var(--image-hover-opacity);
                }
            }
            
            .category-tags {
                margin-bottom: var(--spacing-md);
                z-index: 2;
                position: relative;
        
                a {
                    position: relative;
                    z-index: 2;
                    
                    &:empty {
                        display: none;
                    }
                    
                }
            }
        }
        
        .related-post-info {
            padding-inline: var(--spacing-lg);
        }
        
        .related-post-link {
            position: absolute;
            z-index: 1;
            inset: 0;
            opacity: 0;
        }
        .related-post-thumbnail {
            width: 100%;
            height: 150px;
            overflow: hidden;
            margin-bottom: var(--spacing-lg);
        }

        .related-post-thumbnail img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            aspect-ratio: 16 / 9;
            transition: opacity var(--transition-fast);
            border-radius: 0;
        }
        
        .related-post-title {
            display: block;
            margin-bottom: var(--spacing-lg);
            font-weight: 600;
            letter-spacing: 0.5px;
            line-height: 1.4rem;
        }
        
        .related-post-excerpt {
          line-height: 1.25rem;
        }
    }
    
    @media (max-width: 1024px) {
        flex-direction: column;
    }
    
    @media (max-width: 800px) {
        .related-posts {
            grid-template-columns: repeat(2, 1fr);
        }
    }
    
    @media (max-width: 500px) {
        .related-posts {
            grid-template-columns: repeat(1, 1fr);
        }
    }
}

/* SPIS TREŚCI ############################################# */

.toc-container {
  margin-top: var(--spacing-xl);
  border: 1px solid var(--color-border);
  border-radius: 26px;
  transition: background-color var(--transition-default);
  
  
  &:has(input:checked) {
    background-color: var(--color-post-background);
  }
  
}
.toc-checkbox { display: none; }
.toc-toggle-label {
    position: relative;
    top: 1px;
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
  padding: 10px var(--spacing-xl);
  padding-bottom: 8px;
  font-weight: 400;
  cursor: pointer;
  user-select: none;
  transition: color var(--transition-fast);
  
  &:hover {
    color: var(--color-text-hover);
    .toc-icon {
      color: var(--color-text-hover);
    }
  }
}

.toc-icon {
    display: flex;
    order: -1;
    width: 18px;
  transition: color var(--transition-fast);
}

.toc-list {
  interpolate-size: allow-keywords;
  height: 0;
  overflow: hidden;
  transition: height var(--transition-default);
  border-top: none;
  padding-inline: var(--spacing-lg);
  padding-bottom: var(--spacing-sm);
  
}
.toc-checkbox:checked ~ .toc-list {
    height: auto;
}
.toc-list ul { list-style: none; margin: 0; padding: 0; }
.toc-list li { margin: 6px 0; }
.toc-list li.toc-level-3 { margin-left: 20px; font-size: 0.9em; }
.toc-list li a { color: #0073aa; text-decoration: none; }

/* PAGINATION PAGINACJA ############################################# */

.pagination {
    margin-top: 25px;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    
    @media (max-width: 450px) {
      .page-numbers.prev, .page-numbers.next {
        display: none !important;
      }
    }
    
    .page-numbers.dots {
        position: relative;
        top: 3px;
    }
    
    .nav-links {
      display: flex;
      flex-wrap: wrap;
      gap: var(--spacing-sm);
        
        .page-numbers:not(.dots) {
            box-sizing: border-box;
            display: inline-grid;
            place-content: center;
            min-height: 30px;
            min-width: 30px;
            border: 1px solid var(--color-border);
            padding-inline: var(--spacing-md);
            border-radius: 999px;
            font-weight: 600;
            font-size: 12px;
            transition: background-color var(--transition-fast);
            
            &:hover {
                color: var(--color-text-inverted);
                background-color: var(--color-primary-transparent);
            }
            
            &.current {
                border: none;
                background-color: var(--color-primary);
                color: var(--color-text-inverted);
            }
        }
        
    }
    
}
