/* Source explanations share the existing Polish palette and type scale. */
@layer reset,base,components,responsive,polska,typography,brand,sources;
@layer sources {

 .source-panel a:not(.text-link),.page-byline a{color:var(--brand-link);text-decoration:underline;text-underline-offset:3px}
 .page-byline a:hover{color:var(--ink)}

 .page-head .page-byline{font-size:.875rem;line-height:1.65;margin-top:8px;color:var(--muted)}
 #jak-pracujemy,#zrodla,#pomoc{scroll-margin-top:120px}
 
 
}

@layer sources {
 .budget-examples{scroll-margin-top:120px}.budget-examples .section-head p:not(.eyebrow){margin-top:12px;color:var(--muted);max-width:70ch}
 
 .budget-example{display:flex;flex-direction:column;padding:24px;border:1px solid var(--line);border-radius:12px;background:var(--white)}
 .budget-example>.eyebrow{color:var(--brand-link)}.budget-example h3{margin-top:6px;font-size:1.375rem}
 .budget-example ul{list-style:none;margin:20px 0;padding:0;flex:1}.budget-example li+li{margin-top:16px}.budget-example li a{display:block;font-weight:700;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}.budget-example li span{display:block;color:var(--muted);font-size:.875rem;margin-top:3px}
 .budget-example dl{margin:0;padding-top:16px;border-top:1px solid var(--line)}.budget-example dl div{display:flex;justify-content:space-between;align-items:baseline;gap:12px}.budget-example dt{font-size:.875rem}.budget-example dd{margin:0;white-space:nowrap;font-weight:700}.budget-example .budget-total{margin-top:5px}.budget-total dd{font-size:1.375rem;color:var(--brand-link)}
 .budget-excludes{font-size:.875rem;color:var(--muted);margin:10px 0 18px}.budget-example .btn{align-self:stretch;font-size:.875rem;padding-inline:12px}.budget-method{max-width:85ch;font-size:.875rem;color:var(--muted);line-height:1.7;margin-top:16px}.budget-method a{text-decoration:underline;text-underline-offset:3px}
 #obliczenia{scroll-margin-top:125px}
 @media(max-width:900px){.budget-example{padding:22px}.budget-example .btn{align-self:flex-start}.budget-examples .section-head{margin-bottom:20px}}
}

@layer sources {
 
 [data-catalog]{scroll-margin-top:16px}
 .empty.search-empty{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:24px;text-align:left;padding:28px 30px;border:1px solid var(--line);border-left:3px solid var(--brand-yellow);border-radius:10px}
 .search-empty h3{font-size:1.25rem;line-height:1.4;margin-bottom:8px;overflow-wrap:anywhere}
 .search-empty p{font-size:1rem;line-height:1.65;max-width:54ch}
 .search-empty .full-sheet-value{margin-top:12px;font-size:.875rem;line-height:1.65;color:var(--muted)}
 .full-sheet-value strong{color:var(--ink);font-weight:700}
 .empty-actions{display:flex;flex-direction:column;align-items:stretch;gap:10px;min-width:240px}
 .search-empty .btn{margin-top:0;min-height:44px;font-size:.875rem;padding:11px 18px;text-align:center}
 @media(max-width:700px){.empty.search-empty{grid-template-columns:1fr;gap:20px;padding:22px 18px}.empty-actions{min-width:0}.search-empty h3{font-size:1.125rem}}
}

/* Captions and source dates stay readable within the existing guide rhythm. */
.prose table,.prose table th,.prose table td{font-size:14px;line-height:1.6}
.prose table caption{text-align:left;font-weight:700;color:var(--ink);padding:0 0 12px;line-height:1.5}
.source-check-date{font-size:.875rem;color:var(--muted)}

/* Supporting explanations remain compact and keyboard accessible. */
.compact-source-note{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-block:24px;padding:20px 24px;border:1px solid var(--line);border-radius:12px;background:var(--white)}
.compact-source-note h2{font-size:1.125rem;line-height:1.4}.compact-source-note p{font-size:.875rem;line-height:1.7;color:var(--muted);margin-top:8px;max-width:72ch}
.compact-source-note>.text-link{flex-shrink:0;min-height:44px;gap:8px}.compact-source-note .icon{flex-shrink:0}
.compact-budget .budget-example-single{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(160px,.8fr) minmax(220px,1fr);align-items:center;gap:28px}
.compact-budget .budget-example-products ul{margin:0}.compact-budget .budget-example-single dl{padding:0;border:0}
.compact-budget .budget-example-action .btn{min-height:48px;width:100%;white-space:normal;line-height:1.5}.compact-budget .budget-excludes{margin:10px 0 0}
.detail-tools{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:start;margin:24px 0 12px}
.product-buying-note{padding:0;border:1px solid var(--line);border-radius:12px;background:var(--white);overflow:visible}
.product-buying-note>summary{min-height:52px;align-items:center;padding:16px 20px;gap:16px;font-size:1rem;line-height:1.5;border-radius:11px}.product-buying-note>summary::after{flex-shrink:0}
.product-buying-note ul{margin:12px 20px 12px;padding-left:20px;font-size:.875rem;line-height:1.7}.product-buying-note li+li{margin-top:6px}.product-buying-note p{margin:0 20px 20px;font-size:.875rem;line-height:1.7;color:var(--muted)}
.product-buying-note a{text-decoration:underline;text-underline-offset:3px}.product-buying-note summary:hover{background:var(--brand-soft)}
.product-buying-note summary:focus-visible{outline:2px solid var(--brand-yellow);outline-offset:3px}
.detail-budget-link{display:flex;align-items:center;gap:16px;min-height:76px;padding:18px 20px;border:1px solid var(--line);border-radius:12px;background:var(--white)}
.detail-budget-link>.icon{flex-shrink:0}.detail-budget-link>.icon:last-child{margin-left:auto}.detail-budget-link strong{display:block;font-size:1rem;line-height:1.45}.detail-budget-link small{display:block;font-size:.875rem;line-height:1.65;color:var(--muted);margin-top:4px}.detail-budget-link:hover{border-color:var(--brand-yellow)}
@media(max-width:1000px){.compact-source-note{align-items:flex-start;flex-direction:column;gap:8px}.compact-budget .budget-example-single{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:22px}.compact-budget .budget-example-products{grid-column:1/-1}.compact-budget .budget-example-products ul{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px}.compact-budget .budget-example-products li+li{margin:0}}
@media(max-width:650px){.compact-source-note{margin-block:20px;padding:16px}.compact-source-note>.text-link{white-space:normal}.compact-budget .budget-example-single{grid-template-columns:1fr;gap:20px}.compact-budget .budget-example-products{grid-column:auto}.compact-budget .budget-example-products ul{grid-template-columns:1fr;gap:16px}.compact-budget .budget-example-products li a{display:flex;align-items:center;min-height:44px}.detail-tools{grid-template-columns:1fr;gap:16px;margin:20px 0 12px}.product-buying-note>summary{padding:14px 16px}.product-buying-note ul{margin-inline:16px}.product-buying-note p{margin-inline:16px}.detail-budget-link{padding:16px}}

.compact-budget{padding-block:28px 16px}.compact-budget+.calc-packing-tip{padding-top:20px}.calc-packing-tip>h2:first-child{margin-top:0}
