:root {
  --font-sans: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --blue: #5271FF;
  --black: #000000;
  --white: #FFFFFF;
  --light-gray: #F9F9F9;
  --gray: #666666;
  --header-footer-color: #f5f7fe;
}

html                                  { font-family: var(--font-sans); background: var(--light-gray); }
button, input, select, textarea       { font: inherit; }
body                                  { margin: 20px; padding: 0; box-sizing: border-box; color: var(--black); display: flex; flex-direction: column; min-height: 100vh; }
main                                   { flex: 1; }
a                                     { text-decoration: none; color: inherit; }
a:hover                               { text-decoration: underline; }

.article-categories * a:hover, .entry-meta, blockquote *, q, ul li::marker, ol li::marker, 
footer.entry-footer                   { color: var(--blue); }
.entry-cat a                          { color: var(--white); }

blockquote *, q                       { color: var(--gray); }

.container                            { display: flex; flex-direction: column; width: 100%; max-width: 1280px; margin: 0 auto; box-sizing: border-box; }
.empty-results                        { text-align: center; }
aside                                 { max-width: 560px; }
aside section ul                      { list-style: none; padding: 10px; }
aside section > ul > li               { margin-bottom: 25px; }

.widget-newest                        { padding: 10px; }
.widget-newest h2                     { font-size: 18px; font-weight: 700; margin: 0 0 15px; padding-bottom: 10px; border-bottom: 1px solid var(--light-gray); }
.widget-newest ul                     { list-style: none; margin: 0; padding: 0; }
.widget-newest li                     { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 20px; }
.widget-newest li:last-child          { margin-bottom: 0; }
.widget-newest li > a                 { flex-shrink: 0; }
.widget-newest li > a img             { width: 70px; height: 70px; object-fit: cover; border-radius: 6px; display: block; }
.widget-newest li > div               { min-width: 0; }
.widget-newest li a                   { font-size: 14px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; }
.widget-newest .post-time             { font-size: 12px; color: var(--gray); margin-top: 4px; }

.flat                                 { display: flex; list-style: none; padding: 0; margin: 0; gap: 0.5em; }
.flat li                              { display: flex; align-items: center; }
.flat a                               { text-decoration: none; }

.site-header                          { background: var(--header-footer-color); }
.header-menu                          { display: flex; width: 100%; gap: 10px; align-items: center; z-index: 10; }
.page-header                          { align-items: left; margin-left: 8px; }

header.container.list                 { flex-direction: column; }
header.container.list .breadcrumb     { margin: 0; }

.site-logo                            { margin-right: auto; }
.site-logo img                        { max-width: 100%; max-height: 80px; width: auto; height: auto; }
.fa-search, label[for="menu-toggle"]  { cursor: pointer; display: flex; align-items: center; justify-content: center; height: 100%; aspect-ratio: 1; font-size: 64px;}
label[for="menu-toggle"]              { font-size: 64px;}

.site-menu                            { display: flex; gap: 0px; align-items: center;}

.header-menu .fa-search               { width: 44px; height: 44px; aspect-ratio: auto; padding: 0;
                                        border: 1px solid #DDE1EC; border-radius: 50%; background-color: var(--white);
                                        color: #26334D; font-size: 18px; transition: color .2s ease, border-color .2s ease; }
.header-menu .fa-search:hover         { border-color: var(--blue); color: var(--blue); }

@media (min-width: 720px) {
  .site-logo                          { margin-right: 40px; }
  .site-menu                          { flex: 1; }
    .site-menu .menu                    { order: 0; margin: 0 auto; }
  .header-menu .fa-search             { order: 1; }
}

@media (max-width: 719px) {
  label[for="menu-toggle"]            { width: 44px; height: 44px; aspect-ratio: auto; font-size: 26px; color: var(--white); }
    body                                { margin: 10px; }
  .single-article                     { padding: 12px; }
}

#search-toggle                        { display: none; }  
.site-search a, .site-search input, .site-search label, .site-search button
                                      { display: inline-block; padding: 0.5rem 1rem; box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.5); border-radius: 99px; }
