/* The right rail of every Kids Telling module (docs/UI_STYLE.md «Language, help, sign out»; Artwork is the reference).
   Computer: fixed on the right, top 88px, language / help / sign out, 46×46 buttons; the page keeps 76px for it.
   Phone (html[data-kt-layout=mobile], kt-rail.js): a 44×44 hamburger at the top right of the header; the panel drops
   below it, every control a 52×52 square in one centred column (as Artwork's). Shared by Management and Kids Telling Admin. */
.kt-rail { position:fixed; z-index:40; top:88px; right:max(10px, env(safe-area-inset-right, 0px)); display:flex; flex-direction:column;
  align-items:center; gap:10px; padding:10px 8px; background:#fff; border:1px solid #d6dfd6; border-radius:18px; box-shadow:0 6px 18px rgba(36,59,56,.12); }
.kt-rail > label { display:flex; justify-content:center; width:46px; min-width:46px; max-width:46px; margin:0; padding:0; position:relative; }
.kt-rail-btn { display:inline-flex; align-items:center; justify-content:center; width:46px; min-width:46px; height:46px; min-height:46px; padding:0;
  border-radius:12px; border:1px solid #d6dfd6; background:#fff; color:#285d4c; cursor:pointer; text-decoration:none; font:inherit; }
.kt-rail-btn:hover { background:#edf4eb; }
.kt-rail-btn:focus-visible { outline:3px solid #e3aa56; outline-offset:2px; }
.kt-rail .visually-hidden { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.kt-rail-toggle { display:none; }
html:not([data-kt-layout=mobile]) body.has-rail { padding-right:76px; }
/* the page's full-width bars run under the rail, as Artwork's header (margin-right:-76px): the rail stays on the page, not past its edge */
html:not([data-kt-layout=mobile]) body.has-rail > :is(.proto, header.top) { margin-right:-76px; padding-right:calc(4% + 76px); }

/* phone: the hamburger in the header, the panel below it */
.kt-rail-host { position:relative; }
html[data-kt-layout=mobile] .kt-rail-toggle { display:inline-flex; position:absolute; z-index:41; top:12px; right:12px; width:44px; min-width:44px; height:44px; min-height:44px; }
html[data-kt-layout=mobile] body > .kt-rail-toggle { position:fixed; right:max(12px, env(safe-area-inset-right, 0px)); }
html[data-kt-layout=mobile] .kt-rail { display:none; position:absolute; z-index:60; top:64px; right:12px; padding:12px; gap:10px; border-radius:16px;
  box-shadow:0 12px 32px rgba(20,40,30,.18); }
html[data-kt-layout=mobile] body > .kt-rail { position:fixed; right:max(12px, env(safe-area-inset-right, 0px)); }
html[data-kt-layout=mobile] .kt-rail.kt-open { display:flex; }
html[data-kt-layout=mobile] .kt-rail > label { width:52px; min-width:52px; max-width:52px; }
html[data-kt-layout=mobile] .kt-rail :is(.kt-rail-btn, .lang-fly-btn) { width:52px; min-width:52px; height:52px; min-height:52px; }
html[data-kt-layout=mobile] .kt-rail .lang-fly { width:52px; }

.kt-rail[hidden], .kt-rail-toggle[hidden], .kt-rail-btn[hidden] { display:none !important; }
