/*
Theme Name: Logjams Refresh
Theme URI: https://logjams.pl/
Author: Custom implementation for Logjams
Description: Lekki, klasyczny, responsywny motyw dla Logjams z zachowaniem NextGEN Gallery.
Version: 1.0.2
Requires at least: 6.6
Requires PHP: 8.0
Text Domain: logjams-refresh
*/

:root{--lj-green:#28743d;--lj-deep:#234a33;--lj-orange:#f18d1c;--lj-ink:#29372e;--lj-muted:#617266;--lj-line:#e3e8e1;--lj-soft:#f5f7f3}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:#43494d;background-image:linear-gradient(180deg,#41474b 0%,#596165 58%,#7b8282 100%);background-attachment:fixed;color:var(--lj-ink);font:15px/1.7 "Segoe UI",Arial,sans-serif;-webkit-font-smoothing:antialiased}
a{color:var(--lj-green);text-decoration:none}a:hover{text-decoration:underline;color:#185b2f}
a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid var(--lj-orange);outline-offset:3px}
img{max-width:100%;height:auto}p{margin:0 0 17px}
.screen-reader-text{clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute!important;white-space:nowrap;width:1px}
.lj-site{width:min(100%,1180px);min-height:100vh;margin:0 auto;background:#fff;box-shadow:0 8px 34px rgba(0,0,0,.19)}
/* Header */
.lj-header{height:100px;display:flex;justify-content:space-between;align-items:center;gap:25px;padding:0 40px;background:#fff}
.lj-brand{display:flex;align-items:center;gap:25px;min-width:0}.lj-brand__logo{width:156px;flex:0 0 156px;display:block}.lj-brand__logo img{display:block;width:156px;height:auto;object-fit:contain}.lj-brand__separator{height:39px;flex:0 0 1px;background:#dae2da}.lj-brand__tagline{color:#58695f;font-size:14px;letter-spacing:.05px;white-space:normal}.lj-header__extras{display:flex;align-items:center;gap:15px;flex-shrink:0}.lj-header__since{color:#85948b;font-size:11px;border:1px solid #dfe7df;border-radius:24px;padding:7px 12px}.lj-header__search{width:36px;height:36px;display:grid;place-items:center;color:var(--lj-deep);border:1px solid #dfe7df;border-radius:100%}
.lj-hero{height:231px;position:relative;overflow:hidden;background:#244b32}.lj-hero img{display:block;width:100%;height:100%;object-fit:cover;object-position:center center}.lj-hero:after{content:"";pointer-events:none;position:absolute;inset:0;background:linear-gradient(90deg,rgba(3,21,8,.2),transparent 65%)}.lj-hero__label{position:absolute;z-index:1;left:40px;bottom:24px;background:rgba(19,53,30,.75);border-left:4px solid var(--lj-orange);padding:10px 14px;font-size:12px;letter-spacing:.04em;color:white}
/* Main navigation */
.lj-nav{min-height:54px;background:var(--lj-deep);padding:0 28px;position:relative}.lj-menu{margin:0;padding:0;display:flex;align-items:stretch;min-height:54px;list-style:none}.lj-menu>li{list-style:none;display:flex;margin:0;padding:0}.lj-menu>li>a{color:#fff;display:flex;align-items:center;padding:0 20px;border-right:1px solid rgba(255,255,255,.08);font-size:14px;font-weight:650;line-height:1.25;text-decoration:none}.lj-menu>li>a:hover,.lj-menu>li.current-menu-item>a,.lj-menu>li.current_page_item>a,.lj-menu>li.current_page_ancestor>a{background:var(--lj-orange);color:#243728}.lj-nav__toggle{display:none}
/* Content grid */
.lj-main-layout{display:grid;grid-template-columns:minmax(0,1fr) 265px;gap:43px;padding:46px 40px 78px;min-height:900px}.lj-primary{min-width:0}.lj-section-title{border-bottom:1px solid var(--lj-line);padding-bottom:17px;margin-bottom:27px;display:flex;gap:17px;align-items:flex-end}.lj-section-title h1{font-size:35px;line-height:1.17;font-weight:750;letter-spacing:-.8px;color:var(--lj-deep);margin:0}.lj-section-title > span{background:var(--lj-orange);width:48px;height:3px;display:block;margin-bottom:2px;flex:none}
.lj-entry-content{color:#364339;font-size:15px;line-height:1.77;overflow-wrap:anywhere}.lj-entry-content p{margin:0 0 17px}.lj-entry-content a{color:var(--lj-green);font-weight:600}.lj-entry-content h2,.lj-section-heading{font-size:18px;line-height:1.3;font-weight:750;color:var(--lj-deep);margin:32px 0 12px}.lj-entry-content h2::before,.lj-section-heading::before{content:"";width:4px;height:19px;background:var(--lj-orange);display:inline-block;border-radius:3px;margin-right:10px;vertical-align:-4px}.lj-entry-content h3{font-size:17px;color:var(--lj-deep)}.lj-entry-content ul,.lj-entry-content ol{padding-left:24px;margin:7px 0 20px}.lj-entry-content li{margin:5px 0}.lj-entry-content blockquote{padding:16px 24px;border-left:4px solid var(--lj-orange);background:var(--lj-soft);margin:24px 0}.lj-entry-content p[align=right]{text-align:right;font-style:italic;color:#617165}
/* Older page content: the original underlined headings still look like sections if wpautop structure changes. */
.lj-welcome-content span[style*="underline"]{display:inline-block;color:var(--lj-deep);font-size:18px;font-weight:750;text-decoration:none!important;margin-top:12px}
.lj-welcome-content span[style*="underline"]::before{content:"";display:inline-block;background:var(--lj-orange);width:4px;height:17px;margin-right:10px;vertical-align:-3px}
/* Original plain-text advice lists rendered in two light boxes. */
.lj-advice{background:#f7f9f4;border:1px solid #e0e9dc;border-radius:5px;padding:16px 20px;margin:13px 0 20px;color:#38463d}
.lj-advice p{margin:0 0 9px;font-size:13.5px}
.lj-advice ul{margin:0;padding-left:18px}
.lj-advice li{font-size:13.5px;line-height:1.62;margin:4px 0}
/* Sidebar */
.lj-sidebar{min-width:0;border-left:1px solid var(--lj-line);padding:3px 0 0 27px}.lj-sidebar__section{margin:0 0 27px}.lj-sidebar__title{font-size:17px;color:var(--lj-deep);margin:0 0 13px;font-weight:750;line-height:1.4}.lj-sidebar__title:before{content:"";display:inline-block;width:4px;height:19px;background:var(--lj-orange);vertical-align:-4px;margin-right:10px;border-radius:2px}.lj-sidebar__links{list-style:none;margin:0;padding:0;border-top:1px solid var(--lj-line)}.lj-sidebar__links li{margin:0;padding:0;border-bottom:1px solid #e8ece7}.lj-sidebar__links a{color:#56675c;font-size:12.5px;line-height:1.45;display:flex;align-items:center;gap:10px;justify-content:space-between;padding:8px 1px;text-decoration:none}.lj-sidebar__links a:hover{color:var(--lj-green)}.lj-sidebar__links a span{font-size:16px;color:#a6b5a8;flex:none}.lj-sidebar__year a{color:#4f6757}.lj-search-form{display:flex;gap:6px;align-items:stretch}.lj-search-form input{flex:1;width:1%;min-width:0;border:1px solid #dce5dc;padding:9px 10px;font:inherit;font-size:12px;height:39px}.lj-search-form button{font:700 12px "Segoe UI",Arial,sans-serif;color:#243528;background:var(--lj-orange);padding:0 13px;border:0;cursor:pointer}.lj-search-form button:hover{background:#e17c10}
/* Footer */
.lj-footer__top{display:grid;grid-template-columns:1.1fr 1fr;gap:62px;padding:33px 40px 36px;background:#f3f5f1;border-top:1px solid #e4e9e3}.lj-footer__section h2{font-size:16px;color:var(--lj-deep);margin:0 0 14px;font-weight:750}.lj-footer__section ul{margin:0;padding:0;list-style:none}.lj-footer__section li{padding:1px 0;font-size:12.5px;line-height:1.85}.lj-footer__section li:before{content:"›";color:var(--lj-orange);font-size:19px;font-weight:800;margin-right:10px}.lj-footer__section p{max-width:400px;font-size:13px;color:#667669;line-height:1.76}.lj-footer__bottom{background:#203d2e;color:#d3dfd2;padding:12px 40px;display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:11.5px}.lj-footer__bottom a{color:#f0bf7c}
/* Archive headings: separate eyebrow and title prevent collision with the first post. */
.lj-archive .lj-section-title--archive{position:relative;display:block;padding:0 0 21px;margin:0 0 31px;min-height:0;align-items:initial}
.lj-archive .lj-section-title--archive > span{position:absolute;bottom:-1px;left:0;width:52px;height:3px;margin:0}
.lj-archive-heading{display:block;min-width:0}
.lj-archive-heading__eyebrow{display:block!important;width:auto!important;height:auto!important;background:transparent!important;margin:0 0 5px!important;color:var(--lj-muted);font-size:11px;font-weight:750;letter-spacing:.12em;line-height:1.5;text-transform:uppercase}
.lj-archive .lj-section-title--archive h1{font-size:32px;line-height:1.2;margin:0;overflow-wrap:anywhere;letter-spacing:-.5px}
.lj-archive .lj-post-list .lj-post-card:first-child{padding-top:6px}
/* Single and archive */
.lj-post-meta{display:flex;gap:12px;align-items:center;flex-wrap:wrap;font-size:12px;color:#768578;margin:-8px 0 24px}.lj-post-meta a{color:#64806d}.lj-single .lj-section-title{margin-bottom:16px}.lj-post-navigation{margin:35px 0;padding:20px 0;border-block:1px solid var(--lj-line);display:flex;justify-content:space-between;gap:20px;font-size:12px}.lj-post-navigation div{flex:1;min-width:0}.lj-post-navigation div:last-child{text-align:right}.lj-post-tags{font-size:12px;color:#68786b;margin-top:20px}
.lj-post-card{border-bottom:1px solid var(--lj-line);padding:24px 0;display:flex;gap:17px;align-items:flex-start}.lj-post-card:first-child{padding-top:0}.lj-post-card__date{width:46px;flex:0 0 46px;background:#eff1eb;text-align:center;font-size:11px;color:#3e6845}.lj-post-card__date span{display:block;background:#2f713b;color:white;font-weight:700;text-transform:uppercase;padding:4px}.lj-post-card__date strong{font-size:22px;line-height:1.25;display:block;padding:6px 2px}.lj-post-card__body{flex:1;min-width:0}.lj-post-card__body h2{font-size:19px;line-height:1.35;margin:0 0 7px;color:var(--lj-deep)}.lj-post-card__body h2 a{color:inherit}.lj-post-card__body .lj-post-meta{margin:0 0 7px}.lj-post-card__body p{font-size:13px;color:#4d5b50;line-height:1.6;margin:0 0 8px}.lj-post-card__image{width:140px;aspect-ratio:4/3;flex:0 0 140px}.lj-post-card__image img{width:100%;height:100%;object-fit:cover}.lj-read-more{color:#d67912;font-size:12px;font-weight:700}.lj-search-result{margin-bottom:24px;border-bottom:1px solid var(--lj-line);padding-bottom:20px}.lj-search-result h2{font-size:20px;margin:0 0 8px}.lj-search-result p{font-size:13px}.navigation.pagination{margin:25px 0}.nav-links{display:flex;flex-wrap:wrap;gap:8px}.page-numbers{padding:6px 10px;border:1px solid #e0e7dd}.page-numbers.current{background:var(--lj-orange);color:white}
.lj-comments{padding-top:22px;border-top:1px solid var(--lj-line)}.lj-comments h2{font-size:18px}.lj-comments__list{padding-left:23px}.lj-comments__list li{margin:16px 0}.comment-respond label{display:block}.comment-respond input,.comment-respond textarea{max-width:100%;border:1px solid #dce5dc;padding:8px}.comment-respond textarea{width:100%}.comment-respond input[type=submit]{background:var(--lj-orange);border:0;cursor:pointer;padding:10px 16px}
/* NextGEN — three columns + compatible Simplelightbox. Do NOT enqueue old gallery scripts. */
.lj-entry-content .ngg-galleryoverview.default-view{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:30px 0;min-height:0;overflow:visible;clear:both}.lj-entry-content .ngg-galleryoverview.default-view .ngg-gallery-thumbnail-box{display:block;float:none!important;width:100%!important;max-width:none!important;margin:0!important}.lj-entry-content .ngg-galleryoverview.default-view .ngg-gallery-thumbnail{width:100%;margin:0!important;padding:0;border:none}.lj-entry-content .ngg-galleryoverview.default-view .ngg-gallery-thumbnail a{display:block;width:100%;margin:0!important;overflow:hidden}.lj-entry-content .ngg-galleryoverview.default-view .ngg-gallery-thumbnail img{display:block;width:100%!important;height:125px!important;max-width:100%!important;object-fit:cover;margin:0!important;padding:0!important;transition:opacity .2s ease}.lj-entry-content .ngg-galleryoverview.default-view .ngg-gallery-thumbnail img:hover{opacity:.8}.lj-entry-content .ngg-galleryoverview.default-view .ngg-navigation,.lj-entry-content .ngg-galleryoverview.default-view .slideshowlink{grid-column:1/-1}
/* Responsive */
@media(max-width:980px){.lj-main-layout{padding:35px 28px 60px;grid-template-columns:minmax(0,1fr) 245px;gap:27px}.lj-sidebar{padding-left:20px}.lj-header{padding:0 27px}.lj-header__since{display:none}}
@media(max-width:760px){.lj-site{box-shadow:none}.lj-header{height:auto;min-height:80px;padding:12px 20px;gap:10px}.lj-brand{gap:14px}.lj-brand__logo{flex-basis:132px;width:132px}.lj-brand__logo img{width:132px}.lj-brand__tagline{font-size:12px}.lj-hero{height:200px}.lj-hero__label{left:20px;bottom:16px;font-size:11px}.lj-nav{padding:0}.lj-nav__toggle{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:50px;background:transparent;border:0;color:#fff;font:700 14px "Segoe UI",Arial,sans-serif;padding:0 20px;cursor:pointer}.lj-nav__hamburger{display:grid;gap:4px}.lj-nav__hamburger i{display:block;background:white;width:21px;height:2px}.lj-menu{display:none;min-height:0;flex-direction:column;padding:0 0 7px}.lj-menu.is-open{display:flex}.lj-menu>li{display:block;width:100%}.lj-menu>li>a{border-right:0;padding:13px 20px;border-top:1px solid rgba(255,255,255,.1)}.lj-main-layout{display:block;padding:35px 24px 55px;min-height:0}.lj-sidebar{border-left:0;border-top:1px solid var(--lj-line);padding:28px 0 0;margin-top:35px;display:grid;grid-template-columns:1fr 1fr;gap:24px}.lj-sidebar__section{margin-bottom:0}.lj-sidebar__section:last-child{grid-column:1/-1}.lj-footer__top{padding:28px 24px}.lj-footer__bottom{padding:12px 24px}}
@media(max-width:520px){body{background:#fff}.lj-header{padding:9px 16px}.lj-brand{gap:10px}.lj-brand__logo,.lj-brand__logo img{width:112px}.lj-brand__logo{flex-basis:112px}.lj-brand__separator{display:none}.lj-brand__tagline{font-size:11px;line-height:1.35}.lj-header__search{width:32px;height:32px}.lj-hero{height:160px}.lj-hero__label{font-size:9.5px;padding:8px 10px;max-width:calc(100% - 35px)}.lj-main-layout{padding:29px 18px 40px}.lj-section-title h1{font-size:29px}.lj-entry-content{font-size:14px;line-height:1.75}.lj-sidebar{display:block}.lj-sidebar__section{margin-bottom:25px}.lj-footer__top{grid-template-columns:1fr;gap:22px;padding:27px 20px}.lj-footer__bottom{display:block;padding:14px 20px}.lj-footer__bottom a{display:block;margin-top:5px}.lj-post-card{gap:10px}.lj-post-card__date{width:39px;flex-basis:39px}.lj-post-card__body h2{font-size:17px}.lj-post-card__image{display:none}.lj-entry-content .ngg-galleryoverview.default-view{grid-template-columns:repeat(2,minmax(0,1fr))}.lj-entry-content .ngg-galleryoverview.default-view .ngg-gallery-thumbnail img{height:110px!important}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important}}