.site-search form[role="search"]      { position: relative; display: flex; align-items: center; justify-content: center; max-width: 1000px; width: 90%; }
.site-search input                    { flex: 1; min-width: 330px; border: none; color: var(--black); outline: none; transition: background 0.2s ease; font-size: 1.5em; 
                                        background: var(--white); border-radius: 99px 0 0 99px;}
.site-search input::placeholder       { color: var(--gray); }
.site-search button                   { color: var(--gray); border: none; display: flex; align-items: center; background: var(--white); 
                                        justify-content: center; cursor: pointer; transition: background 0.2s ease; border-radius: 0 99px 99px 0; padding-left: 0; font-size: 1.5em;}
.site-search button:hover             { color: var(--blue); }
.site-search > div                    { margin-top: 2rem; text-align: center; }
.site-search > div ul                 { list-style: none; padding: 0; margin: 0; display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem 1.5rem; }
.site-search > div ul li              { margin: 0; }
.site-search > div ul li a            { color: var(--black); background-color: var(--white); text-decoration: none; transition: color 0.2s ease; }
.site-search > div ul li a:hover      { color: var(--blue); }
.site-search > label                  { position: absolute; top: 2rem; right: 2rem; cursor: pointer; padding: 0;}
.site-search                          { position: fixed; inset: 0; z-index: 20; display: flex; flex-direction: column; justify-content: center; align-items: center; 
                                        background: var(--blue); transform: translateX(100%); transition: transform 0.6s ease, opacity 0.6s ease; opacity: 0; }
