/* Higher specificity overrides the earlier 600px cap without touching inline models. */
.at-article figure.at-media.at-media--raster[data-full],
.at-article figure.at-media.at-media--svg[data-full],
.at-article figure.at-media[data-full] { width: 100%; max-width: 100%; box-sizing: border-box; margin: 1.8rem 0 .3rem; padding: 0; overflow: hidden; border-radius: 8px; border: 1px solid #dce5e9; background: #fff; cursor: zoom-in; }
figure.at-media picture { display: block; width: 100%; }
figure.at-media img { display: block; width: 100%; max-width: 100%; height: auto; margin: 0; }
figure.at-media figcaption { padding: .75rem .9rem; font-size: .88rem; line-height: 1.55; text-align: left; color: #365763; background: #f7fafb; margin: 0; }
figure.at-media:focus-visible { outline: 3px solid #0f7b89; outline-offset: 4px; }
.at-media-links { display: flex; align-items: center; flex-wrap: wrap; gap: .15rem 1.1rem; margin: 0 0 1.8rem; }
.at-media-full-link, .at-media-detail-link { display: inline-flex; align-items: center; min-height: 44px; padding: .4rem 0; font-size: .86rem; line-height: 1.45; color: #096d7c; text-decoration: underline; text-underline-offset: 3px; }
.at-media-full-link:focus-visible, .at-media-detail-link:focus-visible { outline: 3px solid #0f7b89; outline-offset: 4px; border-radius: 2px; }


.at-article {min-width:0;}
.at-article figure.at-media {width:100%;max-width:100%;}
.at-article :is(h2,h3,h4,li)[id] {scroll-margin-top:6rem;}
.at-article .at-table table,.at-article .at-table-scroll table {border-collapse:collapse;table-layout:auto;width:100%;min-width:620px;}
.at-article .at-table :is(th,td),.at-article .at-table-scroll :is(th,td) {padding:.8rem;line-height:1.55;font-size:.94rem;min-width:100px;text-align:left;white-space:normal;overflow-wrap:break-word;}
.at-article .at-table th,.at-article .at-table-scroll th {background:#edf4f6;color:#173444;}
.at-article .at-table tbody tr+tr td,.at-article .at-table-scroll tbody tr+tr td {border-top:1px solid #dce5e9;}
.at-article .at-table,.at-article .at-table-scroll {border:1px solid #dce5e9;border-radius:6px;}
.at-article .at-table caption,.at-article .at-table-scroll caption {padding:.85rem;color:#173444;}
.at-article .sources li {line-height:1.6;overflow-wrap:anywhere;}
@media(max-width:600px) {
 .at-article .at-table :is(th,td),.at-article .at-table-scroll :is(th,td) {display:table-cell;font-size:.9rem;padding:.7rem;}
 .at-article .at-table tr,.at-article .at-table-scroll tr {display:table-row;}
 .at-article .at-table thead,.at-article .at-table-scroll thead {display:table-header-group;}
 .at-article .at-table td::before,.at-article .at-table-scroll td::before {display:none;}
 .at-article .at-table::before,.at-article .at-table-scroll::before {display:block;padding:.65rem .8rem;font-size:.8rem;background:#f0f6f8;color:#365763;content:'Przesuń tabelę w poziomie, aby zobaczyć wszystkie kolumny.';}
 :lang(en) .at-article .at-table::before,:lang(en) .at-article .at-table-scroll::before {content:'Scroll the table horizontally to view all columns.';}
}

.at-article .at-native-scroll {display:block;max-width:100%;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;box-sizing:border-box;margin:18px 0;}
.at-article :is(.at-table,.at-table-scroll):has(> .at-native-scroll) {overflow:visible;border:0;}
.at-article :is(.at-table,.at-table-scroll):has(> .at-native-scroll)::before {display:none;}
.at-article .at-native-scroll:focus-visible {outline:3px solid #0f7b89;outline-offset:3px;}

.at-article .at-image-scroll{margin:0;overflow:auto;}
.at-article .at-image-scroll img{max-width:100%;min-width:0!important;}
.at-article svg{font-family:Arial,Helvetica,sans-serif;}
.at-article .at-svg-scroll svg{min-width:0!important;max-width:100%;width:100%;height:auto;}

/* Educational figures fit the article; mobile source files reflow dense content. */
.at-article figure.chart-inline{width:100%;max-width:100%!important;box-sizing:border-box;}
.at-article figure.at-media picture{display:block;width:100%;max-width:100%;}
.at-article figure.at-media img{min-width:0!important;max-width:100%;height:auto;}
.at-article .at-svg-scroll{overflow:visible;width:100%;max-width:100%;}
.at-article figure.at-media figcaption{font-size:.9rem;line-height:1.65;}

html[dir="rtl"] figure.at-media figcaption{text-align:start}
