/* KRAN.EXPERT public UX REV02 · staging draft: stable columns, compact mobile actions.
   No external assets, widgets, trackers or form/script mutations. */
/* Keyboard-first navigation: visible only after focus; never steals screen. */
body.ke20-public .ke-skip-link{
 position:fixed;z-index:11000;left:12px;top:-140px;
 display:inline-flex;align-items:center;min-height:48px;
 max-width:calc(100vw - 24px);padding:11px 16px;
 border:3px solid #f9b720;border-radius:6px;
 background:#1a3c55;color:#fff;font-size:15px;font-weight:800;
 text-decoration:none;overflow-wrap:anywhere;
}
body.ke20-public .ke-skip-link:focus{
 top:12px;outline:3px solid #fff;outline-offset:2px;
}
@media(max-width:460px){
 body.ke20-public .ke-skip-link{left:7px;max-width:calc(100vw - 14px);font-size:14px;}
}

.ke20-public :where(.ke-home,.ke-service-page,.ke-journey-services,.ke30-hero,.ke30-process,.ke-home-service-grid,.ke-home-projects__grid,.ke-home-beams__mosaic,.ke-service-content){min-width:0;max-width:100%;}
.ke20-public :where(.ke-home-container,.ke-service-container,.ke-service-article,.ke-service-side,.ke-journey-service-grid>article,.ke-home-service-grid>article,.ke-home-projects__grid>figure,.ke-home-product-grid>article,.ke-journey-service-group){min-width:0;box-sizing:border-box;}
/* Limit intrinsic media width without overriding image-gallery aspect-ratio/cover heights. */
.ke20-public :where(.ke-home,.ke-service-page) :where(img,video){max-width:100%;}
.ke20-public #ke-service-details .ke-editorial-visual--article img{height:auto;}
.ke20-public :where(.ke-home,.ke-service-page) iframe{max-width:100%;}
.ke20-public :where(.ke-home,.ke-service-page) :where(a,button,input,select,textarea){box-sizing:border-box;}
.ke20-public :where(.ke-home,.ke-service-page) :where(h1,h2,h3,h4){overflow-wrap:break-word;}
.ke20-public :where(.ke-home,.ke-service-page) :where(a,p,li,figcaption){overflow-wrap:anywhere;}
.ke20-public :where(.ke-home,.ke-service-page) :where(a[href^="#"],section[id],form[id]){scroll-margin-top:clamp(80px,9vw,118px);}
.ke20-public :where(.ke-home,.ke-service-page) :where(details>summary){cursor:pointer;}
.ke20-public :where(.ke-home,.ke-service-page) :where(details>summary:focus-visible){outline:3px solid #a76a00;outline-offset:4px;}
.ke20-public :where(.ke-home,.ke-service-page) :where(input,textarea,select){max-width:100%;}
.ke20-public :where(.ke-home,.ke-service-page) :where(.ke-home-service-card,.ke-home-product-grid>article,.ke-journey-service-grid>article){text-wrap:pretty;}
.ke20-public :where(.ke-home,.ke-service-page) :where(.ke-home-hero__lead,.ke-service-lead,.ke-home-section__heading>p){max-width:72ch;}
.ke20-public .ke-mobile-action-bar{display:none;}
/* Documented procedure: never present an illustrative arrangement as a lift plan. */
.ke20-public .ke30-principle{margin:clamp(22px,3vw,42px) 0;padding:clamp(16px,3vw,28px);border:1px solid #c9d7e0;border-radius:8px;background:#f6f9fb;}
.ke20-public .ke30-principle__head{max-width:780px;}
.ke20-public .ke30-principle__head h2{color:#1a3c55;line-height:1.2;margin:0 0 10px;}
.ke20-public .ke30-principle__head p{color:#375468;line-height:1.6;margin:0 0 18px;}
.ke20-public .ke30-principle figure{margin:0;max-width:100%;overflow:hidden;border-radius:8px;border:1px solid #d3dce3;background:#001b33;}
.ke20-public .ke30-principle img{width:100%;height:auto;display:block;object-fit:contain;}
.ke20-public .ke30-principle figcaption{background:#fff;padding:12px 16px;font-size:12px;color:#38536a;line-height:1.5;}
.ke20-public .ke30-principle__zoom{margin:15px 0 0;}
.ke20-public .ke30-principle__zoom a{display:inline-flex;align-items:center;min-height:44px;padding:9px 15px;border:1px solid #1a3c55;border-radius:6px;background:#fff;color:#1a3c55;text-decoration:none;font-weight:700;font-size:13px;}
.ke20-public .ke30-principle__zoom a:hover{background:#eaf0f4;}
.ke20-public .ke30-principle__zoom a:focus-visible{outline:3px solid #a56800;outline-offset:3px;}
@media(max-width:760px){
  .ke20-public .ke-mobile-action-bar{position:fixed;z-index:90;inset:auto 0 0;display:flex;gap:10px;padding:10px max(12px,env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));background:#fff;border-top:1px solid #cbd7df;box-shadow:0 -4px 20px rgba(18,46,66,.12);}
  .ke20-public .ke-mobile-action-bar a{display:flex;flex:1;align-items:center;justify-content:center;min-width:0;min-height:48px;padding:10px 12px;border:1px solid #1a3c55;border-radius:6px;font-size:14px;font-weight:700;line-height:1.25;text-decoration:none!important;text-align:center;}
  .ke20-public .ke-mobile-action-bar__call{background:#fff;color:#1a3c55;}
  .ke20-public .ke-mobile-action-bar__task{background:#1a3c55;color:#fff!important;gap:6px;}
  .ke20-public .ke-service-page{padding-bottom:90px;}
  .ke20-public .ke-home-service-card{min-width:0;}
  .ke20-public .ke-journey-service-grid :where(article){min-width:0;}
  .ke20-public .ke30-principle{padding:12px;}
  .ke20-public .ke30-principle figcaption{font-size:11px;padding:10px;}
}
@media(max-width:360px){
  .ke20-public .ke-mobile-action-bar{gap:7px;padding-inline:8px;}
  .ke20-public .ke-mobile-action-bar a{font-size:13px;padding-inline:6px;}
  .ke20-public :where(.ke-service-page,.ke-home) :where(h1,h2){overflow-wrap:anywhere;}
}
@media(max-width:760px){
  .ke20-public:has(.ke-service-page input:focus) .ke-mobile-action-bar,
  .ke20-public:has(.ke-service-page textarea:focus) .ke-mobile-action-bar,
  .ke20-public:has(.ke-service-page select:focus) .ke-mobile-action-bar{display:none;}
}
@media(prefers-reduced-motion:reduce){
  .ke20-public :where(.ke-mobile-action-bar,.ke-home,.ke-service-page) *{scroll-behavior:auto!important;}
}
/* Public accessibility REV02.1 — resolved small-copy contrast and target-size candidates.
   WCAG 2.2 AA: min 4.5:1 for normal text, min 24x24 for applicable controls. */
body.ke20-public .ke-home .ke-home-beams__notice{
  color:#345367;font-size:12px;line-height:1.6;
}
body.ke20-public .ke-home .ke-home-beams__process span:not(:last-child)::after{
  color:#9c6500;
}
body.ke20-public .ke-home .ke-qw-form label small,
body.ke20-public .ke-home .ke-qw-form .ke-rapid-form label small{
  color:#38566a;
}
body.ke20-public .ke-home .ke-qw-form .ke-qw-extras>summary span{
  color:#38566a;font-size:12px;white-space:normal;text-align:right;
}
body.ke20-public .ke-journey-group-card .ke-journey-number{
  color:#38566a;
}
body.ke20-public .ke-rw__track span{
  color:#2e5064;
}
body.ke20-public :where(.ke-home,.ke-service-page) :where(.ke-home-service-card>a,.ke-home-practice__grid a,.ke-home-projects__links a,.ke30-actions a,.ke30-direction-links a,.ke-journey-section-nav a){
  display:inline-flex;align-items:center;min-height:44px;
}
body.ke20-public .ke-rw__optional>summary{
  min-height:44px;display:flex;align-items:center;cursor:pointer;
}
body.ke20-public .ke-home .ke-home-topic-grid span{
  min-height:44px;
}
body.ke20-public .ke-service-page :where(input,select,textarea):focus-visible,
body.ke20-public .ke-home :where(input,select,textarea):focus-visible{
  outline:3px solid #a56800;outline-offset:2px;
}
@media(max-width:760px){
 body.ke20-public .ke-service-page{padding-bottom:calc(100px + env(safe-area-inset-bottom));}
 body.ke20-public .ke-journey-breadcrumbs{line-height:1.7;}
 body.ke20-public .ke-mobile-action-bar{isolation:isolate;}
 body.ke20-public .ke-service-page input,
 body.ke20-public .ke-service-page select,
 body.ke20-public .ke-service-page textarea,
 body.ke20-public .ke-home .ke-qw-form input:not([type=checkbox]):not([type=radio]),
 body.ke20-public .ke-home .ke-qw-form select,
 body.ke20-public .ke-home .ke-qw-form textarea{
   font-size:16px;
 }
}
/* One-tap service cards: the whole card is a link, with intact semantic heading. */
body.ke20-public .ke-home .ke-home-service-card{position:relative;isolation:isolate;}
body.ke20-public .ke-home .ke-home-service-card>a::after{
  content:"";position:absolute;inset:0;z-index:1;border-radius:inherit;
}
body.ke20-public .ke-home .ke-home-service-card:focus-within{
  outline:3px solid #b0780a;outline-offset:3px;
}
body.ke20-public .ke-home .ke-home-service-card>a:focus-visible{outline:none;}
/* Cookie notice must not cover the service-call and enquiry actions. */
@media(max-width:760px){
 body.ke20-public:has(.ke-mobile-action-bar) .ke-cookie-panel:not([hidden]){
   bottom:calc(95px + env(safe-area-inset-bottom));
 }
}
@media(max-width:420px){
 body.ke20-public:has(.ke-mobile-action-bar) .ke-cookie-panel:not([hidden]){
   left:10px;right:10px;width:auto;max-width:none;
 }
}

/* Catalogue progressive reveal: server-rendered models remain readable without JS. */
body.ke20-public .ke30-discovery-controls{
  display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;
  gap:14px;padding:20px 0 10px;border-top:1px solid #dbe5ea;margin-top:18px;min-width:0;
}
body.ke20-public .ke30-discovery-controls[hidden]{display:none!important;}
body.ke20-public .ke30-discovery-count{
  font-size:14px;line-height:1.55;color:#38566a;margin:0;min-width:0;
}
body.ke20-public .ke30-discovery-more{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:48px;padding:12px 20px;border:1px solid #1a3c55;
  border-radius:6px;background:#1a3c55;color:#fff;font:inherit;
  font-size:14px;font-weight:800;line-height:1.35;cursor:pointer;
}
body.ke20-public .ke30-discovery-more[hidden]{display:none!important;}
body.ke20-public .ke30-discovery-more:hover{background:#28546e;}
body.ke20-public .ke30-discovery-more:focus-visible{outline:3px solid #a56800;outline-offset:3px;}
@media(max-width:640px){
 body.ke20-public .ke30-discovery-controls{align-items:stretch;gap:10px;}
 body.ke20-public .ke30-discovery-more{width:100%;}
 body.ke20-public .ke30-discovery-count{width:100%;text-align:center;}
}

/* Traverse catalogue: one readable process column on narrow phones, no
   double-column squeeze of technical text or sideways drifting. */
@media(max-width:440px){
  body.ke20-public .ke30-hero{grid-template-columns:minmax(0,1fr);gap:14px;margin:12px 0 25px;}
  body.ke20-public .ke30-hero h2{font-size:clamp(30px,9vw,38px)!important;line-height:1.12!important;}
  body.ke20-public .ke30-lead{font-size:16px!important;line-height:1.6!important;}
  body.ke20-public .ke30-actions{margin:16px 0;gap:8px;}
  body.ke20-public .ke30-actions>a{width:100%;display:flex;align-items:center;justify-content:center;min-height:48px;text-align:center;}
  body.ke20-public .ke30-process ol{grid-template-columns:minmax(0,1fr);gap:10px;margin:18px 0;}
  body.ke20-public .ke30-process li{min-width:0;border:1px solid #d7e1e7;border-left:3px solid #f9b720;border-radius:5px;padding:12px 15px;background:#f8fafb;gap:5px;}
  body.ke20-public .ke30-process strong{font-size:14px;}
  body.ke20-public .ke30-process span{font-size:13px;line-height:1.5;}
  body.ke20-public .ke30-filter{padding:12px;gap:11px;margin:15px 0;}
  body.ke20-public .ke30-grid{gap:14px;}
  body.ke20-public .ke30-model-copy{padding:17px;}
  body.ke20-public .ke30-hero-visual img{max-height:320px;object-fit:contain;}
  body.ke20-public .ke30-hero-visual figcaption{font-size:12px!important;}
}


