/* Live preview 29 Nov 2026 (responsive pass 2).
   Device fixes for phones, tablets and desktop, portrait and landscape.
   No content changes. Keeps the dark, modest look. */

/* 1. IXI ecosystem image: Enlarge button row and full-screen viewer. */
.kk-still .kv-f picture img.kz-zoomable{cursor:zoom-in}
.kk-still .kz-row{display:none;flex-wrap:wrap;align-items:center;gap:10px;margin:10px 0 0}
.kk-still .kz-row[hidden]{display:none!important}
@media (max-width:1199px),(pointer:coarse){.kk-still .kz-row{display:flex}}
.kk-still .kz-open{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 16px 0 13px;border-radius:999px;border:1px solid rgba(247,245,240,.45);background:transparent;color:#F7F5F0;font:500 14px/1 var(--ui,Inter,system-ui,sans-serif);cursor:pointer;-webkit-tap-highlight-color:transparent}
.kk-still .kz-open svg{width:18px;height:18px;flex:none}
.kk-still .kz-open:hover{background:rgba(247,245,240,.08)}
.kk-still .kz-open:focus-visible{outline:2px solid #F7F5F0;outline-offset:2px}
/* Play video sits in the row under the image on narrow screens (moved there by script). */
.kk-still .kz-row .kv-b{position:static;transform:none;left:auto;top:auto;min-height:44px;font-size:14px!important}
.kk-still .kz-row .kv-b span{padding:11px 16px 11px 13px;gap:8px}
.kk-still .kz-row .kv-b span::before{border-width:5px 0 5px 8px}
html.kz-lock,html.kz-lock body{overflow:hidden!important}
.kz{position:fixed;inset:0;z-index:2147483646;background:#05080f;font-family:var(--ui,Inter,system-ui,sans-serif)}
.kz[hidden]{display:none!important}
.kz-sc{position:absolute;inset:0;overflow:auto;overscroll-behavior:contain;touch-action:pan-x pan-y;-webkit-overflow-scrolling:touch;cursor:grab}
.kz-sc.kz-drag{cursor:grabbing}
.kz-in{display:flex;align-items:center;justify-content:center;min-width:100%;min-height:100%;width:max-content;height:max-content;padding:60px 8px 8px;box-sizing:border-box}
@media (min-width:600px){.kz-in{padding:60px 24px 24px}}
.kz-st{position:relative;flex:none;direction:ltr}
.kz-st img{display:block;width:100%;height:100%;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.kz-bar{position:fixed;top:8px;right:8px;display:flex;gap:8px;z-index:2}
.kz-b{width:44px;height:44px;display:flex;align-items:center;justify-content:center;border-radius:50%;border:1px solid rgba(247,245,240,.4);background:rgba(17,17,17,.85);color:#F7F5F0;font:400 26px/1 var(--ui,Inter,system-ui,sans-serif);cursor:pointer;padding:0}
.kz-b:hover{background:#222}
.kz-b:focus-visible{outline:2px solid #F7F5F0;outline-offset:2px}

/* 2. Contact grid (contact and memoir pages): the photo column was pushed
   off the right edge at 981-1180px (iPad landscape), causing sideways scrolling. */
.ct>*{min-width:0}
.mform input,.mform textarea{min-width:0;width:100%;box-sizing:border-box}

/* 3. Touch screens: 44px tap targets without changing the look. */
@media (pointer:coarse){
  footer .kk-fpages a{display:inline-flex;align-items:center;min-height:44px}
  .kk-child ol a,p.kk-up a{display:inline-flex;align-items:center;min-height:44px}
  .upd-row .mbtn,.upd-row input,form.reg .mbtn{min-height:44px}
  /* Larger invisible hit area; the text and the line spacing do not move. */
  .kk-home,nav a.mark,.kk-crumb a,footer a.kk-pl,.ctl a,.f-upd .upd-c a{position:relative}
  .kk-home::after,nav a.mark::after,.kk-crumb a::after,footer a.kk-pl::after,.ctl a::after,.f-upd .upd-c a::after{content:"";position:absolute;left:-6px;right:-6px;top:50%;height:44px;transform:translateY(-50%)}
}

/* 4. Long words in headings (German "Datenschutzerklärung" and similar)
   pushed phone pages sideways. Break only when a word cannot fit. */
h1,h2,h3{overflow-wrap:break-word}
.intro-grid>*,.pair>*,.rec-grid>*,.levels>*{min-width:0}
.tile,.rec-grid .card,.level{overflow-wrap:break-word}
/* Right-to-left lists on the firsts page: numbers hung past the right edge. */
html[dir=rtl] .kk-firsts ol{padding-right:1.4em}
.ctl dd{min-width:0;overflow-wrap:anywhere}
@media (max-width:600px){
  :is(:lang(bg),:lang(mk),:lang(sr),:lang(ta),:lang(de),:lang(nl),:lang(fi),:lang(hu),:lang(sv),:lang(da),:lang(nb),:lang(is),:lang(et),:lang(lt),:lang(lv),:lang(ru),:lang(uk),:lang(pl),:lang(cs),:lang(sk),:lang(sl),:lang(hr),:lang(el),:lang(tr)) :is(h1,h2,h3){-webkit-hyphens:auto;hyphens:auto}
}

/* 5. Small text (30 Nov 2026): lift the smallest labels to the size they
   already use on other screens. Same font, colour and spacing. */
@media (max-width:600px){
  html body .cover-meta{font-size:11px}
  html body nav .kk-upd{font-size:10px}
}
@media (min-width:601px){
  html body .portrait .scope .scope-head,html body .portrait .scope .scope-head>span{font-size:11px}
}

/* 6. Safety net (30 Nov 2026): no sideways scrolling on any screen. clip keeps the sticky header working. */
html,body{overflow-x:clip;max-width:100%}
main p,main li,main dd,main td,main figcaption{overflow-wrap:break-word}
