/* FakturaKompas v2 production stylesheet; source order in documentation. */
/* System fonts avoid third-party font requests. */
:root{--ink:#17282a;--muted:#5d6c6d;--green:#174e44;--green-dark:#103b33;--lime:#dcf5a4;--cream:#f5f7f3;--line:#dde4df;--white:#fff;--blue:#245ee7;--radius:16px;--max:1240px;font-family:var(--font-body, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);color:var(--ink);background:#fff;font-synthesis:none}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:104px}body{margin:0;font-size:16px;line-height:1.6}button,input,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible{outline:3px solid #2d68ed;outline-offset:4px}button{color:inherit}p,h1,h2,h3{margin:0}h1,h2,h3,.brand{font-family:var(--font-body, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);line-height:1.15}h2{font-weight:750;font-size:36px;letter-spacing:-1.1px}h3{font-size:21px;font-weight:750;letter-spacing:-.5px}svg{width:22px;height:22px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.container{max-width:var(--max);padding:0 32px;margin:0 auto}.skip-link{position:fixed;top:-100px;left:20px;z-index:100;background:#fff;padding:12px 20px}.skip-link:focus{top:12px}.topline{background:var(--green-dark);color:#fff;font-size:13px;min-height:35px;display:flex;align-items:center;justify-content:center;gap:9px;padding:7px 20px;text-align:center}.topline a{text-decoration:underline;text-underline-offset:3px;color:var(--lime);margin-left:6px}.topline svg{width:15px;height:15px}.site-header{position:sticky;top:0;z-index:30;background:rgba(255,255,255,.98);border-bottom:1px solid var(--line)}.header-inner{height:82px;display:flex;align-items:center;justify-content:space-between;gap:26px}.brand{display:inline-flex;align-items:center;gap:10px;font-weight:800;font-size:23px;letter-spacing:-1px;white-space:nowrap}.brand-mark{display:grid;place-items:center;width:36px;height:38px;background:var(--green);color:var(--lime);border-radius:9px;transform:rotate(-5deg)}.brand-mark svg{width:26px;height:26px;transform:rotate(5deg)}.brand span>span{font-weight:500}.nav{display:flex;gap:26px;align-items:center}.nav a{font-size:14px;font-weight:550;position:relative;padding:29px 0}.nav a:hover,.nav a.active{color:var(--green)}.nav a.active:after{content:'';position:absolute;bottom:18px;left:0;right:0;height:2px;background:var(--green)}.button{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:13px 20px;min-height:49px;border-radius:9px;border:1px solid transparent;background:var(--green);color:white;font-size:15px;font-weight:600;line-height:1.3;transition:background .18s,transform .18s,border-color .18s}.button:hover{background:var(--green-dark);transform:translateY(-1px)}.button:active{transform:translateY(0)}.button svg{width:18px;height:18px}.button-outline{background:transparent;border-color:#c2cec7;color:var(--green)}.button-outline:hover{background:#eef3ed;border-color:var(--green)}.button-light{background:var(--lime);color:var(--green-dark)}.button-light:hover{background:#cde790}.button-small{font-size:14px;padding:11px 16px;min-height:43px}.menu-button{display:none;background:none;border:1px solid var(--line);padding:10px;border-radius:8px}.eyebrow{display:flex;align-items:center;gap:9px;text-transform:uppercase;letter-spacing:1.6px;font-weight:650;font-size:12px;color:var(--green);margin-bottom:19px}.eyebrow .line{height:1px;width:25px;background:currentColor}.hero{padding:60px 0 45px;background:linear-gradient(120deg,#f4f7ef 0%,#f4f7ef 51%,#edf4ee 100%);border-bottom:1px solid var(--line)}.hero-grid{display:grid;grid-template-columns:1.06fr 1fr;gap:68px;align-items:center}.hero h1{font-size:58px;line-height:1.1;font-weight:800;letter-spacing:-2.8px;max-width:600px}.hero h1 em{font-style:normal;color:var(--green);position:relative}.hero h1 em:after{content:'';position:absolute;left:0;right:0;bottom:0;background:#cee49e;height:9px;z-index:0;opacity:.7}.hero-copy{color:var(--muted);font-size:18px;line-height:1.65;max-width:460px;margin:22px 0 24px}.hero-link{font-size:15px;font-weight:600;display:inline-flex;align-items:center;gap:9px;border-bottom:1px solid var(--green);padding-bottom:3px;color:var(--green)}.hero-link:hover{gap:14px}.hero-link svg{width:18px;height:18px}.trust-list{display:flex;gap:18px;flex-wrap:wrap;margin-top:29px;font-size:13px;color:#485a55}.trust-list span{display:flex;gap:6px;align-items:center}.trust-list svg{height:16px;width:16px;color:var(--green)}.diagnostic{background:white;border:1px solid #dce4d9;border-radius:18px;padding:27px 29px 23px;box-shadow:0 12px 35px #1a3d2510;position:relative}.diagnostic-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:13px}.diagnostic-top .pill{background:#edf3e9;color:var(--green);font-size:12px;font-weight:600;letter-spacing:.3px;padding:4px 10px;border-radius:100px}.step-count{font-size:12px;color:var(--muted)}.step-bars{display:flex;gap:5px;margin-bottom:23px}.step-bars span{height:3px;flex:1;background:#e6ece6;border-radius:4px}.step-bars span.done{background:var(--green)}.diagnostic h2{font-size:23px;letter-spacing:-.5px;margin-bottom:6px;line-height:1.3}.question-note{font-size:14px;line-height:1.5;color:var(--muted);margin-bottom:17px}.choices{display:grid;gap:8px;min-height:162px}.choice{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:9px;padding:12px 14px;background:white;text-align:left;width:100%;font-size:14px;font-weight:550;line-height:1.35;transition:background .2s,border-color .2s}.choice svg{width:20px;color:var(--muted)}.choice:hover{border-color:#7e9a81;background:#fafcf7}.choice[aria-pressed=true]{border-color:var(--green);background:#f2f7eb;color:var(--green)}.choice-radio{width:17px;height:17px;border:1.4px solid #bec9c0;border-radius:50%;margin-left:auto;flex-shrink:0}.choice[aria-pressed=true] .choice-radio{border:5px solid var(--green);background:#fff}.quiz-actions{display:flex;gap:9px;margin-top:18px}.quiz-actions .button{flex:1}.quiz-back{border:1px solid var(--line);border-radius:8px;background:white;padding:10px 12px;font-size:14px}.quiz-back:hover{background:#eef3ed}.diagnostic .privacy{font-size:12px;text-align:center;color:#6c7772;margin-top:13px;display:flex;align-items:center;justify-content:center;gap:5px}.privacy svg{width:13px;height:13px}.quiz-error{font-size:13px;color:#ad3e22;margin-top:7px}.hero-bottom{display:flex;align-items:center;justify-content:space-between;gap:25px;margin-top:36px;padding-top:23px;border-top:1px solid #d6e0d3;font-size:13px;color:var(--muted)}.hero-bottom strong{color:var(--ink);font-weight:600}.hero-bottom a{display:flex;align-items:center;gap:5px;font-weight:550;text-decoration:underline;text-underline-offset:3px}.hero-bottom svg{width:15px;height:15px}.section{padding:64px 0}.section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:30px;margin-bottom:25px}.section-heading .eyebrow{margin-bottom:10px}.section-heading p{color:var(--muted);margin-top:12px;max-width:650px}.text-link{display:inline-flex;align-items:center;gap:7px;font-size:14px;font-weight:600;color:var(--green);white-space:nowrap}.text-link:hover{text-decoration:underline;text-underline-offset:4px}.text-link svg{width:17px;height:17px}.filters{display:flex;gap:7px;margin:26px 0 24px;flex-wrap:wrap}.filter{border:1px solid var(--line);background:white;border-radius:100px;padding:9px 17px;font-size:14px;font-weight:500;transition:all .2s}.filter:hover{border-color:var(--green);background:#f2f5ed}.filter[aria-pressed=true]{background:var(--green);border-color:var(--green);color:white}.comparison-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.product-card{border:1px solid var(--line);border-radius:13px;overflow:hidden;display:flex;flex-direction:column;transition:border-color .18s,box-shadow .18s;background:#fff}.product-card:hover{border-color:#9bac9f;box-shadow:0 5px 22px #12342608}.product-label{background:#f2f5ee;color:#425941;font-size:12px;font-weight:600;padding:9px 22px;border-bottom:1px solid var(--line)}.product-card:nth-child(2) .product-label{background:#edf2fb;color:#3e597a}.product-card:nth-child(3) .product-label{background:#f7f1e9;color:#775b35}.product-body{padding:23px;display:flex;flex-direction:column;flex:1}.product-brand{display:flex;align-items:center;gap:10px;margin-bottom:13px}.product-monogram{width:39px;height:39px;border-radius:9px;display:grid;place-items:center;font-size:22px;font-weight:700;letter-spacing:-1px;line-height:1}.product-monogram.fakturownia{background:#fff0e9;color:#c35b28}.product-monogram.infakt{background:#e9f0fc;color:#1656cf}.product-monogram.wfirma{background:#e9f3f0;color:#15715c}.product-monogram.mf{background:#fcecee;color:#bd2642;font-size:17px}.product-brand h3{font-size:24px}.product-desc{color:var(--muted);font-size:14px;line-height:1.65;margin-bottom:17px;min-height:46px}.feature-list{list-style:none;padding:0;margin:0 0 18px;display:grid;gap:7px;font-size:14px}.feature-list li{display:flex;gap:8px;align-items:flex-start}.feature-list svg{width:17px;height:21px;color:var(--green)}.product-limit{font-size:13px;line-height:1.6;padding:12px 0 17px;border-top:1px solid #e8ece8;color:var(--muted);margin-top:auto}.product-limit strong{font-weight:600;color:var(--ink)}.product-actions{display:flex;gap:10px;align-items:center}.product-actions>.button{flex:1;font-size:14px;padding:11px 12px}.compare-check{display:flex;gap:6px;align-items:center;font-size:12px;color:var(--muted);cursor:pointer;margin-top:12px;justify-content:center}.compare-check input{accent-color:var(--green);width:15px;height:15px}.compare-foot{margin-top:17px;display:flex;justify-content:space-between;gap:20px;align-items:flex-start;font-size:12px;color:var(--muted)}.compare-foot p{max-width:850px}.free-option{display:flex;align-items:center;justify-content:space-between;gap:25px;background:#f6f8f4;border:1px solid var(--line);padding:19px 24px;border-radius:11px;margin-top:22px}.free-option .free-title{display:flex;gap:13px;align-items:center}.free-option svg{color:var(--green);width:28px;height:28px}.free-option strong{display:block;font-size:15px;margin-bottom:2px}.free-option p{font-size:13px;color:var(--muted)}.activity-section{background:#f8faf7;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.activity-layout{display:grid;grid-template-columns:.8fr 1.7fr;gap:72px;align-items:start}.activity-intro p{color:var(--muted);margin-top:15px;font-size:15px}.activity-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:0 28px}.activity-card{display:flex;gap:16px;padding:22px 0;border-bottom:1px solid var(--line);text-align:left;border-left:0;border-right:0;border-top:0;background:transparent;align-items:center}.activity-icon{width:44px;height:46px;border:1px solid #dfe6dc;border-radius:9px;display:grid;place-items:center;background:white;color:var(--green);flex-shrink:0}.activity-card h3{font-size:17px;letter-spacing:-.3px;margin-bottom:5px}.activity-card p{font-size:13px;color:var(--muted);line-height:1.5}.activity-card>svg{margin-left:auto;width:17px;color:var(--green)}.activity-card:hover h3{color:var(--green);text-decoration:underline;text-underline-offset:3px}.calendar-section{padding:68px 0}.calendar-layout{display:grid;grid-template-columns:1fr 2.1fr;gap:62px}.calendar-intro p{color:var(--muted);margin:17px 0;font-size:15px}.calendar-cards{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid var(--line);border-radius:13px;overflow:hidden}.date-card{padding:24px 21px;border-right:1px solid var(--line);display:flex;flex-direction:column}.date-card:last-child{border-right:0;background:var(--green);color:white}.date-card .status{font-size:11px;letter-spacing:.8px;text-transform:uppercase;font-weight:600;color:var(--muted);margin-bottom:22px}.date-card:last-child .status{color:var(--lime)}.date{font-family:var(--font-body, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);line-height:1.1;margin-bottom:20px}.date strong{font-size:31px;letter-spacing:-1px;display:block}.date span{display:block;font-size:22px;font-weight:600;margin-top:6px}.date-card h3{font-size:14px;letter-spacing:0;line-height:1.5;margin-bottom:8px}.date-card p{font-size:13px;color:var(--muted);line-height:1.65}.date-card:last-child p{color:#d3e2d9}.calendar-note{font-size:12px;line-height:1.6;color:var(--muted);margin-top:14px}.calendar-note a{text-decoration:underline;text-underline-offset:3px}.guide-section{background:#f4f7ef;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.guides{display:grid;grid-template-columns:1.13fr 1fr 1fr;gap:23px}.guide{background:white;border:1px solid var(--line);border-radius:12px;padding:27px;display:flex;flex-direction:column;align-items:flex-start;min-height:235px}.guide:first-child{background:var(--green);border-color:var(--green);color:white}.guide-tag{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:1px;color:var(--green);margin-bottom:21px}.guide:first-child .guide-tag{color:var(--lime)}.guide h3{font-size:23px;line-height:1.3;margin-bottom:12px}.guide p{font-size:14px;line-height:1.65;color:var(--muted);margin-bottom:20px}.guide:first-child p{color:#d2e1d4}.guide .text-link{margin-top:auto;background:none;border:0;padding:0}.guide:first-child .text-link{color:var(--lime)}.faq-layout{display:grid;grid-template-columns:1fr 1.8fr;gap:100px}.faq-intro p{color:var(--muted);margin:17px 0;font-size:15px}.faq-list details{border-bottom:1px solid var(--line)}.faq-list details:first-child{border-top:1px solid var(--line)}.faq-list summary{display:flex;align-items:center;justify-content:space-between;gap:20px;cursor:pointer;list-style:none;font-size:16px;font-weight:550;padding:21px 0;line-height:1.5}.faq-list summary::-webkit-details-marker{display:none}.faq-list summary:after{content:'+';font-size:24px;font-weight:400;color:var(--green)}.faq-list details[open] summary:after{content:'−'}.faq-list details p{font-size:15px;line-height:1.8;color:var(--muted);padding:0 25px 22px 0}.faq-list a{text-decoration:underline;text-underline-offset:3px;color:var(--green)}.closing{background:var(--green);color:#fff;padding:35px 43px;border-radius:13px;display:flex;align-items:center;justify-content:space-between;gap:25px;margin-bottom:58px}.closing h2{font-size:28px;margin-bottom:8px;letter-spacing:-.6px}.closing p{color:#d0ded3;font-size:15px}.footer{background:#f7f9f5;border-top:1px solid var(--line);padding:40px 0 22px}.footer-top{display:flex;justify-content:space-between;gap:50px}.footer-copy p{font-size:13px;max-width:370px;color:var(--muted);margin-top:13px;line-height:1.7}.footer-links{display:flex;gap:70px}.footer-links strong{display:block;font-size:13px;margin-bottom:12px}.footer-links a,.footer-links button{display:block;font-size:13px;color:var(--muted);margin:7px 0;padding:0;border:0;background:none;text-align:left}.footer-links a:hover,.footer-links button:hover{color:var(--green);text-decoration:underline}.footer-bottom{border-top:1px solid var(--line);padding-top:20px;margin-top:32px;display:flex;align-items:center;justify-content:space-between;gap:15px;font-size:12px;color:var(--muted)}.footer-bottom .poland{display:flex;align-items:center;gap:7px}.flag{width:18px;height:13px;background:linear-gradient(#fff 50%,#d84452 50%);border:1px solid #d7dcd5;border-radius:2px}.result-head{display:flex;align-items:center;gap:11px;margin-bottom:16px}.result-head>svg{width:30px;height:30px;color:var(--green)}.result-box{padding:14px 16px;background:#f2f6ec;border-radius:9px;margin-bottom:9px}.result-box .small-label{font-size:11px;font-weight:600;letter-spacing:.7px;text-transform:uppercase;color:#617259;margin-bottom:3px}.result-box strong{font-size:19px;color:var(--green);display:block;line-height:1.3}.result-box p{font-size:13px;color:var(--muted);margin-top:6px;line-height:1.6}.result-detail{font-size:13px;color:var(--muted);margin:12px 0}.result-source{font-size:12px;text-decoration:underline;color:var(--green)}dialog{color:var(--ink);border:1px solid var(--line);border-radius:16px;padding:0;max-width:770px;width:calc(100% - 40px);max-height:86vh;box-shadow:0 25px 100px #122b302b}dialog::backdrop{background:#10271f70;backdrop-filter:blur(3px)}.dialog-top{position:sticky;top:0;background:white;z-index:2;padding:22px 29px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:20px}.dialog-top h2{font-size:25px;letter-spacing:-.7px}.dialog-close{border:1px solid var(--line);border-radius:50%;background:white;width:35px;height:35px;display:grid;place-items:center;flex-shrink:0}.dialog-close:hover{background:#edf3e7}.dialog-content{padding:27px 30px 32px}.dialog-content p{margin-bottom:15px;color:var(--muted);font-size:16px;line-height:1.75}.dialog-content h3{font-size:21px;margin:25px 0 12px}.dialog-content ul,.dialog-content ol{padding-left:22px;color:var(--muted)}.dialog-content li{padding-left:5px;margin:9px 0}.dialog-content a:not(.button){color:var(--green);text-decoration:underline;text-underline-offset:3px}.dialog-content .button{margin-top:10px}.dialog-content .source-note{font-size:13px;padding-top:16px;border-top:1px solid var(--line);margin-top:22px;margin-bottom:0}.table-wrap{overflow-x:auto;margin:15px -8px}.comparison-table{width:100%;border-collapse:collapse;font-size:14px;min-width:540px}.comparison-table th,.comparison-table td{padding:13px 12px;text-align:left;border-bottom:1px solid var(--line);vertical-align:top}.comparison-table th{color:var(--green);font-weight:650;background:#f4f7ef}.comparison-table td:first-child{font-weight:550}.empty{padding:35px;text-align:center;border:1px dashed var(--line);border-radius:12px;grid-column:1/-1}.comparison-bar{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);background:var(--green-dark);color:white;z-index:40;border:1px solid #346855;border-radius:12px;padding:12px 15px 12px 23px;display:flex;align-items:center;gap:22px;box-shadow:0 9px 32px #0002;font-size:14px;max-width:calc(100% - 30px);width:max-content}.comparison-bar[hidden]{display:none}.comparison-bar .clear{color:white;border:0;background:none;display:grid;place-items:center;padding:7px}.noscript{padding:25px;border:1px solid var(--line);background:#f5f8ef;border-radius:10px;margin-top:15px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[hidden]{display:none!important}
@media(min-width:1450px){:root{--max:1310px}.hero h1{font-size:62px}.hero-grid{gap:85px}}
@media(max-width:1100px){.nav{gap:18px}.nav a{font-size:13px}.header-inner{gap:15px}.header-cta{display:none}.hero-grid{gap:35px}.hero h1{font-size:49px}.hero{padding-top:45px}.diagnostic{padding:24px}.activity-layout,.calendar-layout{gap:36px}.faq-layout{gap:50px}.calendar-cards{grid-template-columns:repeat(3,1fr)}.date-card{padding:20px 16px}.date strong{font-size:26px}.product-body{padding:20px}.product-actions>.button{font-size:13px}}
@media(max-width:800px){.container{padding:0 24px}.header-inner{height:72px}.brand{font-size:22px}.menu-button{display:grid;place-items:center}.nav{display:none;position:absolute;top:72px;left:0;right:0;background:#fff;box-shadow:0 12px 20px #18382516;padding:18px 24px;flex-direction:column;align-items:stretch;gap:0;border-bottom:1px solid var(--line)}.nav.open{display:flex}.nav a{padding:13px 0;font-size:16px}.nav a.active:after{display:none}.hero-grid{grid-template-columns:1fr 1fr;gap:24px}.hero h1{font-size:41px;letter-spacing:-1.7px}.hero-copy{font-size:16px}.trust-list{gap:11px;font-size:12px}.diagnostic{padding:21px}.diagnostic h2{font-size:21px}.hero-bottom{align-items:flex-start;font-size:12px}.comparison-grid{gap:13px}.product-brand{gap:7px}.product-brand h3{font-size:19px}.product-body{padding:16px}.product-monogram{width:33px;height:34px}.product-label{padding:8px 16px;font-size:11px}.section{padding:48px 0}h2{font-size:30px}.section-heading{gap:20px}.section-heading p{font-size:15px}.section-heading>.text-link{white-space:normal;font-size:13px}.product-desc{font-size:13px}.feature-list{font-size:13px}.free-option{padding:16px 19px}.activity-layout,.calendar-layout,.faq-layout{grid-template-columns:1fr;gap:24px}.activity-intro p{max-width:600px}.calendar-section{padding:48px 0}.calendar-intro p{margin:13px 0}.calendar-cards{grid-template-columns:repeat(3,1fr)}.date-card{padding:24px}.date strong{font-size:32px}.guides{gap:15px}.guide{padding:22px}.guide h3{font-size:20px}.closing{padding:28px}.closing h2{font-size:24px}.footer-links{gap:30px}.footer-top{gap:40px}.footer-copy{max-width:40%}}
@media(max-width:620px){.topline{font-size:11px;min-height:39px;gap:4px;line-height:1.5}.topline>svg{display:none}.topline a{margin-left:2px}.container{padding:0 20px}.hero{padding:31px 0 22px}.hero-grid{grid-template-columns:1fr;gap:28px}.hero .eyebrow{font-size:11px;margin-bottom:14px}.hero h1{font-size:clamp(36px,10.4vw,45px);letter-spacing:-1.7px;max-width:410px}.hero-copy{margin:16px 0 16px;max-width:500px;font-size:16px}.hero-link{font-size:14px}.trust-list{margin-top:19px;gap:13px}.diagnostic{padding:23px 22px;border-radius:13px;box-shadow:0 5px 20px #12351608}.diagnostic h2{font-size:23px}.choices{min-height:0}.choice{padding:13px 14px;font-size:15px}.hero-bottom{margin-top:22px;padding-top:18px;flex-direction:column;gap:8px}.hero-bottom br{display:none}.hero-bottom p{font-size:12px}.section{padding:39px 0}.section-heading{align-items:flex-start;flex-direction:column;gap:13px;margin-bottom:22px}h2{font-size:29px;letter-spacing:-.9px}.section-heading .eyebrow{font-size:11px}.section-heading p{font-size:14px;line-height:1.7;margin-top:11px}.section-heading>.text-link{font-size:14px}.filters{flex-wrap:nowrap;overflow-x:auto;gap:6px;padding-bottom:7px;margin:18px -20px 15px;padding-left:20px;padding-right:20px;scrollbar-width:thin}.filter{white-space:nowrap;padding:8px 14px;font-size:13px}.comparison-grid{grid-template-columns:1fr;gap:16px}.product-body{padding:23px}.product-label{padding:9px 23px;font-size:12px}.product-brand h3{font-size:24px}.product-monogram{width:40px;height:40px}.product-desc{font-size:15px;min-height:0;margin-bottom:15px}.feature-list{font-size:14px;grid-template-columns:1fr;gap:7px}.product-limit{font-size:13px;padding-bottom:15px}.product-actions>.button{font-size:14px}.compare-check{font-size:13px}.compare-foot{flex-direction:column;gap:10px;font-size:12px}.free-option{align-items:flex-start;flex-direction:column;gap:13px}.free-option .free-title{align-items:flex-start}.free-option .text-link{padding-left:41px}.activity-grid{gap:0 17px}.activity-card{gap:9px;padding:20px 0;align-items:flex-start;position:relative;flex-wrap:wrap}.activity-icon{width:36px;height:38px}.activity-card>div:nth-child(2){flex:1;min-width:80px}.activity-card h3{font-size:16px;line-height:1.3}.activity-card p{font-size:12px}.activity-card>svg{display:none}.calendar-section{padding:39px 0}.calendar-cards{grid-template-columns:1fr}.date-card{padding:22px;display:grid;grid-template-columns:115px 1fr;column-gap:18px;border-right:0;border-bottom:1px solid var(--line)}.date-card:last-child{border-bottom:0}.date-card .status{grid-column:1/-1;margin-bottom:16px}.date{grid-row:2/4;margin-bottom:0}.date strong{font-size:27px}.date span{font-size:21px}.date-card h3{font-size:15px}.date-card p{font-size:13px}.guides{grid-template-columns:1fr;gap:15px}.guide{min-height:0;padding:25px}.guide-tag{margin-bottom:13px}.guide h3{font-size:23px}.guide p{font-size:15px}.faq-layout{gap:21px}.faq-intro p{margin-bottom:0}.faq-list summary{font-size:15px;padding:19px 0}.faq-list details p{font-size:14px;padding-right:8px}.closing{padding:27px 25px;flex-direction:column;align-items:flex-start;gap:20px;margin-bottom:38px}.closing h2{font-size:25px;line-height:1.3}.closing p{font-size:14px}.closing .button{width:100%}.footer{padding:30px 0 20px}.footer-top{flex-direction:column;gap:28px}.footer-copy{max-width:none}.footer-copy p{max-width:none}.footer-links{gap:50px}.footer-bottom{flex-direction:column;align-items:flex-start;gap:12px;margin-top:25px;font-size:11px}.footer-bottom .poland{font-size:12px}.dialog-top{padding:19px 21px}.dialog-top h2{font-size:23px}.dialog-content{padding:22px}.dialog-content p{font-size:15px}.dialog-content h3{font-size:20px}.comparison-bar{bottom:12px;gap:10px;padding:10px 12px 10px 16px;font-size:13px}.comparison-bar .button{font-size:12px;padding:10px 12px;min-height:38px}.comparison-bar .clear{padding:3px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important;animation:none!important}}

/* Expanded catalog: retained brand and compact homepage shortlist. */
.product-platform{font-size:12px;font-weight:600;letter-spacing:.2px;color:var(--green);margin:-4px 0 11px}
.product-brand h3{font-size:22px;line-height:1.2;overflow-wrap:anywhere}
.product-secondary{display:flex;gap:10px;align-items:center;justify-content:space-between;margin-top:14px;flex-wrap:wrap}
.product-details{font-size:13px;color:var(--green);background:none;border:0;padding:2px 0;text-align:left;text-decoration:underline;text-underline-offset:3px}
.product-details:hover{color:var(--green-dark);text-decoration-thickness:2px}
.product-secondary .compare-check{margin:0;white-space:nowrap;font-size:13px}
.compare-check:has(input:disabled){opacity:.5;cursor:default}
.affiliate-label{display:block;font-size:12px;color:var(--muted);margin-top:8px}
.product-monogram.ifirma{background:#fdf0e4;color:#9c501b;font-size:18px}
.product-monogram.taxmachine{background:#eaf0f8;color:#2f5589;font-size:16px}
.product-monogram.rafsoft{background:#eeeafa;color:#655194}
.product-monogram.billto{background:#e8f4f8;color:#086781}
.product-monogram.ksefopis{background:#fcf0e7;color:#975424}
.product-card[data-product=ifirma] .product-label{background:#f7f1e9;color:#775b35}
.product-card[data-product=wfirma] .product-label{background:#edf2fb;color:#3e597a}
@media(max-width:800px) and (min-width:621px){.product-brand h3{font-size:18px}.product-secondary{flex-direction:column;align-items:flex-start;gap:9px}}
@media(max-width:620px){.product-brand h3{font-size:23px}.product-secondary{gap:16px}}

/* Shared refinements for the decision tools and editorial pages. */
[hidden]{display:none!important}
html{scroll-padding-top:110px}
.hero{padding:42px 0 32px}
.hero-grid{gap:42px;grid-template-columns:1.08fr 1fr;align-items:start}
.hero h1{font-size:clamp(2.5rem,3.65vw,3.15rem);line-height:1.13;letter-spacing:-1.8px;margin-top:16px}
.hero-text{padding-top:18px}
.hero-copy{font-size:1.125rem;max-width:500px}
.hero-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.hero-actions .button{font-size:.9375rem}
.hero .trust-list{font-size:.875rem;margin-top:24px}
.hero-bottom{font-size:.875rem;margin-top:26px}
.diagnostic{padding:18px 24px 22px}
.journey-tabs{display:grid;grid-template-columns:1fr 1fr;gap:3px;padding:4px;background:#f0f4ef;border-radius:10px;margin-bottom:23px}
.journey-tabs button{background:transparent;border:0;padding:10px 7px;border-radius:7px;color:#435951;font-size:.875rem;font-weight:650;line-height:1.35}
.journey-tabs button[aria-selected=true]{background:white;color:var(--green);box-shadow:0 1px 5px #103b3315}
.journey-tabs button:hover{color:var(--green-dark);background:#fff9}
.match-panel>.pill{display:inline-block;color:var(--green);font-size:.8125rem;margin-bottom:10px}
.match-panel h2{font-size:1.5rem;margin:0 0 20px}
.match-panel label{display:block;font-size:.875rem;font-weight:650;margin:0 0 6px}
.match-panel select{display:block;min-height:48px;width:100%;border:1px solid #becdc2;border-radius:8px;background:#fff;color:var(--ink);padding:10px 30px 10px 12px;font-size:.9375rem;text-overflow:ellipsis}
select:focus-visible{outline:3px solid #2d68ed;outline-offset:3px}
.match-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:15px}
.match-fields>div{min-width:0}
.match-hint,.match-summary{font-size:.875rem;color:var(--muted);line-height:1.55;margin:14px 0 18px}
#match-form>.button{width:100%}
.match-panel h3{font-size:1.375rem}
.match-result{border-top:1px solid var(--line);padding:15px 0}
.match-result h4{font-family:var(--font-body, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);margin:0 0 3px;font-size:1.0625rem;line-height:1.4}
.match-result h4 a:hover{text-decoration:underline}
.match-result>strong{font-size:.9375rem;color:var(--green)}
.match-result p{font-size:.875rem;line-height:1.5;margin:6px 0}
.match-condition{color:var(--muted)}
.match-result .text-link{font-size:.875rem;white-space:normal}
.match-result-actions{display:flex;gap:15px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:15px}
.match-result-actions button{border:0;background:none;padding:0;text-decoration:underline;text-underline-offset:3px}
.match-result-actions .text-link{white-space:normal}
.diagnostic .privacy{font-size:.8125rem}
.diagnostic .question-note{font-size:.9375rem}
.diagnostic .choice{font-size:.9375rem;min-height:49px}
.result-box p,.result-detail{font-size:1rem}
.result-box strong{font-size:1.125rem}
.result-box .small-label{font-size:.875rem}
.quiz-actions{flex-wrap:wrap}
.product-desc,.feature-list{font-size:1rem;line-height:1.55}
.product-label,.product-limit,.product-details,.compare-check,.product-platform{font-size:.875rem}
.product-body{padding:22px}
.product-brand{min-height:64px;margin-bottom:8px}
.product-brand h3{font-size:1.5rem}
.product-brand.branded img{display:block;object-fit:contain;object-position:left center;width:150px;height:58px}
.product-brand.branded.wfirma img{background:var(--green);border-radius:8px;padding:8px 12px;width:145px;height:57px;object-position:center}
.product-brand.branded.ifirma img{width:175px;height:74px;object-position:left center;margin-left:-13px}
.product-price{display:grid;gap:4px;margin:5px 0 9px;padding-top:14px;border-top:1px solid var(--line)}
.product-price strong{font-family:var(--font-body, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);font-size:1.75rem;letter-spacing:-.6px;line-height:1.2}
.product-price span{font-size:.875rem;line-height:1.45;color:var(--muted)}
.price-note{font-size:.875rem;line-height:1.55;color:var(--muted);margin-bottom:18px}
.product-secondary{align-items:flex-start;gap:12px}
.product-secondary .product-details{line-height:1.5;text-decoration:underline;text-underline-offset:3px}
.product-secondary .compare-check{white-space:nowrap}
.compare-check input{width:18px;height:18px;flex-shrink:0}
.compare-foot{font-size:.875rem;line-height:1.5}
.compare-foot a{text-decoration:underline;color:var(--green);text-underline-offset:3px}
.compare-foot>span{white-space:nowrap}
.activity-card p,.guide p{font-size:1rem}
.activity-card:hover h3,.guide h3 a:hover{color:var(--green);text-decoration:underline;text-underline-offset:4px}
.guides{gap:22px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.guide{padding:23px!important;border:1px solid var(--line)!important;border-radius:12px;background:white;display:flex;flex-direction:column}
.guide .text-link{margin-top:auto;padding-top:18px;white-space:normal}
.guide-tag{font-size:.8125rem}
.guide h3{font-size:1.25rem;line-height:1.35}
.guide p{margin-top:12px}
.calendar-note,.date-card p{font-size:.9375rem}
.date-card .status{font-size:.8125rem}
.free-option p,.free-option .text-link,.footer-links a{font-size:.875rem}
.footer-copy p,.footer-bottom{font-size:.875rem}
.comparison-table{min-width:720px}
.comparison-table td,.comparison-table th{font-size:.9375rem;min-width:165px}
.comparison-table a:not(.button){text-decoration:underline;text-underline-offset:3px}
#detail-dialog{max-width:1100px;width:calc(100% - 32px)}
.breadcrumbs{display:flex;gap:10px;flex-wrap:wrap;color:var(--muted);font-size:.875rem;padding:24px 0 0}
.breadcrumbs a{text-decoration:underline;text-underline-offset:3px}
.article-heading{padding:32px 0 35px;max-width:1000px}
.article-heading h1{font-size:clamp(2rem,3.8vw,3.25rem);letter-spacing:-1.3px;line-height:1.13;font-weight:800}
.article-heading .eyebrow{margin-bottom:12px}
.article-lead{font-size:1.1875rem;color:var(--muted);line-height:1.65;max-width:860px;margin:20px 0 15px}
.article-byline{font-size:.875rem;color:var(--muted)}
.article-byline a{text-decoration:underline;text-underline-offset:3px}
.article-layout{display:grid;grid-template-columns:minmax(0,1fr) 275px;gap:64px;padding-bottom:72px;align-items:start}
.article-layout.full{display:block}
.article-body{min-width:0;font-size:1.0625rem;line-height:1.75}
.article-body section{margin:36px 0}
.article-body h2{font-size:1.75rem;line-height:1.3;letter-spacing:-.7px;margin:0 0 15px}
.article-body h3{font-size:1.2rem;line-height:1.4;margin:20px 0 10px}
.article-body p{margin:14px 0}
.article-body li{margin:8px 0}
.article-body ul,.article-body ol{padding-left:24px}
.article-body a:not(.button){color:var(--green);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.article-body a:hover{color:var(--green-dark);text-decoration-thickness:2px}
.answer-box{border-left:4px solid var(--green);border-radius:0 12px 12px 0;background:#f0f5ec;padding:20px 24px;margin-bottom:30px;font-size:1.0625rem}
.answer-box>strong{display:block;color:var(--green);font-size:.875rem;margin-bottom:6px}
.answer-box p{margin:0}
.article-aside{position:sticky;top:106px;display:grid;gap:25px}
.article-aside nav{border-top:1px solid var(--line);padding-top:20px;display:grid;gap:12px;font-size:.9375rem}
.article-aside nav a{color:var(--muted);padding-left:13px;border-left:2px solid var(--line);line-height:1.4}
.article-aside nav a:hover{border-color:var(--green);color:var(--green)}
.offer-aside{border:1px solid var(--line);padding:23px;border-radius:12px;display:grid;gap:10px;background:#f7f9f5}
.offer-aside>strong{font-size:1.125rem}
.offer-aside>p{font-size:1.8rem;line-height:1.25;font-weight:750;font-family:var(--font-body, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif)}
.offer-aside>span{font-size:.875rem;color:var(--muted);line-height:1.5}
.offer-aside .button{margin-top:10px;font-size:.9375rem}
.inline-price{font-size:2rem;font-family:var(--font-body, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);font-weight:750;line-height:1.2;color:var(--green)}
.data-table{width:100%;border-collapse:collapse;font-size:1rem;line-height:1.6;min-width:500px}
.data-table caption{text-align:left;font-size:.875rem;color:var(--muted);padding:0 0 12px}
.data-table th,.data-table td{padding:18px;text-align:left;vertical-align:top;border-bottom:1px solid var(--line)}
.data-table thead{background:#edf3e9}
.data-table tbody th{font-weight:650}
.data-table tbody tr:nth-child(even){background:#f9faf8}
.program-table{min-width:820px;table-layout:fixed}
.program-table th:first-child{width:21%}
.program-table th:nth-child(2){width:29%}
.program-table td p{font-size:.875rem;line-height:1.6}
.program-table .table-type{display:block;color:var(--muted);font-size:.875rem;font-weight:400;margin-top:5px}
.program-table .compare-check{justify-content:flex-start;font-weight:500;margin-top:15px}
.program-table .text-link{display:block;margin-top:13px;white-space:normal;font-size:.875rem}
.filter-count{font-size:.875rem;color:var(--muted)}
.facts-list{margin:0;border-top:1px solid var(--line)}
.facts-list>div{display:grid;grid-template-columns:140px 1fr;gap:20px;padding:13px 0;border-bottom:1px solid var(--line)}
.facts-list dt{font-weight:650}
.facts-list dd{margin:0}
.product-figure{margin:32px 0;padding:16px;background:#f7f9f5;border:1px solid var(--line);border-radius:12px}
.product-figure img{display:block;width:100%;height:auto}
.product-figure figcaption{font-size:.8125rem;line-height:1.6;color:var(--muted);margin-top:12px}
.article-sources{border-top:1px solid var(--line);padding-top:25px}
.article-sources p,.article-sources li,.editorial-note{font-size:.875rem!important;color:var(--muted);line-height:1.7}
.related-links{display:grid;gap:12px}
.related-links a{display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line);padding:13px 0}
.mini-products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.mini-products>a{border:1px solid var(--line);border-radius:9px;padding:16px;text-decoration:none!important;display:flex;flex-direction:column;gap:9px;font-size:1rem}
.mini-products>a:hover{background:#f3f7ef;border-color:var(--green)}
.mini-products span{font-size:.875rem;line-height:1.5;color:var(--muted)}
.mini-products span:last-child{color:var(--green);margin-top:auto}
.mini-products svg{width:16px;height:16px;vertical-align:middle}
.decision-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 30px}
.decision-grid>div{border-top:1px solid var(--line)}
body:has(.comparison-bar:not([hidden])){padding-bottom:95px}
@media(max-width:1100px){.hero-grid{gap:26px}.hero h1{font-size:2.65rem}.hero-actions .button{font-size:.875rem}.diagnostic{padding:16px 19px 20px}.article-layout{gap:35px;grid-template-columns:minmax(0,1fr) 235px}.product-body{padding:18px}.product-secondary{flex-direction:column}.nav a{font-size:.875rem}.header-cta{display:none}.product-desc,.feature-list{font-size:1rem}}
@media(max-width:850px){.hero-grid{grid-template-columns:1fr;gap:28px}.hero-text{max-width:650px;padding-top:0}.hero h1{font-size:2.8rem}.hero h1 br{display:none}.hero h1 br:after{content:' '}.hero-copy{max-width:650px}.diagnostic{max-width:650px;width:100%;padding:20px 26px}.hero-grid .diagnostic{justify-self:start}.comparison-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.guides{grid-template-columns:repeat(2,minmax(0,1fr))}.article-layout{grid-template-columns:minmax(0,1fr)}.article-aside{position:static;grid-row:1}.article-aside nav{display:none}.article-aside>.button{display:none}.offer-aside{grid-template-columns:1fr auto;align-items:center}.offer-aside>.button{grid-column:2;grid-row:1/4}.article-heading{padding-bottom:25px}.article-layout{gap:15px}.mini-products{grid-template-columns:repeat(3,minmax(0,1fr))}.activity-layout{gap:32px}.hero-bottom{align-items:flex-start}.compare-foot{flex-direction:column;gap:10px}}
@media(max-width:620px){.hero{padding:28px 0}.hero h1{font-size:2.25rem;letter-spacing:-1px;line-height:1.15}.hero h1 br{display:block}.hero .eyebrow{font-size:.75rem;margin-bottom:14px}.hero-copy{font-size:1rem;margin:18px 0}.hero-actions{display:grid;grid-template-columns:1fr}.hero-actions .button{font-size:.9375rem;min-height:48px}.hero .trust-list{font-size:.8125rem;gap:10px 16px;margin-top:18px}.diagnostic{padding:15px}.journey-tabs{margin-bottom:18px}.journey-tabs button{font-size:.875rem;padding:11px 5px}.match-fields{grid-template-columns:1fr;gap:14px}.match-panel h2{font-size:1.375rem}.match-panel select{font-size:1rem}.comparison-grid,.guides{grid-template-columns:1fr}.product-body{padding:23px}.product-secondary{flex-direction:row;align-items:center}.product-price strong{font-size:1.85rem}.section{padding:42px 0}.section-heading h2,.activity-intro h2,.faq-intro h2{font-size:1.8rem}.activity-card h3{font-size:1.0625rem}.activity-card p{font-size:.9375rem}.filters{flex-wrap:wrap;overflow:visible;gap:7px}.filter{font-size:.875rem;padding:9px 12px;min-height:42px}.guide{padding:23px!important}.hero-bottom{font-size:.875rem;display:block}.hero-bottom>a{margin-top:12px}.closing h2{font-size:1.55rem}.footer-bottom{font-size:.8125rem}.breadcrumbs{font-size:.8125rem;padding-top:20px}.article-heading h1{font-size:2rem;letter-spacing:-.8px}.article-lead{font-size:1.0625rem}.article-body{font-size:1rem}.article-body h2{font-size:1.5rem}.article-body section{margin:28px 0}.answer-box{padding:18px}.article-layout{padding-bottom:40px}.offer-aside{display:grid;grid-template-columns:1fr;padding:20px}.offer-aside>.button{grid-column:auto;grid-row:auto}.facts-list>div{grid-template-columns:1fr;gap:4px}.mini-products,.decision-grid{grid-template-columns:1fr}.data-table th,.data-table td{padding:14px}.comparison-bar{gap:10px;padding:12px 15px}.comparison-bar>span{font-size:.875rem}.comparison-bar .button{font-size:.875rem}.comparison-table td,.comparison-table th{font-size:.875rem}.product-brand.branded.ifirma img{margin-left:-13px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important;animation:none!important}}

/* FakturaKompas v4 — append after enhancements.css.
   HTML and behavior contract: /tmp/fk-v4-design-notes.md.
   Preserves the existing identity. No decorative arrows are introduced. */

:root {
  --focus: #245ee7;
  --soft-green: #f0f5ec;
  --soft-warning: #faf5ea;
  --warning-ink: #705321;
  --error-ink: #943522;
}

/* Reading and interaction states */
body { font-size: 17px; }
.article-body { font-size: 17px; line-height: 1.75; }
.article-body :where(p, ul, ol) { max-width: 75ch; }
.article-body :where(td, th) p { max-width: none; }
.product-desc, .feature-list { font-size: 17px; }
.button, .filter, .menu-button, .dialog-close { min-height: 44px; }
.dialog-close { width: auto; min-width: 44px; height: auto; min-height: 44px; padding: 10px 12px; border-radius: 8px; font-size: .875rem; line-height: 1.3; }
button, a, input, select, summary { touch-action: manipulation; }
button:focus-visible, a:focus-visible, input:focus-visible,
select:focus-visible, summary:focus-visible, [tabindex="0"]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
:where(button, input, select)[disabled] { cursor: not-allowed; }
.button:disabled, .button[aria-disabled="true"] {
  background: #e3e9e3;
  border-color: #cad4cc;
  color: #56635a;
  box-shadow: none;
  transform: none;
}
.article-body a.button { text-decoration: none; }
.article-body a.button:hover,
.article-body a.button:focus-visible { color: #fff; }
.article-body a.button-outline:hover,
.article-body a.button-outline:focus-visible { color: var(--green-dark); }
.article-body a.button-light:hover,
.article-body a.button-light:focus-visible { color: var(--green-dark); }
.guide:first-child h3 a:hover,
.guide:first-child h3 a:focus-visible { color: var(--lime); }
.guide:first-child a:focus-visible,
.comparison-bar :where(button, a):focus-visible {
  outline-color: var(--lime);
}
.nav a[aria-current="page"], .nav a[aria-current="location"] {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 9px;
  text-decoration-thickness: 2px;
}
.compare-check {
  min-height: 44px;
  padding: 7px 0;
  line-height: 1.4;
}
.compare-check input { width: 20px; height: 20px; }
.compare-check:has(input:focus-visible) {
  border-radius: 5px;
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.compare-check input:focus-visible { outline: none; }
.compare-check:has(input:disabled) { opacity: .7; }

/* A two-step form: ask only for inputs relevant to the selected job. */
.match-progress {
  display: flex;
  gap: 16px;
  padding: 0;
  margin: 0 0 23px;
  list-style: none;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.4;
}
.match-progress > li {
  flex: 1;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--line);
}
.match-progress > li[aria-current="step"],
.match-progress > li.is-current {
  color: var(--green);
  font-weight: 700;
  border-color: var(--green);
}
.match-progress > li.is-complete { border-color: #9db58a; }
.match-step { min-width: 0; padding: 0; margin: 0; border: 0; }
.match-step legend {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0 0 16px;
  font-family:var(--font-body, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  font-size: 1.2rem;
  font-weight: 750;
  line-height: 1.4;
}
.match-panel .match-fields { margin: 16px 0; gap: 16px 12px; }
.match-panel :where(input[type="number"], input[type="text"], select) {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #acbdb1;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 17px;
  line-height: 1.4;
}
.match-panel select { padding-right: 30px; }
.match-panel :where(input, select):focus-visible { border-color: var(--focus); }
.match-panel :where(input, select)[aria-invalid="true"] { border-color: var(--error-ink); }
.match-panel .field-note,
.match-panel .match-hint {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 400;
  line-height: 1.55;
}
.match-panel .field-error {
  color: var(--error-ink);
  margin: 7px 0 0;
  font-size: .9375rem;
  line-height: 1.5;
}
.match-panel .match-fields > div > small { display: block; margin-top: 6px; color: var(--muted); font-size: .875rem; line-height: 1.5; }
.match-panel .field-full { grid-column: 1 / -1; }
.match-panel .match-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 44px;
  margin: 0;
  padding: 10px 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.45;
  cursor: pointer;
}
.match-option input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--green);
}
.match-option small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.5;
}
.match-options {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 14px;
}
details.match-options { padding: 0; border: 1px solid var(--line); border-radius: 8px; }
details.match-options > summary { min-height: 48px; padding: 13px 15px; font-size: .9375rem; font-weight: 650; line-height: 1.45; cursor: pointer; }
details.match-options[open] { padding: 0 15px 15px; }
details.match-options[open] > summary { margin-inline: -15px; margin-bottom: 13px; border-bottom: 1px solid var(--line); }
.match-panel .check-label { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; margin: 14px 0 0; padding: 8px 0; font-size: 1rem; line-height: 1.5; font-weight: 500; cursor: pointer; }
.match-panel .check-label input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--green); }
.match-nav > .text-link { min-height: 48px; padding: 10px 8px; border: 0; background: transparent; text-decoration: underline; text-underline-offset: 3px; }
.match-error { margin: 16px 0; padding: 12px 14px; border: 1px solid #dfb8a9; border-radius: 8px; background: #fff5ef; color: var(--error-ink); font-size: .9375rem; line-height: 1.55; }
.match-conditional {
  margin: 12px 0 16px;
  padding: 16px;
  border-left: 3px solid #a7bda3;
  border-radius: 0 8px 8px 0;
  background: #f5f8f1;
}
.match-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}
.match-nav > .button { flex: 1; min-height: 48px; }
.match-nav > .quiz-back { min-height: 48px; padding: 10px 16px; }
.match-error-summary {
  margin: 16px 0;
  padding: 14px 16px;
  border: 1px solid #dfb8a9;
  border-radius: 8px;
  background: #fff5ef;
  color: var(--error-ink);
  font-size: .9375rem;
  line-height: 1.55;
}
.match-criteria {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 12px 0 20px;
  list-style: none;
}
.match-criteria > li {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7f9f5;
  color: #43564d;
  font-size: .875rem;
  line-height: 1.5;
}
.match-form-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: .9375rem;
}

/* Result cards work in the existing panel and in a wide results section. */
.match-results-section { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.match-results-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}
.match-results-heading h2, .match-results-heading h3 { margin: 0; }
.match-results-heading:not(:has(> div)) { display: block; }
.match-results-heading > p { margin-top: 14px; max-width: 75ch; }
.match-results-heading .match-profile { padding: 12px 15px; border-radius: 8px; background: #f0f5ec; color: #43564d; font-size: .9375rem; line-height: 1.6; }
.match-group { margin-top: 28px; }
.match-group > h3 { margin: 0 0 8px; font-size: 1.35rem; line-height: 1.4; }
.match-group > p { max-width: 75ch; margin: 0 0 18px; color: var(--muted); font-size: 1rem; }
.more-results { margin-top: 16px; }
.more-results > summary { min-height: 48px; padding: 12px 0; color: var(--green); font-size: .9375rem; font-weight: 650; cursor: pointer; }
.more-results[open] > summary { margin-bottom: 10px; }
.match-summary { max-width: 75ch; font-size: 1rem; }
.match-results-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  align-items: stretch;
  gap: 16px;
}
.match-result {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 20px;
  border: 1px solid #cfdacf;
  border-radius: 12px;
  background: #fff;
}
.match-result h3, .match-result h4 {
  margin: 0;
  font-family:var(--font-body, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  font-size: 1.25rem;
  font-weight: 750;
  line-height: 1.35;
  letter-spacing: -.3px;
}
.match-result :where(h3, h4) a { text-decoration: none; }
.match-result :where(h3, h4) a:hover { text-decoration: underline; text-underline-offset: 3px; }
.match-result .match-plan {
  display: block;
  margin-top: 5px;
  color: var(--green);
  font-size: 1.0625rem;
  font-weight: 650;
  line-height: 1.4;
}
.match-result p { margin: 0; font-size: 1rem; line-height: 1.6; }
.match-result .small-label { color: var(--muted); font-size: .875rem; font-weight: 650; }
.match-result .price-note { color: var(--muted); font-size: .875rem; }
.match-result ul.match-condition { margin: 0; padding-left: 20px; }
.match-result ul.match-condition li { margin: 6px 0; }
.match-result .match-fit { color: var(--green); font-size: .9375rem; }
.match-result > .compare-check { justify-content: flex-start; margin-top: auto; padding-bottom: 0; }
.match-result .match-condition { color: var(--muted); font-size: .9375rem; }
.match-status {
  align-self: flex-start;
  padding: 4px 8px;
  border-radius: 5px;
  background: #edf4e8;
  color: var(--green);
  font-size: .8125rem;
  font-weight: 650;
  line-height: 1.5;
}
.match-status.is-conditional { background: var(--soft-warning); color: var(--warning-ink); }
.match-costs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  margin: 3px 0 0;
  padding: 17px 0;
  border-block: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.match-costs > div { min-width: 0; }
.match-costs dt { color: var(--muted); font-size: .875rem; font-weight: 500; line-height: 1.4; }
.match-costs dd {
  margin: 7px 0 0;
  color: var(--ink);
  font-family:var(--font-body, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  font-size: 1.4rem;
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: -.3px;
  overflow-wrap: break-word;
}
.match-costs dd > small, .match-costs dd > span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-family:var(--font-body, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  font-size: .875rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
}
.match-costs .match-cost-conditions { grid-column: 1 / -1; }
.match-costs .match-cost-conditions dd {
  font-family:var(--font-body, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  font-size: .9375rem;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0;
}
.match-result .match-result-actions {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
  border: 0;
}
.match-result-actions .button { min-height: 46px; }
.match-result .match-result-actions .compare-check { justify-content: flex-start; margin: 0; }
.match-result-actions button.button {
  padding: 12px 16px;
  border: 1px solid transparent;
  background: var(--green);
  color: #fff;
  text-decoration: none;
}
.match-result-actions button.button:hover { background: var(--green-dark); }
.match-result-actions button.button-outline { background: #fff; border-color: #aebfaf; color: var(--green); }
.match-result-actions button.button-outline:hover { background: #eef3ed; border-color: var(--green); }
.match-result-actions button[aria-pressed="true"] { background: #edf4e8; color: var(--green); border-color: var(--green); }
.match-result-actions button[aria-pressed="true"]:hover { background: #e3ecd9; color: var(--green-dark); }
.match-result-actions button.button:disabled {
  background: #e3e9e3;
  border-color: #cad4cc;
  color: #56635a;
  transform: none;
}
.match-empty {
  padding: 24px;
  border: 1px solid #d6dbc9;
  border-radius: 12px;
  background: #fbfcf6;
}
.match-empty p { margin: 10px 0; }
.match-empty .button { margin-top: 8px; }
.match-exclusions { margin-top: 20px; border-top: 1px solid var(--line); }
.match-exclusions summary { min-height: 48px; padding: 14px 0; cursor: pointer; font-weight: 600; }
.match-exclusions ul { margin: 0 0 16px; padding-left: 22px; font-size: .9375rem; color: var(--muted); }
.match-exclusions li { margin: 8px 0; }

/* Product offer: this card must include billing and limit text in its HTML. */
.offer-aside .offer-plan { padding: 12px 0; border-top: 1px solid var(--line); }
.offer-aside .offer-plan > strong { display: block; color: var(--green); font-size: 1rem; }
.offer-aside .offer-plan > p { margin: 7px 0; font-size: 1.45rem; font-weight: 750; line-height: 1.3; }
.offer-aside .offer-plan > small { display: block; color: var(--muted); font-size: .875rem; line-height: 1.55; }
.offer-aside .match-costs { grid-template-columns: 1fr; }
.offer-aside .match-costs dd { font-size: 1.35rem; }
.offer-aside > .price-note, .offer-aside > .match-condition { font: inherit; font-size: .875rem; font-weight: 400; line-height: 1.6; color: var(--muted); }

/* Full plan cards on product pages; the chosen plan stays identifiable. */
.plans-grid, .plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 22px; }
.plan-card, .article-body .plan-card { min-width: 0; margin: 22px 0; padding: 23px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.plans-grid .plan-card, .plan-grid .plan-card { margin: 0; }
.plan-card > header { margin-bottom: 22px; }
.plan-card > header > .pill { display: inline-block; margin-bottom: 8px; color: var(--muted); font-size: .875rem; font-weight: 600; }
.plan-card > header > h3 { margin: 0 0 9px; font-size: 1.45rem; line-height: 1.35; }
.plan-card > header > p { margin: 0; font-size: 1rem; line-height: 1.6; }
.plan-card .facts-list { font-size: .9375rem; line-height: 1.55; }
.plan-card .facts-list > div { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 15px; padding: 11px 0; }
.plan-billing { margin-top: 18px; padding: 17px; border: 1px solid var(--line); border-radius: 9px; background: #f9fbf7; }
.plan-billing > h4 { margin: 0 0 7px; color: var(--green); font-size: 1.0625rem; line-height: 1.4; }
.plan-billing .match-costs { padding-top: 12px; border-top: 0; }
.plan-billing .match-costs > div:nth-child(3):last-child { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 12px; }
.plan-billing .match-costs > div:nth-child(3):last-child dd { font-size: 1.125rem; }
.plan-billing .price-note { margin: 11px 0 0; font-size: .875rem; line-height: 1.6; }
.plan-billing .compare-check { justify-content: flex-start; margin: 9px 0 0; padding-bottom: 0; }
.plan-conditions { margin-top: 22px; font-size: .9375rem; line-height: 1.65; }
.plan-conditions > strong { color: var(--green); }
.plan-conditions ul { margin: 8px 0 0; padding-left: 20px; }
.plan-conditions li { margin: 6px 0; }
.plan-card > .button { display: flex; margin-top: 22px; min-height: 48px; white-space: normal; text-align: center; }
.plan-card > .source-note { margin: 15px 0 0; color: var(--muted); font-size: .8125rem; line-height: 1.6; }
.plan-card.selected-plan { border: 2px solid var(--green); padding: 22px; }
.plan-billing.selected-billing { border-color: #8eaa85; background: #eff5e9; box-shadow: inset 3px 0 0 var(--green); }
#selected-plan > p { margin: 12px 0; }
#selected-plan .match-costs { max-width: 540px; }
.table-plan-price + .table-plan-price { margin-top: 17px; padding-top: 17px; border-top: 1px solid var(--line); }
.table-plan-price > strong { display: block; font-variant-numeric: tabular-nums; }
.table-plan-price > span, .table-plan-price > small { display: block; margin-top: 5px; color: var(--muted); font-size: .875rem; line-height: 1.5; }

/* A native, collapsed mobile TOC is inserted after the opening answer. */
.mobile-toc { display: none; }
.article-aside nav a { min-height: 32px; padding-block: 6px; }
.article-aside nav a[aria-current="location"] {
  border-color: var(--green);
  color: var(--green);
  font-weight: 650;
}

/* Table containers, including a stable desktop comparison scroll pane. */
.table-wrap { max-width: 100%; margin-inline: 0; }
.table-wrap:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.cell-label { display: none; }
.comparison-desktop {
  max-height: min(64vh, 680px);
  margin: 16px 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.comparison-desktop .comparison-table {
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 720px;
}
.comparison-desktop .comparison-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #edf3e9;
  box-shadow: 0 1px 0 var(--line);
}
.comparison-desktop .comparison-table tr > :first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 150px;
  background: #f7f9f5;
  box-shadow: 1px 0 0 var(--line);
}
.comparison-desktop .comparison-table thead tr > :first-child { z-index: 4; background: #edf3e9; }
.comparison-desktop .comparison-table td { min-width: 190px; }
.comparison-table th .comparison-plan { display: block; margin-top: 5px; font-weight: 500; font-size: .875rem; }
.comparison-mobile { display: none; }
.comparison-scroll-note { color: var(--muted); font-size: .875rem; line-height: 1.5; }

/* Named selections, individual removal and a persistent cross-page tray. */
.comparison-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 20px;
  bottom: max(12px, env(safe-area-inset-bottom));
  width: min(1100px, calc(100% - 32px));
  max-width: none;
  padding: 15px 18px;
  border-radius: 12px;
  font-size: .9375rem;
}
.comparison-bar[hidden] { display: none; }
.compare-summary { grid-column: 1; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; }
.compare-summary strong { font-size: .9375rem; font-weight: 650; }
.compare-summary .compare-help { color: #d4e3d6; font-size: .8125rem; }
.compare-selection {
  grid-column: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.compare-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  max-width: 100%;
  min-width: 0;
  padding-left: 11px;
  border: 1px solid #527a69;
  border-radius: 7px;
  background: #234f43;
  color: #fff;
  font-size: .8125rem;
  line-height: 1.4;
}
.compare-chip > span { min-width: 0; padding-block: 7px; overflow-wrap: break-word; }
.compare-chip > button {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0 6px 6px 0;
  background: transparent;
  color: #fff;
  font-size: 22px;
  line-height: 1;
}
.compare-chip > button:hover { background: #386552; }
.compare-bar-actions { grid-column: 2; grid-row: 1 / span 2; display: flex; align-items: center; gap: 12px; }
.comparison-bar .compare-bar-actions .button { min-height: 44px; white-space: nowrap; }
.comparison-bar .compare-clear, .comparison-bar #clear-compare {
  display: block;
  min-height: 44px;
  padding: 8px 5px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: .875rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.comparison-bar .button:disabled { background: #b9c9ad; border-color: #b9c9ad; color: #314637; }
body:has(.comparison-bar:not([hidden])) {
  padding-bottom: calc(var(--compare-bar-height, 190px) + 28px + env(safe-area-inset-bottom));
}

@media (max-width: 850px) {
  .article-aside { grid-row: auto; }
  .article-aside:has(> nav):not(:has(.offer-aside)) { display: none; }
  .mobile-toc {
    display: block;
    margin: 0 0 28px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
  }
  .mobile-toc > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 50px;
    padding: 13px 16px;
    color: var(--green);
    font-size: 1rem;
    font-weight: 650;
    line-height: 1.4;
    cursor: pointer;
    list-style: none;
  }
  .mobile-toc > summary::-webkit-details-marker { display: none; }
  .mobile-toc > summary::after { content: "+"; font-size: 23px; font-weight: 400; }
  .mobile-toc[open] > summary::after { content: "−"; }
  .mobile-toc > nav { display: grid; padding: 0 16px 10px; }
  .mobile-toc > nav a {
    display: block;
    min-height: 44px;
    padding: 11px 0;
    border-top: 1px solid var(--line);
    font-size: .9375rem;
    line-height: 1.45;
  }
  .offer-aside { display: block; }
  .offer-aside > .button { display: flex; margin-top: 18px; }
  .comparison-bar { gap: 10px 14px; }
  .compare-bar-actions { flex-direction: column; gap: 3px; }
}

@media (max-width: 850px) {
  /* Wide overview tables become labeled product cards. Explicit table roles
     and aria-hidden .cell-label spans are required by the HTML contract. */
  .program-table, .table-stack-mobile {
    display: block;
    min-width: 0;
    width: 100%;
    border: 0;
  }
  .program-table > caption, .table-stack-mobile > caption { display: block; padding-bottom: 12px; }
  .program-table > thead, .table-stack-mobile > thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .program-table > tbody, .table-stack-mobile > tbody { display: grid; gap: 16px; }
  .program-table > tbody > tr, .table-stack-mobile > tbody > tr {
    display: block;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fff;
  }
  .program-table > tbody > tr > *, .table-stack-mobile > tbody > tr > * {
    display: block;
    width: auto;
    min-width: 0;
    padding: 12px 0;
    border: 0;
    font-size: 1rem;
    line-height: 1.6;
  }
  .program-table > tbody > tr > :first-child,
  .table-stack-mobile > tbody > tr > :first-child { padding-top: 0; font-size: 1.125rem; }
  .program-table > tbody > tr > :last-child,
  .table-stack-mobile > tbody > tr > :last-child { padding-bottom: 0; }
  .program-table > tbody > tr > td,
  .table-stack-mobile > tbody > tr > td { border-top: 1px solid var(--line); }
  .program-table .cell-label, .table-stack-mobile .cell-label {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: .8125rem;
    font-weight: 650;
    line-height: 1.4;
  }
  .program-table .compare-check { margin: 8px 0 0; padding-bottom: 0; }
  .comparison-desktop, .comparison-scroll-note { display: none; }
  .comparison-mobile { display: grid; gap: 22px; }
  .comparison-criterion { margin: 0; }
  .comparison-criterion > h3 {
    margin: 0 0 10px;
    color: var(--green);
    font-size: 1.0625rem;
    line-height: 1.4;
  }
  .comparison-values { margin: 0; border-top: 1px solid var(--line); }
  .comparison-values > div {
    display: grid;
    grid-template-columns: minmax(100px, .8fr) minmax(0, 1.3fr);
    gap: 14px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
  }
  .comparison-values dt { min-width: 0; font-weight: 650; font-size: .9375rem; line-height: 1.5; }
  .comparison-values dt span { display: block; margin-top: 4px; color: var(--muted); font-size: .8125rem; font-weight: 400; }
  .comparison-values dd { min-width: 0; margin: 0; font-size: 1rem; line-height: 1.6; overflow-wrap: break-word; }
  .comparison-values .button { white-space: normal; width: 100%; }
}

@media (max-width: 620px) {
  .article-body, .hero-copy, .product-desc, .feature-list { font-size: 17px; }
  .article-body h1, .article-body h2, .article-heading h1 { overflow-wrap: break-word; }
  .match-panel .match-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .match-panel .match-fields.single-column { grid-template-columns: 1fr; }
  .match-panel label { font-size: .9375rem; line-height: 1.4; }
  .match-panel .field-full { grid-column: 1 / -1; }
  .match-panel .match-hint { margin-top: 10px; }
  .match-nav { flex-wrap: wrap; }
  .match-progress { margin-bottom: 19px; font-size: .8125rem; }
  .match-results-heading { flex-direction: column; gap: 12px; }
  .match-results-grid { grid-template-columns: 1fr; }
  .match-result { padding: 18px; }
  .plan-card, .article-body .plan-card { padding: 18px; }
  .plan-card.selected-plan { padding: 17px; }
  .plan-billing { padding: 14px; }
  .plan-card .facts-list > div { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .match-costs dd { font-size: 1.4rem; }
  .match-result .match-result-actions { padding-top: 6px; }
  .data-table:not(.program-table):not(.table-stack-mobile) { min-width: 0; table-layout: fixed; }
  .data-table:not(.program-table):not(.table-stack-mobile) :where(th, td) {
    padding: 13px 10px;
    font-size: .9375rem;
    line-height: 1.6;
    overflow-wrap: break-word;
  }
  .data-table:not(.program-table):not(.table-stack-mobile) th:first-child { width: 35%; }
  #detail-dialog {
    width: calc(100% - 16px);
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: 12px;
  }
  #detail-dialog .dialog-top { padding: 14px 16px; gap: 14px; }
  #detail-dialog .dialog-top h2 { font-size: 1.25rem; line-height: 1.35; }
  #detail-dialog .dialog-content { padding: 16px; }
  .comparison-bar {
    grid-template-columns: minmax(0, 1fr);
    width: calc(100% - 20px);
    bottom: max(10px, env(safe-area-inset-bottom));
    gap: 9px;
    padding: 13px;
    max-height: 46vh;
    overflow-y: auto;
  }
  .compare-selection { gap: 6px; }
  .compare-chip { flex: 1 1 calc(50% - 6px); }
  .compare-chip > span { font-size: .8125rem; }
  .compare-bar-actions {
    grid-column: 1;
    grid-row: auto;
    flex-direction: row;
    gap: 14px;
    justify-content: space-between;
  }
  .compare-bar-actions .button { flex: 1; }
  .comparison-bar .compare-clear, .comparison-bar #clear-compare { padding-inline: 4px; }
}

@media (max-width: 359px) {
  .match-panel .match-fields, .match-costs { grid-template-columns: 1fr; }
  .match-panel .field-full, .match-costs .match-cost-conditions { grid-column: auto; }
  .comparison-values > div { grid-template-columns: 1fr; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

@media (forced-colors: active) {
  .guide:first-child h3 a:hover, .guide:first-child h3 a:focus-visible { color: LinkText; }
  .compare-chip, .match-result, .mobile-toc { border-color: CanvasText; }
  :where(button, a, input, select, summary):focus-visible { outline-color: Highlight; }
}

/* Shared build components. */
.calculator-layout{display:grid;grid-template-columns:minmax(320px,1fr) minmax(0,1fr);gap:48px;align-items:start;margin-bottom:40px}.calculator-form{padding:28px;background:#fff;border:1px solid var(--line);border-radius:16px}.calculator-explainer{padding-top:12px}.calculator-explainer li{margin:0 0 18px}.selected-plan-summary{border:2px solid var(--green)}.cell-label{display:none}.match-costs small{font-weight:500}.plan-card{scroll-margin-top:110px}#match-results{scroll-margin-top:110px}.match-error{color:#943522}.match-fields small{display:block;font-size:13px;color:var(--muted)}.article-body .more-results{margin:20px 0}.match-exclusions{margin:28px 0;padding:20px;background:#f6f7f3;border:1px solid var(--line);border-radius:10px}.match-exclusions summary,.more-results summary{cursor:pointer;font-weight:700;min-height:44px}.match-exclusions li{margin:12px 0}.plan-conditions ul{padding-left:22px}.plan-card .compare-check{align-items:center;white-space:normal}.calculator-explainer h2{margin-top:10px}.match-fields [hidden]{display:none!important}.match-panel form>fieldset[hidden]{display:none!important}
@media(max-width:850px){.calculator-layout{grid-template-columns:1fr;gap:24px}.calculator-form{padding:20px}.calculator-explainer{padding:0}.table-stack-mobile .cell-label,.program-table .cell-label{display:block}.dialog-top h2{font-size:22px}.comparison-values dd{margin:0}.article-body .plan-card h3{font-size:24px}.match-results .match-costs{grid-template-columns:1fr 1fr}}
@media(max-width:420px){.match-results .match-costs{grid-template-columns:1fr}.calculator-form{padding:16px}}

/* FakturaKompas — editorial comparisons.
   Load after v4.css. Components are opt-in; no identity or global layout reset.
   Components: scripts/cocon-components.mjs. No decorative arrows or imagery. */

/* A short answer belongs before the mobile table of contents. */
.profile-verdict,
.article-body .profile-verdict {
  margin: 0 0 24px;
  padding: 20px 23px;
  border: 1px solid #cddac8;
  border-left: 4px solid var(--green);
  border-radius: 0 11px 11px 0;
  background: #f0f5ec;
  color: var(--ink);
}
.profile-verdict .verdict-label {
  display: block;
  margin: 0 0 7px;
  color: var(--green);
  font-size: .8125rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .35px;
}
.profile-verdict > h2 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  line-height: 1.4;
  letter-spacing: -.3px;
}
.profile-verdict > p {
  margin: 0;
  max-width: 75ch;
  font-size: 17px;
  line-height: 1.65;
}
.verdict-profiles { margin: 0; }
.verdict-profiles > div {
  display: grid;
  grid-template-columns: minmax(125px, .75fr) minmax(0, 2.25fr);
  gap: 13px;
  padding: 11px 0;
  border-top: 1px solid #d4dfce;
}
.verdict-profiles > div:first-child { padding-top: 3px; border-top: 0; }
.verdict-profiles dt { margin: 0; font-size: .9375rem; font-weight: 650; line-height: 1.55; }
.verdict-profiles dd { margin: 0; font-size: 17px; line-height: 1.6; }
.profile-verdict .verdict-boundary {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid #d4dfce;
  color: #485b4e;
  font-size: .9375rem;
  line-height: 1.55;
}
.profile-verdict + .mobile-toc { margin-top: 0; }

/* Exact plan references, lighter than full product or offer cards. */
.plan-reference-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; margin: 16px 0 22px; }
.plan-reference,
.article-body a.plan-reference {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
  min-height: 58px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  color: var(--green);
  font-size: 1rem;
  line-height: 1.5;
  text-decoration: none;
}
.plan-reference > strong { font-weight: 650; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.plan-reference > .plan-reference-meta { color: var(--muted); font-size: .875rem; font-weight: 400; line-height: 1.55; }
.plan-reference:hover > strong,
.plan-reference:focus-visible > strong { color: var(--green-dark); text-decoration-thickness: 2px; }
.plan-reference:focus-visible { border-radius: 3px; outline: 3px solid var(--focus); outline-offset: 4px; }

/* One table serves either a duel (criteria as rows) or a short list (plans as rows).
   Source and payment conditions remain visible inside the relevant price cell. */
.editorial-comparison {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  font-size: 1rem;
  line-height: 1.6;
}
.editorial-comparison caption { max-width: 75ch; padding-bottom: 13px; font-size: .875rem; line-height: 1.6; }
.editorial-comparison thead th { padding: 15px; background: #edf3e9; font-weight: 650; line-height: 1.45; }
.editorial-comparison tbody :where(th, td) { padding: 16px 15px; vertical-align: top; }
.editorial-comparison thead th:first-child { width: 24%; }
.editorial-comparison.is-shortlist thead th:first-child { width: 25%; }
.editorial-comparison.is-shortlist thead th:nth-child(2) { width: 23%; }
.editorial-comparison .comparison-plan-name { display: block; margin-top: 5px; font-size: .875rem; font-weight: 400; line-height: 1.5; }
.editorial-comparison .comparison-amount { display: block; margin: 0; color: var(--ink); font-size: 1.0625rem; font-weight: 750; line-height: 1.45; font-variant-numeric: tabular-nums; }
.editorial-comparison .comparison-billing { display: block; margin-top: 6px; color: var(--muted); font-size: .875rem; line-height: 1.5; }
.editorial-comparison .comparison-condition { margin: 9px 0 0; color: var(--ink); font-size: .9375rem; line-height: 1.6; }
.editorial-comparison .comparison-source { margin: 10px 0 0; color: var(--muted); font-size: .875rem; line-height: 1.5; }
.editorial-comparison .comparison-source a { font-weight: 500; }
.editorial-comparison .comparison-status { display: inline-block; margin-top: 6px; padding: 3px 7px; border-radius: 4px; background: #faf5ea; color: #705321; font-size: .8125rem; font-weight: 600; line-height: 1.5; }
.editorial-comparison .compare-check { justify-content: flex-start; margin: 10px 0 0; padding-bottom: 0; font-size: .875rem; white-space: normal; }
.editorial-comparison .cell-label { display: none; }
.editorial-comparison td[data-label]::before { display: none; }
.comparison-table-note { margin: 12px 0 22px; color: var(--muted); font-size: .875rem; line-height: 1.6; }
.comparison-table-note > strong { color: var(--ink); font-weight: 650; }

/* A decisive distinction can be called out without creating another offer card. */
.decision-note { margin: 22px 0; padding: 16px 19px; border-left: 3px solid #9caf92; background: #f7f9f4; border-radius: 0 8px 8px 0; }
.decision-note > strong { display: block; margin-bottom: 5px; color: var(--green); font-size: 1rem; }
.decision-note > p { margin: 0; font-size: 17px; line-height: 1.65; }

/* One next action. The outline link is optional, not a second competing offer. */
.article-next-step,
.article-body .article-next-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px 24px;
  margin: 32px 0;
  padding: 23px;
  border: 1px solid #d1ddca;
  border-radius: 11px;
  background: #f4f7ef;
}
.article-next-step h2 { margin: 0 0 8px; font-size: 1.25rem; line-height: 1.4; letter-spacing: -.3px; }
.article-next-step p { margin: 0; max-width: 60ch; font-size: 17px; line-height: 1.6; }
.article-next-step .next-step-actions { display: grid; gap: 8px; justify-items: stretch; }
.article-next-step .button { min-height: 46px; max-width: 270px; text-align: center; white-space: normal; }
.article-next-step .next-step-secondary { display: inline-block; min-height: 44px; padding-block: 9px; font-size: .875rem; text-align: center; }

/* Parent and two useful siblings; no automatic catalogue of all articles. */
.comparison-route-nav { margin: 35px 0 0; padding-top: 21px; border-top: 1px solid var(--line); }
.comparison-route-nav > .comparison-parent { display: inline-block; min-height: 44px; margin-bottom: 10px; padding-block: 9px; color: var(--green); font-size: .9375rem; font-weight: 650; line-height: 1.5; }
.comparison-siblings,
.article-body .comparison-siblings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: none; padding: 0; margin: 0; list-style: none; }
.comparison-siblings > li,
.article-body .comparison-siblings > li { min-width: 0; margin: 0; }
.comparison-siblings a,
.article-body .comparison-siblings a {
  display: grid;
  align-content: start;
  gap: 7px;
  height: 100%;
  min-width: 0;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--green);
  text-decoration: none;
}
.comparison-siblings .route-label { color: var(--muted); font-size: .8125rem; font-weight: 500; line-height: 1.4; }
.comparison-siblings strong { font-size: 1.0625rem; font-weight: 650; line-height: 1.45; }
.comparison-siblings .route-purpose { color: var(--muted); font-size: .9375rem; line-height: 1.6; }
.comparison-siblings a:hover { border-color: #9caf92; background: #f7f9f4; }
.comparison-siblings a:hover strong, .comparison-siblings a:focus-visible strong { text-decoration: underline; text-underline-offset: 3px; }

/* /programy-ksef/#porownania: three text-led groups, no thumbnail grid. */
.comparison-index-jumps { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 26px; }
.comparison-index-jumps a { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 13px; border: 1px solid #c7d3c3; border-radius: 8px; color: var(--green); font-size: .9375rem; line-height: 1.4; }
.comparison-index-jumps a:hover { border-color: var(--green); background: #f0f5ec; }
.comparison-index { display: grid; gap: 36px; }
.comparison-group,
.article-body .comparison-group { margin: 0; padding-top: 22px; border-top: 1px solid var(--line); scroll-margin-top: 110px; }
.comparison-group > header { margin-bottom: 15px; }
.comparison-group > header > :is(h2, h3) { margin: 0 0 9px; font-size: 1.5rem; line-height: 1.35; }
.comparison-group > header > p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.comparison-index-list,
.article-body .comparison-index-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 30px; max-width: none; margin: 0; padding: 0; list-style: none; }
.comparison-index-list > li,
.article-body .comparison-index-list > li { min-width: 0; margin: 0; border-bottom: 1px solid var(--line); }
.comparison-index-list a,
.article-body .comparison-index-list a { display: grid; gap: 7px; min-height: 100px; padding: 18px 0; color: var(--green); text-decoration: none; }
.comparison-index-list strong { font-size: 1.125rem; font-weight: 650; line-height: 1.45; }
.comparison-index-list span { color: var(--muted); font-size: .9375rem; line-height: 1.6; }
.comparison-index-list a:hover strong, .comparison-index-list a:focus-visible strong { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 850px) {
  .editorial-comparison.table-stack-mobile { table-layout: auto; }
  .editorial-comparison.table-stack-mobile > tbody > tr { padding: 18px; }
  .editorial-comparison.table-stack-mobile > tbody > tr > :first-child { color: var(--green); font-size: 1.0625rem; line-height: 1.5; }
  .editorial-comparison.table-stack-mobile > tbody > tr > td { padding: 13px 0; }
  .editorial-comparison.table-stack-mobile > tbody > tr > td:last-child { padding-bottom: 0; }
  .editorial-comparison.table-stack-mobile .cell-label { display: block; color: var(--muted); font-size: .8125rem; font-weight: 650; line-height: 1.45; }
  /* Legacy fallback only: a real, aria-hidden .cell-label is preferred.
     It never duplicates a label already inserted by mobileTables(). */
  .editorial-comparison.table-stack-mobile td[data-label]:not(:has(.cell-label))::before {
    display: block;
    content: attr(data-label);
    margin-bottom: 5px;
    color: var(--muted);
    font-size: .8125rem;
    font-weight: 650;
    line-height: 1.45;
  }
  .article-next-step,
  .article-body .article-next-step { grid-template-columns: 1fr; }
  .article-next-step .next-step-actions { justify-items: start; }
  .article-next-step .button { max-width: none; }
  .article-next-step .next-step-secondary { text-align: left; }
}

@media (max-width: 620px) {
  .profile-verdict,
  .article-body .profile-verdict { padding: 17px 18px; margin-bottom: 20px; }
  .profile-verdict > h2 { font-size: 1.1875rem; }
  .verdict-profiles > div { grid-template-columns: 1fr; gap: 4px; padding: 11px 0; }
  .verdict-profiles dt { color: var(--green); }
  .verdict-profiles dd { font-size: 17px; }
  .profile-verdict .verdict-boundary { font-size: .9375rem; }
  .plan-reference-list { grid-template-columns: 1fr; gap: 0; }
  .article-next-step,
  .article-body .article-next-step { padding: 19px; gap: 17px; }
  .article-next-step .next-step-actions { justify-items: stretch; }
  .article-next-step .button { width: 100%; }
  .comparison-siblings,
  .article-body .comparison-siblings { grid-template-columns: 1fr; gap: 12px; }
  .comparison-siblings a { padding: 16px; }
  .comparison-index-list,
  .article-body .comparison-index-list { grid-template-columns: 1fr; }
  .comparison-index-list a { min-height: 88px; }
}

@media (forced-colors: active) {
  .profile-verdict, .decision-note, .article-next-step,
  .comparison-siblings a, .comparison-index-jumps a { border-color: CanvasText; }
  .editorial-comparison .comparison-status { border: 1px solid CanvasText; }
}

/* Details expose references without repeating full plan cards. */
.article-plan-options { margin: 30px 0; border-block: 1px solid var(--line); }
.article-plan-options > summary { min-height: 48px; padding: 15px 4px; cursor: pointer; color: var(--green); font-weight: 700; line-height: 1.5; }
.article-plan-options > p { font-size: .9375rem; color: var(--muted); }
.article-plan-options[open] { padding-bottom: 8px; }
.editorial-bridge { font-size: 1rem; line-height: 1.65; }
.home-comparisons { border-block: 1px solid var(--line); background: #f4f7ef; }
.home-comparisons .comparison-index-list { grid-template-columns: repeat(3,minmax(0,1fr)); margin-bottom: 25px; }
.home-comparisons .text-link { min-height: 44px; display: inline-flex; align-items: center; }
#porownania { scroll-margin-top: 105px; }
@media(max-width:850px){.home-comparisons .comparison-index-list{grid-template-columns:1fr;gap:0}.home-comparisons .comparison-index-list a{min-height:0}}

/* Offers follow an explained scenario. Equal visual weight preserves a duel. */
.contextual-offers { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin:24px 0 12px; }
.contextual-offer { min-width:0; display:flex; flex-direction:column; align-items:flex-start; padding:21px; border:1px solid #cbd7c7; border-radius:10px; background:#fff; }
.contextual-offer:only-child { grid-column:1/-1; }
.article-body .contextual-offer h3 { margin:0 0 10px; font-size:1.125rem; line-height:1.4; }
.article-body .contextual-offer p { margin:0 0 18px; font-size:1rem; line-height:1.65; }
.contextual-offer .button { margin-top:auto; min-height:46px; max-width:100%; white-space:normal; text-align:center; }
.contextual-offer small { margin-top:9px; color:var(--muted); font-size:.875rem; line-height:1.5; }
.article-body .decision-checklist { margin:20px 0; padding-left:25px; }
.decision-checklist li { padding-left:5px; }
.source-address { display:block; overflow-wrap:anywhere; color:var(--muted); font-size:.875rem; line-height:1.5; margin:4px 0 10px; }
.article-sources .source-reference { overflow-wrap:anywhere; }
.article-body .profile-verdict .verdict-boundary { margin-top:12px; }
.editorial-comparison .comparison-amount { font-size:1rem; font-weight:650; }
.editorial-comparison .comparison-price-line { display:block; font-size:1rem; line-height:1.6; }
.editorial-comparison .comparison-price { color:var(--ink); font-weight:700; font-variant-numeric:tabular-nums; }
@media (min-width:851px) and (max-width:1100px) {
  .article-layout:has(.profile-verdict) { display:block; }
  .article-layout:has(.profile-verdict) > .article-aside { display:none; }
  .article-layout:has(.profile-verdict) .mobile-toc { display:block; margin:0 0 28px; border:1px solid var(--line); border-radius:8px; }
  .article-layout:has(.profile-verdict) .mobile-toc summary { min-height:48px; padding:12px 16px; cursor:pointer; font-weight:650; color:var(--green); }
  .article-layout:has(.profile-verdict) .mobile-toc nav { display:grid; gap:5px; padding:0 16px 16px; }
  .article-layout:has(.profile-verdict) .mobile-toc nav a { padding:8px 0; }
}
@media(max-width:620px) {
  .contextual-offers { grid-template-columns:1fr; gap:12px; }
  .contextual-offer { padding:18px; }
  .contextual-offer .button { width:100%; }
}
@media(forced-colors:active) { .contextual-offer { border-color:CanvasText; } }

/* Shared action states: forest at rest, amber for a clear interaction cue. */
:root {
  --action-hover: #edbc4b;
  --action-pressed: #d9a52e;
  --action-ink: #123c32;
}

.button, .text-link, .hero-link, .product-details,
.journey-tabs button, .filter, .site-header .nav a {
  transition: background-color .16s ease, color .16s ease,
    border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.site-header .nav { gap: 8px; }
.site-header .nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 11px 13px;
  border-radius: 8px;
  line-height: 1.4;
}
.site-header .nav a:is(.active, [aria-current="page"], [aria-current="location"]) {
  background: var(--green);
  color: #fff;
  text-decoration: none;
}
.site-header .nav a.active::after { display: none; }

/* Keyboard focus gets the same color feedback and keeps the shared focus ring.
   Specificity covers outline/light variants and buttons inside articles. */
.button:not(:disabled):not([aria-disabled="true"]):focus-visible,
.journey-tabs button:not(:disabled):focus-visible,
.filter:not(:disabled):focus-visible,
.site-header .nav a:focus-visible {
  background: var(--action-hover);
  border-color: var(--action-hover);
  color: var(--action-ink);
  box-shadow: 0 3px 12px #684b191f;
  text-decoration: none;
}
.text-link:not(:disabled):not([aria-disabled="true"]):focus-visible,
.hero-link:not([aria-disabled="true"]):focus-visible,
.product-details:not([aria-disabled="true"]):focus-visible {
  color: var(--action-ink);
  background: var(--action-hover);
  border-color: var(--action-ink);
  border-radius: 3px;
  box-shadow: 0 0 0 4px var(--action-hover);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Avoid persistent hover colors on touch-only screens. */
@media (hover: hover) {
  .button:not(:disabled):not([aria-disabled="true"]):hover,
  .journey-tabs button:not(:disabled):hover,
  .filter:not(:disabled):hover,
  .site-header .nav a:hover {
    background: var(--action-hover);
    border-color: var(--action-hover);
    color: var(--action-ink);
    box-shadow: 0 3px 12px #684b191f;
    text-decoration: none;
  }
  .text-link:not(:disabled):not([aria-disabled="true"]):hover,
  .hero-link:not([aria-disabled="true"]):hover,
  .product-details:not([aria-disabled="true"]):hover {
    color: var(--action-ink);
    background: var(--action-hover);
    border-color: var(--action-ink);
    border-radius: 3px;
    box-shadow: 0 0 0 4px var(--action-hover);
    text-decoration: underline;
    text-underline-offset: 4px;
  }
}

.button:not(:disabled):not([aria-disabled="true"]):active,
.journey-tabs button:not(:disabled):active,
.filter:not(:disabled):active,
.site-header .nav a:active {
  background: var(--action-pressed);
  border-color: var(--action-pressed);
  color: var(--action-ink);
  box-shadow: inset 0 1px 3px #573c1926;
  transform: translateY(0);
}

@media (max-width: 800px) {
  .site-header .nav { gap: 5px; }
  .site-header .nav a { padding: 13px 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .button, .text-link, .hero-link, .product-details,
  .journey-tabs button, .filter, .site-header .nav a { transition: none; }
}
@media (forced-colors: active) {
  .button:not(:disabled):not([aria-disabled="true"]):is(:hover, :focus-visible, :active),
  .journey-tabs button:not(:disabled):is(:hover, :focus-visible, :active),
  .filter:not(:disabled):is(:hover, :focus-visible, :active),
  .site-header .nav a:is(:hover, :focus-visible, :active) {
    background: Highlight;
    color: HighlightText;
    border-color: Highlight;
    box-shadow: none;
    forced-color-adjust: none;
  }
}

/* Small adaptations for native WordPress markup; brand styles stay unchanged. */
.nav .fk-menu { display: flex; align-items: center; gap: inherit; margin: 0; padding: 0; list-style: none; }
.nav .fk-menu li { margin: 0; padding: 0; list-style: none; }
.nav .fk-menu a { display: inline-flex; align-items: center; }
.fk-post-list { margin-bottom: 40px; }
.fk-post-list h2 { font-size: 24px; margin-bottom: 14px; }
.navigation.pagination { padding-bottom: 40px; }
.page-numbers { padding: 8px 12px; }
.admin-bar .site-header { top: 32px; }
.wp-block-html { max-width: 100%; }
@media (max-width: 800px) {
  .nav .fk-menu { flex-direction: column; align-items: stretch; gap: 0; }
  .nav .fk-menu a { display: flex; width: 100%; }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

/* WordPress v2: one production stylesheet, shared tokens and focused decisions. */
:root {
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: var(--font-body);
  --surface: #ffffff;
  --surface-soft: #f5f7f3;
  --surface-accent: #edf3e9;
  --border-control: #6b8176;
  --fk-header-space: 110px;
  --fk-bottom-space: 16px;
  font-family: var(--font-body);
}
html {
  scroll-padding-top: var(--fk-header-space);
  scroll-padding-bottom: var(--fk-bottom-space);
}
body.has-comparison,
body:has(.comparison-bar:not([hidden])) { padding-bottom: var(--fk-bottom-space); }
:where(a, button, input, select, summary, [tabindex]) { scroll-margin-block: 16px; }
:where(input:not([type="checkbox"]):not([type="radio"]), select, textarea),
.match-panel :where(input[type="number"], input[type="text"], select),
.calculator-form :where(input[type="number"], select) { border-color: var(--border-control); }
.choice, .choice-radio, .menu-button, .filter, .button-outline { border-color: var(--border-control); }
:where(input, select, textarea):focus-visible { border-color: var(--focus); }

/* A disclosure menu follows its toggle in reading and keyboard order. */
.site-header .menu-button { flex: none; }
.site-header .nav { min-width: 0; }
.menu-button:is(:hover, :focus-visible),
.compare-tray-toggle:is(:hover, :focus-visible),
.compare-chip > button:is(:hover, :focus-visible) {
  color: var(--action-ink);
  background: var(--action-hover);
  border-color: var(--action-hover);
}
.button:not(:disabled):not([aria-disabled="true"]):focus-visible,
.article-body a.button:not([aria-disabled="true"]):focus-visible {
  color: var(--action-ink);
  background: var(--action-hover);
  border-color: var(--action-hover);
}
@media (hover: hover) {
  .article-body a.button:not([aria-disabled="true"]):hover {
    color: var(--action-ink);
    background: var(--action-hover);
    border-color: var(--action-hover);
  }
}
@media (max-width: 800px) {
  .site-header .header-inner { gap: 12px; }
  .site-header .menu-button { margin-left: auto; }
  .site-header .nav { max-height: calc(100dvh - 88px); overflow-y: auto; overscroll-behavior: contain; }
  html:not(.fk-navigation-ready) .site-header .header-inner { height: auto; min-height: 72px; flex-wrap: wrap; padding-block: 14px; }
  html:not(.fk-navigation-ready) .site-header .nav { display: flex; position: static; flex-basis: 100%; padding: 0; box-shadow: none; border: 0; }
  html:not(.fk-navigation-ready) .site-header .menu-button { display: none; }
}

/* A calmer editorial hierarchy: less decoration, more useful numbers. */
.hero { background: var(--surface-soft); }
.hero h1 { max-width: 17ch; text-wrap: balance; }
.hero h1 em::after { display: none; }
.hero-copy { max-width: 48ch; }
.diagnostic { border-radius: 12px; box-shadow: 0 9px 28px rgb(16 59 51 / 7%); border-top: 4px solid var(--green); }
.article-heading { border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.article-heading h1 { max-width: 25ch; text-wrap: balance; }
.article-lead { max-width: 68ch; }
.profile-verdict, .answer-box { border-radius: 0 8px 8px 0; }
.match-result { border-radius: 10px; padding: 23px; gap: 13px; }
.match-result[data-result-status="confirmed"] { border-top: 4px solid var(--green); }
.match-result[data-result-status="conditional"] { border-top: 4px solid var(--warning-ink); }
.match-result .match-condition { margin: 0; padding: 12px 14px; background: var(--soft-warning); border-radius: 6px; }
.match-result .match-condition > strong { color: var(--warning-ink); font-size: .875rem; }
.match-result .match-condition ul { margin: 8px 0 0; padding-left: 19px; }
.match-result .match-condition li { margin: 6px 0; font-size: .9375rem; line-height: 1.5; }
.match-result .match-costs dd { font-size: 1.5rem; }
.match-result .match-result-actions { margin-top: 4px; padding-top: 4px; }
.match-result .match-result-actions .text-link { min-height: 44px; }
.match-empty-note { margin-block: 24px; }
.match-empty-note p + p { margin-top: 12px; }
.match-empty-note .button { margin-top: 15px; }
.plan-offer { max-width: 100%; min-height: 48px; text-align: center; white-space: normal; overflow-wrap: break-word; }
.plan-offer + .affiliate-label,
.affiliate-label { display: block; max-width: 55ch; margin-top: 8px; color: var(--muted); font-size: .8125rem; line-height: 1.5; }
.match-result-actions > .plan-offer { width: 100%; }
.quick-choice { padding: 21px 23px; border: 1px solid var(--line); border-left: 4px solid var(--green); background: var(--surface-soft); margin: 22px 0 30px; }
.quick-choice h2 { margin-top: 0; font-size: 1.25rem; }
.quick-choice .button { margin-top: 12px; }

/* Wordmarks identify the vendor; they are text, not invented brand logos. */
.brand-wordmark { display: inline-flex; align-self: flex-start; align-items: center; min-height: 30px; padding: 3px 9px; border: 1px solid var(--line); border-radius: 4px; font-size: 1rem; font-weight: 750; line-height: 1.3; letter-spacing: -.2px; color: var(--ink); background: var(--surface-soft); }
.brand-wordmark[data-brand="fakturownia"] { border-color: #bd602f; color: #8b401d; background: #fff3ea; }
.brand-wordmark[data-brand="wfirma"] { border-color: #31766a; color: #174e44; background: #edf5f1; }
.brand-wordmark[data-brand="ifirma"],
.brand-wordmark[data-brand="infakt"] { border-color: #4b6faa; color: #244775; background: #eff4fb; }
.brand-wordmark[data-brand="mf"] { border-color: #b34c5b; color: #8b2537; background: #fff0f1; }
.brand-wordmark[data-brand="taxmachine"],
.brand-wordmark[data-brand="rafsoft"] { border-color: #68726f; color: #384c44; background: #f3f5f4; }
.brand-wordmark[data-brand="billto"],
.brand-wordmark[data-brand="ksefopis"] { border-color: #79639c; color: #574273; background: #f6f1fb; }

/* Progressive catalogue: static HTML keeps every row available without JS. */
.catalogue-pagination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding: 20px 0 30px; border-bottom: 1px solid var(--line); }
.catalogue-pagination .catalogue-page-status { margin: 0; color: var(--muted); font-size: .9375rem; }
.catalogue-empty { flex-basis: 100%; }
.program-table td .plan-offer { margin-top: 14px; }
.program-table .table-plan-price > strong { font-size: 1.125rem; }
.program-table .table-type { margin-top: 9px; line-height: 1.55; }
.program-table details > summary { cursor: pointer; min-height: 44px; padding-block: 8px; font-size: .9375rem; color: var(--green); font-weight: 650; }
@media (max-width: 850px) {
  /* Overrides the desktop th:first-child width with greater specificity. */
  .program-table > tbody > tr > th:first-child,
  .program-table > tbody > tr > th:nth-child(2),
  .program-table > tbody > tr > td,
  .table-stack-mobile > tbody > tr > th:first-child { width: 100%; max-width: none; min-width: 0; }
  .program-table > tbody > tr > th:first-child { padding-bottom: 18px; font-size: 1.25rem; line-height: 1.4; }
  .program-table > tbody > tr { padding: 21px; border-radius: 9px; }
  .program-table > tbody > tr > td { font-size: 1rem; line-height: 1.6; }
  .program-table .cell-label { margin-bottom: 8px; color: var(--ink); }
  .program-table .plan-offer { display: flex; width: 100%; }
}

/* On a phone, the selection tray can expand its details when needed. */
.compare-tray-toggle { display: none; border: 1px solid #8eaf9f; color: #fff; background: transparent; min-height: 44px; padding: 8px 11px; border-radius: 6px; font-size: .8125rem; line-height: 1.3; }
@media (max-width: 620px) {
  .compare-tray-toggle { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
  .compare-tray-toggle::after { content: '+'; font-size: 17px; }
  .compare-tray-toggle[aria-expanded="true"]::after { content: '−'; }
  .comparison-bar.is-collapsed .compare-selection { display: none; }
  .comparison-bar .compare-help { display: none; }
  .comparison-bar { padding: 10px 13px; gap: 7px; }
  .compare-summary { justify-content: space-between; }
  .catalogue-pagination { align-items: stretch; flex-direction: column; }
  .catalogue-pagination .button { width: 100%; }
  .article-heading { margin-bottom: 21px; padding-bottom: 23px; }
  .hero h1 { max-width: 18ch; }
  .quick-choice, .match-result { padding: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media (forced-colors: active) {
  .brand-wordmark, .match-result, .quick-choice, .program-table > tbody > tr, .compare-tray-toggle { border-color: CanvasText; }
  .menu-button:is(:hover, :focus-visible), .compare-tray-toggle:is(:hover, :focus-visible), .compare-chip > button:is(:hover, :focus-visible), .article-body a.button:is(:hover, :focus-visible) { color: HighlightText; background: Highlight; border-color: Highlight; forced-color-adjust: none; }
}

/* Editorial scenarios and the dedicated deadlines guide. */
.calendar-summary { padding: 28px 30px; border-left: 4px solid var(--green); background: var(--surface-soft); }
.calendar-summary p { max-width: 65ch; margin: 0 0 17px; color: var(--muted); }
.calendar-summary p strong { color: var(--ink); }
.calendar-summary .button { margin-top: 4px; }
.decision-cards { border-top: 1px solid var(--line); }
.decision-cards > article { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); gap: 25px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.article-body .decision-cards h3, .article-body .decision-cards p { margin: 0; }
.decision-cards h3 { color: var(--green); }
.decision-list { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); margin: 20px 0; gap: 0 25px; }
.decision-list > :is(dt, dd) { margin: 0; padding: 20px 0; border-bottom: 1px solid var(--line); }
.decision-list dt { font-weight: 700; color: var(--green); }
.article-body .legal-timeline { list-style: none; padding: 0 0 0 22px; margin: 26px 0; border-left: 2px solid var(--green); }
.article-body .legal-timeline li { position: relative; margin: 0; padding: 0 0 25px; }
.article-body .legal-timeline li:last-child { padding-bottom: 0; }
.legal-timeline li::before { content: ''; position: absolute; left: -29px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px var(--surface); }
.legal-timeline strong { display: block; color: var(--green); }
.early-offers { margin-top: 22px; }
@media (max-width: 620px) {
  .calendar-summary { padding: 21px; }
  .decision-cards > article { grid-template-columns: 1fr; gap: 10px; }
  .decision-list { grid-template-columns: 1fr; }
  .decision-list dt { border-bottom: 0; padding-bottom: 4px; }
  .decision-list dd { padding-top: 4px; }
}

/* Optional measurement consent is a native disclosure in the footer. */
.stats-consent { max-width: calc(var(--max) - 64px); margin: 25px auto 0; padding: 0 20px; border: 1px solid var(--border-control); border-radius: 8px; background: var(--surface); color: var(--ink); }
.stats-consent > summary { min-height: 48px; padding: 13px 0; font-weight: 650; cursor: pointer; font-size: .9375rem; }
.stats-consent > p { margin: 0 0 17px; max-width: 70ch; font-size: .875rem; line-height: 1.6; color: var(--muted); }
.stats-consent .match-nav { justify-content: flex-start; margin: 14px 0 17px; flex-wrap: wrap; }
.stats-consent .match-nav > .button { flex: 0 1 auto; }
.stats-consent a:not(.button) { text-decoration: underline; text-underline-offset: 3px; color: var(--green); }
.product-price small { display: block; max-width: 45ch; color: var(--muted); font-size: .8125rem; font-weight: 450; line-height: 1.6; }
.calculator-form #cost-form :is(input, select) { width: 100%; min-height: 48px; background: var(--surface); color: var(--ink); border: 1px solid var(--border-control); border-radius: 7px; padding: 10px 12px; font-size: 1rem; }
.calculator-form #cost-form select { padding-right: 30px; }
.calculator-form #cost-form :is(input, select):focus-visible { border-color: var(--focus); outline: 3px solid var(--focus); outline-offset: 3px; }
.calculator-form #cost-form > label { margin-top: 16px; }
.calculator-form #cost-form > .button { width: 100%; margin-top: 8px; }
#cost-results { scroll-margin-top: var(--fk-header-space); }
@media (max-width: 620px) {
  .stats-consent { max-width: calc(100% - 32px); padding-inline: 16px; }
  .stats-consent .match-nav > .button { flex: 1 1 auto; }
}

/* Override the earlier .match-panel select shorthand at equal specificity. */
.match-panel :is(input, select, textarea) { border-color: var(--border-control); }
.match-panel :is(input, select, textarea):focus-visible { border-color: var(--focus); }
.match-panel :is(input, select, textarea)[aria-invalid="true"] { border-color: var(--error-ink); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--green); }

/* Native Gutenberg publishing tools — FakturaKompas 2.1. */
.fk-card-image { display:block; margin:0 0 16px; border-radius:10px; overflow:hidden; }
.fk-card-image img { display:block; width:100%; height:auto; aspect-ratio:16 / 9; object-fit:cover; }
.fk-list-pagination ul { display:flex; flex-wrap:wrap; gap:8px; list-style:none; padding:0; margin:24px 0; }
.fk-list-pagination a, .fk-list-pagination span { display:block; padding:8px 12px; border:1px solid var(--border, #64748b); border-radius:6px; }
.fk-list-pagination .current { font-weight:700; background:var(--navy, #0b2239); color:#fff; }
.article-body .wp-block-button__link { display:inline-block; padding:12px 20px; border-radius:8px; background:#123c52; color:#fff; font-weight:700; text-decoration:none; }
.article-body .wp-block-button__link:hover, .article-body .wp-block-button__link:focus-visible { background:#0b2239; }
.article-body h2[id] { scroll-margin-top:110px; }
