/* GEODOMAS · bendra dešinė modulių navigacija (visi subdomenai) */
.geo-module-rail-toggle {
  position: fixed;
  right: 0;
  top: calc(var(--gd-header-offset, 106px) + (100dvh - var(--gd-header-offset, 106px)) * 0.42);
  z-index: 138;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 7px 10px 9px;
  border: 1px solid rgba(29, 91, 55, .22);
  border-right: none;
  border-radius: 14px 0 0 14px;
  background: linear-gradient(180deg, #173326, #0f1f17);
  color: #e8f5ec;
  box-shadow: -8px 0 28px rgba(8, 18, 16, .28);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, padding .2s ease;
}
.geo-module-rail-toggle:hover {
  transform: translateY(-50%) translateX(-2px);
  box-shadow: -12px 0 34px rgba(8, 18, 16, .34);
}
.geo-module-rail-toggle[aria-expanded="true"] {
  opacity: 0;
  pointer-events: none;
}
.geo-module-rail-toggle-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
}
.geo-module-rail-toggle-icon svg { display: block; width: 100%; height: 100%; }
.geo-module-rail-toggle-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1;
  opacity: .88;
}

.geo-module-rail {
  position: fixed;
  inset: 0;
  z-index: 140;
  pointer-events: none;
}
.geo-module-rail.is-open { pointer-events: auto; }
.geo-module-rail[hidden] { display: none !important; }

.geo-module-rail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 10, 8, .48);
  opacity: 0;
  transition: opacity .24s ease;
}
.geo-module-rail.is-open .geo-module-rail-backdrop { opacity: 1; }

.geo-module-rail-panel {
  position: absolute;
  top: var(--gd-header-offset, 106px);
  right: 0;
  width: min(340px, 92vw);
  height: calc(100dvh - var(--gd-header-offset, 106px));
  max-height: calc(100dvh - var(--gd-header-offset, 106px));
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #f8fbf8 0%, #eef5f0 100%);
  border-left: 1px solid rgba(29, 91, 55, .16);
  box-shadow: -24px 0 60px rgba(8, 18, 16, .22);
  transform: translateX(104%);
  transition: transform .28s cubic-bezier(.22, 1, .36, 1);
}
.geo-module-rail.is-open .geo-module-rail-panel { transform: translateX(0); }

.geo-module-rail-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px;
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.geo-module-rail-close:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.32); }

.geo-module-rail-utilbar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  flex-shrink: 0;
  padding: 10px 48px 10px 12px;
  background: linear-gradient(180deg, #1a2a22, #121a16);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.geo-rail-util {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 58px;
  padding: 8px 6px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: #e8f5ec;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.geo-rail-util:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(212,154,67,.45);
  transform: translateY(-1px);
}
.geo-rail-util svg { width: 18px; height: 18px; display: block; flex-shrink: 0; }
.geo-rail-util span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.1;
  text-align: center;
}

.geo-module-rail-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-shrink: 0;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(29, 91, 55, .1);
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(247,251,247,.9));
}
.geo-module-rail-head::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #a7e0c8, #1d5b37 45%, #d49a43);
}

.geo-module-rail-home[hidden] { display: none !important; }
.geo-module-rail-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  border: 1px solid rgba(29, 91, 55, .16);
  background: #fff;
  color: #1d5b37;
  box-shadow: 0 8px 20px rgba(12, 31, 22, .08);
}
.geo-module-rail-home:hover { transform: translateY(-1px); border-color: rgba(29, 91, 55, .35); }
.geo-module-rail-home svg { width: 20px; height: 20px; display: block; }

.geo-module-rail-profile { flex: 1 1 auto; min-width: 0; }
.geo-module-rail-profile-kicker {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #7a8d84;
}
.geo-module-rail-profile-label {
  display: block;
  margin: 4px 0 8px;
  font-size: 15px;
  font-weight: 800;
  color: #173326;
  line-height: 1.25;
  word-break: break-word;
}
.geo-module-rail-profile-label.is-member { color: #1d5b37; }

.geo-module-rail-nav {
  flex: 1 1 auto;
  overflow: auto;
  padding: 12px 10px 16px;
  -webkit-overflow-scrolling: touch;
}
.geo-module-rail-nav-title {
  margin: 0 6px 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #7a8d84;
}

.geo-module-rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.geo-module-rail-link {
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  align-items: center;
  gap: .55rem;
  padding: .62rem .7rem;
  border-radius: 12px;
  border: 1px solid transparent;
  color: #173326;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.geo-module-rail-link:hover {
  background: rgba(255,255,255,.85);
  border-color: rgba(29, 91, 55, .12);
  transform: translateX(-2px);
}
.geo-module-rail-link.is-active {
  background: linear-gradient(135deg, rgba(29,91,55,.12), rgba(255,255,255,.95));
  border-color: rgba(29, 91, 55, .24);
  box-shadow: 0 8px 22px rgba(12, 31, 22, .08);
}
.geo-module-rail-num {
  font-size: 11px;
  font-weight: 800;
  color: #7a8d84;
  text-align: center;
}
.geo-module-rail-link.is-active .geo-module-rail-num { color: #1d5b37; }
.geo-module-rail-text { min-width: 0; }
.geo-module-rail-text strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}
.geo-module-rail-text small {
  display: block;
  margin-top: 1px;
  font-size: 10px;
  color: #6f8178;
  line-height: 1.35;
}
.geo-module-rail-ext {
  font-size: 12px;
  color: #1d5b37;
  opacity: .75;
}
.geo-module-rail-link.is-active .geo-module-rail-ext { opacity: 1; }

.geo-module-rail-divider {
  height: 1px;
  margin: 8px 6px;
  background: rgba(29, 91, 55, .1);
}

.geo-module-rail-foot {
  padding: 12px 16px 16px;
  border-top: 1px solid rgba(29, 91, 55, .1);
  background: rgba(255,255,255,.65);
  font-size: 11px;
  color: #6f8178;
  line-height: 1.45;
}
.geo-module-rail-foot strong { color: #1d5b37; }

body.geo-module-rail-open { overflow: hidden; }

@media (max-width: 720px) {
  .geo-module-rail-toggle { padding: 8px 5px 8px 7px; }
  .geo-module-rail-toggle-label { font-size: 9px; }
  .geo-module-rail-panel { width: min(100%, 360px); }
}