.site-search:has(#search-toggle:checked) { transform: translateX(0); opacity: 0.96; }
.site-search > label[for="search-toggle"]{ font-size: 40px; font-weight: 200; cursor: pointer; background-color: var(--white);
                                        width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }

nav ul.menu                           { display: flex; gap: 0px; }

[class^="cat-slug-"]                  { background-color: #359adb; color: var(--white) }
.cat-slug-domowe-porady               { background-color: #5271ff; }
.cat-slug-modne-materialy             { background-color: #3540db; }
[class^="cat-slug-aranzacja"]         { background-color: #5f35db; }
.cat-slug-dekoracje-i-diy             { background-color: #f76819; }
.cat-slug-poradnik-zakupowy           { background-color: #57a16c; }

nav[aria-label="breadcrumb"]          { margin-top: 15px; margin-bottom: 15px; }
.breadcrumb                           { font-size:14px; background-color: var(--light-gray); padding-left: 0.5em}
.breadcrumb li:not(:first-child)      { color: var(--black); }
.breadcrumb li + li::before           { content: ">"; margin: 0 0.5em; }

.post-time, .comments                 { display: inline-block; margin-right: 1em; }
.reading-time                         { display: inline-block; flex-wrap: nowrap; align-items: center; }
.reading-time::before                 { content: ""; display: inline-flex; width: 1.2em; height: 1.2em; margin-right: 0.3em; background: currentColor; mask: url("/img/clock-02f747110bab4207aa06d97f00c2d9b9.svg") no-repeat center; vertical-align: middle; }
.reading-time::after                  { content: ""; }
.article, .single-article             { container-type: inline-size; }

@container (min-width: 360px) { 
  .reading-time::after                { content: " czytania"; }
}

.post-time::before, .comments::before { font-family: "Font Awesome 6 Free"; padding-left: 0; padding-right: 0.3em; }
.post-time::before                    { content: "\f133"; }
.comments::before                     { content: "\f075"; }

.main-content                         { display: grid; grid-template-columns: 1fr; gap: 30px;  padding: 8px 8px;}

.image                                { width: 100% ; margin: 0 auto; padding: 15px 0; box-sizing: border-box;}
h1                                    { font-size: 25px; font-weight: 700; }
h2                                    { font-size: 24px; font-weight: 700; }
h3                                    { font-size: 18px; font-weight: 600; } 
.single-article                       { background: var(--white); padding: 20px; }
.single-article img, aside img        { width: 100%; height: auto; border-radius: 12px; }
.single-article img                   { width: 100%; height: 100%; object-fit: cover; display: block; border-top-left-radius: 6px; border-top-right-radius: 6px; font-size: 16em; }
.single-article .entry-title          { color: inherit; margin-top: 0; font-size: 30px; line-height: 1.3; }
.article-tags ul                      { font-size: 16px; list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 16px; }
.article-tags ul li::before           { content: "#"; }

.entry-cat                            { font-size: 12px; font-weight: 600; margin-top: 10px; }
.entry-cat ul                         { list-style: none; padding: 0; margin: 0; }
.entry-cat a                          { padding: 5px 10px; display: inline-block; margin-right: 5px; }

.entry-cat .sponsored-mark            { padding: 5px 10px; display: inline-block; background-color: #359adb; color: var(--white); }
.single-article .entry-header         { --title-gap: 10px; }
.single-article .entry-header .entry-cat { margin-bottom: var(--title-gap); }
.single-article .entry-header .entry-title { margin-bottom: var(--title-gap); }
.entry-title                          { font-size: 16px; font-weight: 500; } 
.entry-meta                           { font-size: 14px; color: var(--gray); display: inline-flex; white-space: nowrap; }
.entry-meta *                         { text-overflow: ellipsis; overflow: hidden; }
.article .entry-meta                  { display: flex; align-items: center; }
.article .entry-meta .meta-left       { display: flex; align-items: center; flex-shrink: 0; }
.article .entry-meta .reading-time    { margin-left: 1em; }
.article .entry-meta .comments        { flex: 1; text-align: center; margin: 0; }

.entry-content                        { font-size: 16px; line-height: 1.5; }
.entry-content a                      { color: var(--blue); }
.entry-content p.lead                 { font-size: 16px; font-weight: 400; line-height: 1.5; }
.single-article .entry-content p.lead { color: var(--black); }
.entry-content q
.entry-content blockquote             { font-size: 16; font-weight: 400; }
.related-articles                     { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
.related-articles > div               { grid-column: 1 / -1; }
.related-articles article             { min-width: 0; }
.related-articles .article-thumbnail img { width: 100%; height: 100%; display: block; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; }

.related-articles article:nth-of-type(2n+1):nth-last-of-type(1) { display: none; }

@media (min-width: 831px) {
.related-articles                     { grid-template-columns: repeat(3, 1fr); }
.related-articles article:nth-of-type(2n+1):nth-last-of-type(1) { display: block; }
.related-articles article:nth-of-type(3n+1):nth-last-of-type(1),
.related-articles article:nth-of-type(3n+1):nth-last-of-type(2),
.related-articles article:nth-of-type(3n+2):nth-last-of-type(1) { display: none; }
}

.related-articles h3                  { font-size: 24px; font-weight: 700; }

.related-articles h3                  { display: -webkit-box; -webkit-box-orient: vertical;  line-clamp: 2; -webkit-line-clamp: 2; overflow: hidden; text-overflow: ellipsis; }

.related-articles > div > h3          { color: var(--black); }
.related-articles article h3          { color: var(--blue); }
.related-articles .entry-lead p       { font-size: 14px; color: var(--gray); margin: 0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

.main-header                          { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 0 8px; box-sizing: border-box; }
.main-header h2                       { margin: 0; }

.main section label input             { display: none; }
.main section:nth-child(3n + 1)       { background-color: var(--black); color: var(--white); }
.main section:nth-child(3n + 2)       { background-color: var(--light-gray); color: var(--black); }
.main section:nth-child(3n + 3)       { background-color: var(--white); color: var(--black); }

.article                              { display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 1/1; border-radius: 6px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.article:hover                        { transform: translateY(-4px); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15); }
.article>div                          { height: 58%; overflow: hidden; }
.article img                          { width: 100%; height: 100%; object-fit: cover; display: block; border-top-left-radius: 6px; border-top-right-radius: 6px; }
.article .entry-header                { flex: 1; display: flex; flex-direction: column; justify-content: space-between; padding: 10px 15px; box-sizing: border-box; }
.article .entry-title                 { margin: 8px 0; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; }

.main section:not(:nth-child(3n + 2)) .article         { position: relative; aspect-ratio: 1/1; border-radius: 6px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.main section:not(:nth-child(3n + 2)) .article img     { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 6px; }
.main section:not(:nth-child(3n + 2)) .article::after  { content: ""; position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(0,0,0,0) 50%, rgba(0,0,0,0.8) 100%); pointer-events: none; }
.main section:not(:nth-child(3n + 2)) .entry-header    { position: absolute; bottom: 0; left: 0; width: 100%; padding: 10px 15px; box-sizing: border-box; display: flex; flex-direction: column; justify-content: flex-end; z-index: 2; color: var(--white); }
.main section:not(:nth-child(3n + 2)) .entry-title     { color: var(--white) } 
.main section:not(:nth-child(3n + 2)) .entry-meta      { display: inline-block; margin-right: 8px; }
.main section:not(:nth-child(3n + 2)) .entry-meta      { color: var(--light-gray); }
.main section:nth-child(3n + 1) .article:nth-child(3) .entry-lead { display: none; }

.main section.section-featured          { background-color: transparent; color: var(--black); }
.main section.section-featured .article { aspect-ratio: 4 / 3; }

@media (max-width: 529px) {
  .main section.section-featured .article:nth-child(3) { order: -1; aspect-ratio: 2 / 3; }
}

.site-footer                          { font-size: 14px; display: flex; flex-direction: column; margin: 40px auto 12px;
                                        background: var(--header-footer-color); padding: 20px; }

.footer-menu                          { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 40px; box-sizing: border-box; padding: 0 10px; }
.footer-menu a img                    { max-height: 40px; height: auto; width: auto; }
.footer-menu ul                       { margin: 0; padding-left: 1.1em; }
.footer-menu ul li                    { margin: 0 0 4px; break-inside: avoid; }
.footer-brand                         { grid-column: 1 / -1; }
.footer-menu .footer-rights           { padding: 0; }

.pagination                           { display: flex; justify-content: center; align-items: center; margin: 30px 0; user-select: none; }
.pagination ul                        { list-style: none; padding: 0; margin: 0; display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
.pagination li                        { min-width: 40px; height: 40px; }
.pagination li *  { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 0 8px; 
                                        text-decoration: none; font-weight: 500; transition: all 0.25s ease; border: 1px solid transparent; font-size: 14px;
                                        border-bottom-left-radius: 20px; border-top-left-radius: 20px; }
.pagination li:last-child *, .pagination li:nth-last-child(4) * { border-radius: 20px; }                                        
.pagination li a                      { color: var(--gray); background-color: var(--light-gray); border: 1px solid #dee2e6; }
.pagination li a:hover                { background-color: #e9ecef; color: var(--blue); border-color: #ced4da; transform: translateY(-1px); box-shadow: 0 2px 4px rgba(0,0,0,.1); }
.pagination li.active span            { background: var(--blue); color: var(--white); font-weight: 600; box-shadow: 0 3px 8px rgba(82,113,255,.3); cursor: default; }
.pagination li.prev a:hover, .pagination li a[title="następna strona"]:hover 
                                      { background-color: #e9ecef; border-color: var(--blue); color: var(--blue); }
.pagination li span:not(.active span) { color: #adb5bd; font-weight: normal; cursor: default; }
.pagination li a:focus                { outline: 2px solid var(--blue); outline-offset: 2px; }

@media (min-width: 831px) {
.footer-menu                          { display: flex; justify-content: flex-start; width: 100%; align-items: start; }
.footer-brand                         { margin-right: 10px; }
.footer-contact                       { margin-left: auto; }
.footer-legal                         { margin-left: 40px; }

.main-content                         { grid-template-columns: repeat(3, 1fr); }
.container:has(aside)                 { flex-direction: row; }
main                                  { flex: 1;  margin-bottom: 0; }
aside                                 { width: 320px; position: sticky; top: 0; align-self: flex-start; max-height: 100vh; overflow-y: auto; }
.main section:nth-child(3n + 1) .article:nth-child(3)               { grid-column: 2 / span 2; grid-row: 1 / span 2; }
.main section.section-featured .main-content                        { grid-auto-rows: 1fr; }
.main section.section-featured .article:not(:nth-child(3))          { aspect-ratio: auto; }
}

@media (min-width: 530px) and (max-width: 830px) {
.main-content                         { grid-template-columns: repeat(2, 1fr); }
.main section:nth-child(3n + 1) .article:nth-child(3)               { grid-row: 1 / span 2; grid-column: 1 / span 2; }
}

@media (min-width: 530px) {
.main section:nth-child(3n + 1) .article:nth-child(3) .entry-title  { font-size: 35px; font-weight: 700;}
.main section:nth-child(3n + 1) .article:nth-child(3) .entry-lead   { display: block; font-size: 15px; font-weight: 400; }

}

@media (min-width: 361px) {
h1                                    { font-size: 40px; }
h3                                    { font-size: 20px; }
.entry-title                          { font-size: 18px; font-weight: 600; }

.single-article .entry-content, .article-tags ul ----{ font-size: 18px; }
.single-article .entry-content p.lead { font-size: 18px; font-weight: 500;}
.single-article .entry-content q
.single-article .entry-content blockquote        { font-size: 24px; }

.site-footer                          { font-size: 15px; flex-direction: row; align-items: flex-start; }
}

* { box-sizing: border-box; }
.contact-card { width: 100%; max-width: 720px; background: var(--white); border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,0.06); padding: 24px; margin: 12px auto 12px; }
.contact-card h2 { color: var(--blue); margin: 0 0 12px; }
.lead { color: var(--gray); margin-bottom: 26px; }
.contact-list { padding: 0; margin: 0; list-style: none; }
.contact-item { display: flex; align-items: center; margin-bottom: 22px; font-size: 18px; }
.icon-circle { width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--blue); display: flex; align-items: center; justify-content: center; color: var(--blue); margin-right: 14px; }
.icon-circle svg { display: block; }

.entry-content ul                     { list-style: disc; padding-left: 30px; margin-bottom: 2.5em; }
.entry-content ol                     { list-style: decimal; padding-left: 30px; margin-bottom: 2.5em; }
.entry-content ul li,
.entry-content ol li                  { margin-bottom: .5em; }
.entry-content ol li::marker          { font-weight: 700; }

.entry-content table                  { width: 100%; margin-bottom: 2em; border-collapse: collapse; font-size: .9em; }
.entry-content table th,
.entry-content table td               { padding: 10px 15px; text-align: left; border: 1px solid #e0e0e0; }
.entry-content table th               { background-color: var(--blue); color: var(--white); font-weight: 700; }
.entry-content table tbody tr:nth-child(even) td { background-color: var(--light-gray); }

.entry-content blockquote             { display: block; position: relative; margin: 28px 0; padding: 20px 24px; background-color: #F5F7FF; border-left: 4px solid var(--blue); border-radius: 0 6px 6px 0; color: #26334D; font-size: 19px; line-height: 1.55; font-style: italic; font-weight: 400; }
.entry-content blockquote *           { color: inherit; }
.entry-content blockquote p           { margin: 0; }
.entry-content blockquote p + p       { margin-top: .6em; }
.entry-content blockquote p:first-of-type::before { content: "\201E"; margin-right: 2px; }
.entry-content blockquote p:last-of-type::after   { content: "\201D"; margin-left: 2px; }
.entry-content blockquote::after      { content: "Zapami\0119taj"; display: block; margin-top: .5em; color: var(--blue); font-size: .68em; font-weight: 700; font-style: normal; letter-spacing: .08em; text-transform: uppercase; }

@media only screen and (max-width: 600px) {
  .entry-content table                { font-size: .8em; }
  .entry-content table th,
  .entry-content table td             { padding: 6px 8px; }
  .entry-content blockquote           { margin: 20px 0; padding: 16px 18px; font-size: 17px; }
}
