/*
Theme Name: Technika Pakowania
Description: Motyw przemysłowego portalu wiedzy, biblioteki i narzędzi Technika Pakowania. Współpracuje z Core Engine.
Version: 0.12.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: technika-pakowania-theme
*/
body.tp-design{margin:0!important;background:#f7f9fa;color:#182f3e;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:17px;line-height:1.65}.tp-design *{box-sizing:border-box}.tp-design .tp-shell{width:min(1240px,calc(100% - 48px));margin-inline:auto}.tp-design .tp-header{background:white;border-bottom:1px solid #d8e1e6}.tp-top{background:#16364a;color:#e0eaee;font-size:11px;letter-spacing:.08em;font-weight:600}.tp-top-inner{display:flex;justify-content:space-between;padding:8px 0;gap:15px}.tp-brandrow{display:flex;justify-content:space-between;align-items:center;padding:24px 0;gap:24px}.tp-brand{display:flex;flex-direction:column;font-weight:900;font-size:clamp(26px,4vw,39px);line-height:.95;letter-spacing:-.055em;text-decoration:none!important;color:#16364a!important}.tp-brand-dot{color:#0e858d}.tp-brand small{font-size:12px;font-weight:500;letter-spacing:.01em;margin-top:10px;line-height:1.2;color:#536773}.tp-header-search{display:flex;gap:6px;width:min(380px,45%)}.tp-header-search input{width:100%;min-width:0;padding:10px 13px;border:1px solid #aabac3;border-radius:5px;font:inherit;color:#16364a;background:white}.tp-header-search button{border:0;border-radius:5px;padding:9px 14px;color:white;background:#0b6b74;font:inherit;font-weight:650}.tp-nav{border-top:1px solid #e0e7e9}.tp-nav-inner{display:flex;flex-wrap:wrap;gap:3px 20px}.tp-nav a{display:block;padding:12px 0;text-decoration:none;color:#263b48;font-size:15px;font-weight:650}.tp-nav a:last-child{color:#08717a}.tp-nav a:hover{text-decoration:underline}.tp-design .tp-main{min-height:60vh;padding:36px 0 56px}.tp-design h1,.tp-design h2,.tp-design h3{font-weight:750;letter-spacing:-.025em;line-height:1.22}.tp-design h1{font-size:clamp(2rem,4.4vw,3.5rem);margin:0 0 1.5rem}.tp-design h2{font-size:clamp(1.45rem,2.8vw,2rem);margin:2rem 0 .8rem}.tp-design h3{font-size:1.25rem}.tp-design p{margin:.8rem 0 1.1rem}.tp-design .tp-article:not(.tp-front)>p,.tp-design .tp-article:not(.tp-front)>ul{max-width:84ch}.tp-design .tp-front>h1{font-size:1.1rem;margin:0 0 12px;color:#526773;letter-spacing:.01em}.tp-design a{color:#076c76}.tp-design a:focus-visible,.tp-design button:focus-visible,.tp-design input:focus-visible,.tp-design textarea:focus-visible,.tp-design [tabindex]:focus-visible{outline:3px solid #bd7d19;outline-offset:3px}.tp-breadcrumb{font-size:.85rem;color:#687986}.tp-featured{display:block;max-width:100%;height:auto;margin-bottom:1rem}.tp-design .tp-footer{background:#122e40;color:#e0ebee;padding:32px 0 14px;font-size:15px}.tp-footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:24px}.tp-footer a{display:block;color:#d5e9ed;margin-top:.4rem}.tp-footer-bottom{border-top:1px solid #355361;padding-top:14px;margin-top:26px!important;font-size:13px;color:#b7c9d2}.tp-sr,.tp-skip:not(:focus){position:absolute;clip:rect(0,0,0,0);width:1px;height:1px;overflow:hidden}.tp-skip:focus{display:block;padding:12px;background:white;color:#16364a;position:fixed;top:0;left:0;z-index:999999}.tp-design .tp-hero h2{margin:.5rem 0 1rem;color:white}.tp-design .tp-reader-page h2{margin:.5rem 0 1.5rem}.tp-design .tp-edition-cover h2{color:white}.tp-design .tp-reader button{font-size:14px}.tp-design .tp-tile h3{margin:.45rem 0}.tp-design .tp-tile p{margin:0 0 1rem}.tp-design .tp-reader-page{max-width:none}.tp-design .tp-lead{font-size:1.2rem;color:#344e5c}.tp-design .tp-main img{max-width:100%;height:auto}.tp-design .tp-reader-stage img{max-width:100%}@media(max-width:700px){.tp-design .tp-shell{width:calc(100% - 30px)}.tp-brandrow{flex-direction:column;align-items:flex-start;gap:14px;padding:18px 0}.tp-header-search{width:100%}.tp-nav-inner{gap:0 14px}.tp-nav a{font-size:14px;padding:8px 0}.tp-top-inner span:last-child{display:none}.tp-design .tp-main{padding-top:24px}.tp-footer-grid{grid-template-columns:1fr 1fr}.tp-footer-grid>div:first-child{grid-column:1/-1}}@media(max-width:380px){.tp-nav-inner{gap:0 10px}.tp-nav a{font-size:13px}}

.tp-design .tp-reader-v2 .tp-edition-cover h2{color:white}.tp-design .tp-reader-v2 .tp-reader-page h2{margin:.5rem 0 1.2rem}.tp-design .tp-reader-v2 .tp-reader-page:has(>img){padding:0}.tp-design .tp-reader-v2 .tp-reader-page{max-width:none}.tp-design .tp-lib-card:hover{border-color:#08717a}.tp-design .tp-reader-v2 .tp-reader-page article{max-width:100%}
.tp-design .tp-nav a{white-space:nowrap}.tp-design .tp-nav a:hover,.tp-design .tp-nav a:focus-visible{color:#08717a}.tp-design .tp-header-search input{font-size:15px}.tp-design .tp-kg-grid .tp-tile p{line-height:1.6}.tp-design .tp-article h2{scroll-margin-top:1rem}@media(max-width:700px){.tp-design .tp-nav-inner{gap:0 12px}.tp-design .tp-nav a{white-space:normal}.tp-design .tp-header-search button{font-size:15px}}

.tp-nav-inner ul{display:flex;flex-wrap:wrap;gap:3px 20px;list-style:none;padding:0;margin:0}.tp-nav a[aria-current=page]{color:#08717a;text-decoration:underline;text-underline-offset:4px}.tp-main table{max-width:100%;border-collapse:collapse}.tp-main td,.tp-main th{overflow-wrap:anywhere}.tp-main pre{overflow:auto}.tp-main .alignwide{max-width:100%}.tp-design .tp-main .tp-empty{padding:24px;border:1px solid #d8e1e6;background:white;border-radius:8px}.tp-design .tp-main .wp-block-table{overflow-x:auto}.tp-design .tp-main .tp-article{min-width:0}.tp-header-search input:focus{outline-offset:1px}.tp-footer a:hover{text-decoration:underline}.tp-design .tp-main .pagination .nav-links{display:flex;flex-wrap:wrap;gap:12px;margin:20px 0}.tp-design .tp-nav a{min-height:44px;display:flex;align-items:center}@media(max-width:700px){.tp-nav-inner ul{gap:0 12px}.tp-design .tp-nav a{min-height:36px}}

.tp-design .tp50-figure img{max-width:100%}.tp-design .tp50-result h2{margin-top:0}.tp-design .tp50-visual-card h2{font-size:clamp(1.3rem,2.4vw,1.8rem)}
/* 0.8: disclosure navigation, task-based home. Native details remain usable without JS. */
.tp-design .tp-nav-inner{display:block}.tp80-nav-groups{display:flex;align-items:center;flex-wrap:wrap;gap:0 12px}.tp80-menu{position:relative;min-width:0}.tp80-menu summary,.tp80-extra-menu summary{cursor:pointer;min-height:48px;display:flex;align-items:center;gap:6px;font-size:14px;font-weight:700;color:#16364a;padding:8px 4px;list-style:none}.tp80-menu summary::-webkit-details-marker,.tp80-extra-menu summary::-webkit-details-marker{display:none}.tp80-menu summary::after,.tp80-extra-menu summary::after{content:'▾';color:#08717a;font-size:12px}.tp80-menu[open] summary::after,.tp80-extra-menu[open] summary::after{content:'▴'}.tp80-menu summary:focus-visible,.tp80-extra-menu summary:focus-visible{outline:3px solid #bd7d19;outline-offset:2px}.tp80-menu[open] summary{color:#08717a}.tp-design .tp-nav .tp80-menu-panel{display:grid;gap:0;position:absolute;top:100%;left:0;z-index:200;width:270px;max-width:calc(100vw - 32px);max-height:min(65vh,560px);overflow:auto;background:white;border:1px solid #d5e0e4;border-top:3px solid #0b7780;border-radius:0 0 8px 8px;box-shadow:0 16px 36px #16364a26;padding:7px}.tp-design .tp-nav .tp80-menu:not([open]) .tp80-menu-panel{display:none}.tp-design .tp-nav .tp80-menu-panel a{font-size:14px;min-height:42px;padding:8px 10px;white-space:normal;color:#234450;line-height:1.35;border-radius:4px}.tp-design .tp-nav .tp80-menu-panel a:hover,.tp-design .tp-nav .tp80-menu-panel a:focus-visible{background:#e8f4f3;color:#075d65}.tp80-nav-actions{margin-left:auto;display:flex;gap:12px;align-items:center}.tp-design .tp-nav .tp80-nav-actions a:last-child{padding:7px 12px;background:#0b6b74;color:white;border-radius:6px;min-height:38px}.tp80-extra-menu{border-top:1px solid #e0e7e9}.tp-design .tp80-extra-menu ul{display:block;padding-left:16px}.tp80-hero{display:grid;grid-template-columns:1.15fr 1fr;gap:30px;align-items:center;background:#153a4d;color:white;border-radius:12px;padding:36px;margin:0 0 28px}.tp80-hero .tp-kicker{color:#a1dbd7}.tp-design .tp80-hero h2{color:white;font-size:clamp(2rem,4vw,3.2rem);margin:.5rem 0 1rem}.tp80-hero img{border-radius:8px;width:100%;height:auto}.tp80-hero .tp-actions a{background:#fff;color:#155a64;border:1px solid white;padding:10px 15px;border-radius:6px;text-decoration:none;font-weight:700}.tp80-hero .tp-actions a+a{background:transparent;color:white}.tp80-section{margin:38px 0}.tp80-section h2{margin:.4rem 0 1rem}.tp80-paths{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.tp80-path{display:flex;flex-direction:column;min-width:0;background:white;border:1px solid #d5e0e4;border-top:4px solid #0b7780;border-radius:9px;padding:22px}.tp80-num{font-size:13px;font-weight:800;letter-spacing:.1em;color:#08717a}.tp80-path h3{margin:.5rem 0;font-size:1.45rem}.tp80-path p{font-size:15px;color:#516471}.tp80-path ul{list-style:none;margin:0 0 18px;padding:0}.tp80-path li a{display:block;padding:7px 0;border-bottom:1px solid #e4eaed;text-decoration:none;font-weight:600}.tp80-path li a:hover{text-decoration:underline}.tp80-path-cta{margin-top:auto}.tp80-path-cta a{display:inline-block;background:#e8f4f3;padding:9px 13px;border-radius:5px;font-weight:750;text-decoration:none}.tp80-section .tp-grid{grid-template-columns:repeat(3,minmax(0,1fr))}@media(min-width:701px){.tp80-menu:nth-last-of-type(-n+2) .tp80-menu-panel{left:auto;right:0}}@media(max-width:900px){.tp80-nav-actions{margin-left:0}.tp80-hero{grid-template-columns:1fr;padding:24px}.tp80-hero img{max-width:600px}.tp80-paths,.tp80-section .tp-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.tp80-nav-groups{display:grid;grid-template-columns:1fr 1fr;gap:0 10px;align-items:start;padding:5px 0}.tp80-menu{border-bottom:1px solid #e2e8eb;grid-column:span 2}.tp80-menu summary{min-height:44px;justify-content:space-between;font-size:15px;padding:8px}.tp-design .tp-nav .tp80-menu-panel{position:static;width:auto;max-width:100%;max-height:none;box-shadow:none;border:0;border-left:3px solid #0b7780;padding:3px 6px;margin-bottom:8px}.tp80-start{grid-column:span 2}.tp80-nav-actions{grid-column:span 2;justify-content:space-between;padding:8px 0}.tp80-paths,.tp80-section .tp-grid{grid-template-columns:1fr}.tp80-hero{padding:20px;gap:14px}.tp80-path{padding:18px}.tp80-section{margin:28px 0}}

.tp80-nav-toggle{display:none}.tp80-nav-toggle:focus-visible{outline:3px solid #bd7d19}@media(max-width:900px){.tp80-nav-toggle.tp80-nav-ready{display:flex;width:100%;justify-content:space-between;align-items:center;font:inherit;font-weight:700;color:#16364a;background:#fff;border:0;padding:12px 4px;cursor:pointer}.tp80-nav-groups.tp80-nav-collapsed{display:none}.tp80-nav-groups{display:grid;grid-template-columns:1fr;gap:0;padding:0 0 8px}.tp80-start,.tp80-menu,.tp80-nav-actions{grid-column:1}.tp80-menu{border-bottom:1px solid #e2e8eb}.tp80-menu summary{justify-content:space-between}.tp-design .tp-nav .tp80-menu-panel{position:static;width:auto;max-width:100%;max-height:none;box-shadow:none;border:0;border-left:3px solid #0b7780;padding:3px 6px;margin-bottom:8px}.tp80-nav-actions{justify-content:flex-start}}
