/* Khan Advisory: site-wide layout fixes (mobile, readability, tap targets) */
html{-webkit-text-size-adjust:100%;scroll-padding-top:90px}
img,svg,video{max-width:100%;height:auto}
.kk-article .prose,.kk-article .card,.kk-article .note,.kk-article .warn-note,.kk-article td,.kk-article th{overflow-wrap:break-word}
/* cards and comparison grids collapse to one column on phones */
@media(max-width:700px){
 .cards.c2,.cards.c3,.cards.c4,.kk-article .compare,.kk-article .related,.kk-article .escal{grid-template-columns:1fr!important}
 .kk-article .card{min-width:0}
}
/* footer columns: two on small tablets, one on phones */
@media(max-width:480px){footer .fg{grid-template-columns:1fr!important;gap:26px!important}}
/* comfortable tap targets for filters and small buttons */
.kk-article button,.kk-article .chip,.kk-article [role="tab"]{min-height:40px}
/* grid items may shrink below their content, so wide tables scroll inside them */
.cards>*,.kk-article .compare>*,.kk-article .related>*,.kk-article .card{min-width:0}
.tbl{max-width:100%}
/* tables always scroll inside their own box rather than the page */
.kk-article .tw,.kk-article .tblwrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
/* anchor targets clear the fixed header */
:target{scroll-margin-top:96px}
/* further reading block on service and country pages */
.kk-further{max-width:1180px;margin:0 auto;padding:56px 28px 64px;font-family:"Inter",system-ui,sans-serif}
.kk-further h2{font-family:"Inter Tight","Inter",system-ui,sans-serif;font-size:26px;font-weight:600;color:#0E1C3D;margin:0 0 6px;letter-spacing:-.01em}
.kk-further>p{margin:0 0 22px;color:#5A6170;font-size:15.5px;line-height:1.55;max-width:680px}
.kk-further ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px}
.kk-further li a{display:block;height:100%;padding:18px 20px;border:1px solid #E2E6EF;border-radius:12px;background:#fff;color:#0E1C3D;text-decoration:none;transition:border-color .2s,box-shadow .2s}
.kk-further li a:hover{border-color:#1B3A8B;box-shadow:0 6px 22px -16px rgba(14,28,61,.5)}
.kk-further li b{display:block;font-size:15.5px;font-weight:600;line-height:1.35}
.kk-further li span{display:block;margin-top:6px;font-size:13.5px;color:#5A6170;line-height:1.45}
.kk-further li small{display:block;margin-bottom:6px;font-size:11.5px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:#C8872B}
@media(max-width:700px){.kk-further{padding:44px 20px 52px}.kk-further h2{font-size:22px}}
/* compact cookie banner on phones */
@media(max-width:600px){
 #kk-cc{left:10px!important;right:10px!important;bottom:10px!important;padding:12px 14px!important;font-size:12.5px!important;line-height:1.45!important;border-radius:10px!important}
 #kk-cc button,#kk-cc a.btn,#kk-cc [role="button"]{padding:9px 12px!important;font-size:13px!important;min-height:38px}
 #kk-cc-link{font-size:11px!important;padding:5px 8px!important}
}
