.cms-language-switcher{
  display:inline-flex;
  align-items:center;
  align-self:center;
  gap:2px;
  flex-shrink:0;
  padding:3px;
  margin:0 56px 0 8px;
  border:1px solid #deddd5;
  background:#f7f6f0;
  border-radius:4px;
  box-shadow:none;
  z-index:21;
}
.cms-language-switcher button{
  border:0;
  background:transparent;
  color:#686862;
  font:700 11px/1 "Noto Sans Georgian","Segoe UI",system-ui,sans-serif;
  letter-spacing:.06em;
  min-width:34px;
  height:30px;
  padding:0 10px;
  border-radius:3px;
  cursor:pointer;
  transition:background .18s ease,color .18s ease,transform .15s ease;
}
.cms-language-switcher button:hover{
  color:#11110f;
  background:rgba(255,255,255,.85);
}
.cms-language-switcher button:focus-visible{
  outline:2px solid #ffd52e;
  outline-offset:2px;
}
.cms-language-switcher button.is-active{
  background:#11110f;
  color:#ffd52e;
}
.cms-language-switcher button.is-active:hover{
  background:#11110f;
  color:#ffd52e;
}
html[data-theme="dark"] .cms-language-switcher{
  border-color:rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
}
html[data-theme="dark"] .cms-language-switcher button{color:#b8b6ae}
html[data-theme="dark"] .cms-language-switcher button:hover{
  color:#f2f0e8;
  background:rgba(255,255,255,.1);
}
html[data-theme="dark"] .cms-language-switcher button.is-active{
  background:#ffd52e;
  color:#11110f;
}
.cms-editor-preview{-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.cms-editor-preview [data-cms-key]{outline:1px dashed transparent;outline-offset:3px;cursor:text;-webkit-user-select:text;user-select:text}
.cms-editor-preview [data-cms-key]:hover,
.cms-editor-preview .cms-hover{outline-color:#ffd42a}
.cms-editor-preview .cms-selected{outline:2px solid #ffd42a !important;outline-offset:4px !important;box-shadow:0 0 0 1px #ffd42a55}
.cms-editor-preview .cms-editing{outline:2px solid #ffd42a !important;outline-offset:4px !important;box-shadow:0 0 0 4px #ffd42a33 !important;caret-color:#111;cursor:text;min-width:1ch}
html.cms-browse-mode.cms-editor-preview [data-cms-key]{cursor:inherit;-webkit-user-select:auto;user-select:auto}
html.cms-browse-mode.cms-editor-preview [data-cms-key]:hover,
html.cms-browse-mode.cms-editor-preview .cms-hover{outline-color:transparent}
html.cms-browse-mode a[href]{cursor:pointer}
.cms-editor-preview [data-cms-media]{cursor:pointer}
.cms-editor-preview [data-cms-media].cms-selected,
.cms-editor-preview [data-cms-media].cms-editing{outline:2px solid #ffd42a !important;outline-offset:4px !important}
.cms-search-focus{outline:3px solid #ffd42a !important;outline-offset:4px !important;box-shadow:0 0 0 6px #ffd42a55 !important}
.cms-pulse{animation:cmsPulse .7s ease 1}
@keyframes cmsPulse{0%{box-shadow:0 0 0 0 #ffd42a88}70%{box-shadow:0 0 0 12px #ffd42a00}100%{box-shadow:0 0 0 0 #ffd42a00}}
.cms-hover-tip{position:fixed;z-index:10000;pointer-events:none;background:#ffd42a;color:#111;font:700 11px/1.2 ui-monospace,Consolas,monospace;padding:6px 8px;border:1px solid #111;white-space:nowrap}
.cms-inline-editor{position:fixed;z-index:10001;min-width:260px;max-width:min(420px,calc(100vw 16px));background:#111;border:1px solid #ffd42a;padding:10px;box-shadow:0 16px 40px #0008;display:grid;gap:8px}
.cms-inline-label{color:#ffd42a;font:700 11px/1.2 ui-monospace,Consolas,monospace}
.cms-inline-editor textarea{width:100%;min-height:72px;border:1px solid #333;background:#fff;color:#111;padding:10px;font:16px/1.45 system-ui;resize:vertical}
.cms-mobile-sheet{position:fixed;left:0;right:0;bottom:0;z-index:10050;background:#111;border-top:2px solid #ffd42a;padding:10px 14px calc(14px + env(safe-area-inset-bottom,0px));display:grid;gap:10px;box-shadow:0 -20px 50px #000a;max-height:min(48vh,420px)}
.cms-mobile-sheet-handle{width:42px;height:4px;border-radius:99px;background:#444;margin:2px auto 4px}
.cms-mobile-sheet-head{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#ffd42a}
.cms-mobile-sheet-head strong{font:700 13px/1.2 system-ui}
.cms-mobile-sheet-x{border:0;background:transparent;color:#aaa;font-size:22px;line-height:1;min-width:48px;min-height:48px;padding:0;cursor:pointer;z-index:2;position:relative;-webkit-tap-highlight-color:transparent}
.cms-mobile-sheet-x:active{color:#fff}
.cms-mobile-sheet-input{width:100%;min-height:110px;border:1px solid #333;background:#fff;color:#111;padding:12px;font:16px/1.45 system-ui;resize:vertical;border-radius:0}
.cms-mobile-sheet-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.cms-mobile-sheet-actions button{min-height:48px;border:1px solid #333;background:#1a1a1a;color:#f5f2e8;font:700 15px/1 system-ui}
.cms-mobile-sheet-done{background:#ffd42a !important;color:#111 !important;border-color:#ffd42a !important}
html.cms-sheet-open{overflow:hidden}
.cms-missing-translation{position:relative;background:repeating-linear-gradient(-45deg,#ffd42a22 0 8px,#0000 8px 16px) !important;outline:1px dashed #ffd42a !important}
.cms-missing-flag{display:inline-block;margin-left:8px;padding:2px 6px;background:#ffd42a;color:#111;font:700 10px/1.2 system-ui;vertical-align:middle}
@media(prefers-reduced-motion:reduce){.cms-pulse{animation:none}}
@media(max-width:900px){
  .header > .cms-language-switcher{
  order:2;
  margin-left:auto;
  margin-right:4px;
  }
  .header > .cms-language-switcher ~ .pull-cord{
  margin-left:0;
  order:3;
  }
  .header > .cms-language-switcher ~ .burger{
  order:4;
  }
  .cms-language-switcher button{
  min-width:30px;
  height:28px;
  padding:0 7px;
  font-size:10px;
  }
}
@media(max-width:600px){.cms-hover-tip{display:none}}

/* SEO locale routing anti-FOUC guard.
  i18n-boot.js adds .cms-lang-pending on <html> as soon as a non-Georgian
  locale is detected (before paint); cms-client.js removes it once the
  translated content is applied (or after a 2s safety timeout). Only the
  body fades Georgian is authored directly in the HTML, so ka never
  flashes. */
html.cms-lang-pending body{opacity:0}
html:not(.cms-lang-pending) body{opacity:1;transition:opacity .15s ease}
