:root {
  --rql-shell-navy: #092b4c;
  --rql-shell-navy-dark: #051d34;
  --rql-shell-navy-soft: #153c60;
  --rql-shell-teal: #087f82;
  --rql-shell-teal-dark: #066467;
  --rql-shell-teal-light: #e5f6f5;
  --rql-shell-gold: #c99a3e;
  --rql-shell-gold-light: #fbf5e8;
  --rql-shell-ink: #173047;
  --rql-shell-muted: #5d7182;
  --rql-shell-border: #d9e5ec;
  --rql-shell-bg: #f4f8fb;
  --rql-shell-white: #ffffff;
  --rql-shell-shadow:
    0 18px 46px rgba(5, 29, 52, 0.10);
}

html {
  scroll-behavior: smooth;
}

.rql-site-body {
  background: var(--rql-shell-bg);
  color: var(--rql-shell-ink);
  margin: 0;
  min-height: 100vh;
}

.rql-site-body.rql-request-working {
  overflow: hidden;
}

.rql-visually-hidden {
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  clip-path: inset(50%);
}

/* GLOBAL HEADER */

.rql-site-header {
  background:
    radial-gradient(
      circle at 91% 0,
      rgba(121, 226, 223, 0.14),
      transparent 27%
    ),
    linear-gradient(
      135deg,
      var(--rql-shell-navy-dark),
      var(--rql-shell-navy)
    );

  border-bottom:
    1px solid rgba(255, 255, 255, 0.10);

  box-shadow:
    0 10px 30px rgba(5, 29, 52, 0.15);

  color: #ffffff;
  position: relative;
  z-index: 1000;
}

.rql-site-header * {
  box-sizing: border-box;
}

.rql-header-shell {
  margin: 0 auto;
  max-width: 1240px;
  padding:
    17px
    24px
    18px;
}

.rql-header-main {
  align-items: center;
  display: flex;
  gap: 22px;
  justify-content: space-between;
}

.rql-brand-link {
  align-items: center;
  color: #ffffff;
  display: inline-flex;
  flex: 0 1 auto;
  gap: 13px;
  min-width: 0;
  text-decoration: none;
}

.rql-brand-link:hover {
  color: #ffffff;
}

.rql-brand-logo {
  background: #ffffff;
  border:
    1px solid rgba(255, 255, 255, 0.34);

  border-radius: 13px;
  box-shadow:
    0 8px 23px rgba(0, 0, 0, 0.17);

  display: block;
  height: 53px;
  object-fit: contain;
  padding: 5px;
  width: 53px;
}

.rql-brand-copy {
  min-width: 0;
}

.rql-brand-copy strong {
  color: #ffffff;
  display: block;
  font-size: 1.13rem;
  font-weight: 900;
  letter-spacing: 0.015em;
  line-height: 1.1;
}

.rql-brand-copy small {
  color: rgba(255, 255, 255, 0.70);
  display: block;
  font-size: 0.73rem;
  line-height: 1.3;
  margin-top: 4px;
}

.rql-header-quick-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.rql-header-action {
  align-items: center;
  border:
    1px solid rgba(255, 255, 255, 0.23);

  border-radius: 9px;
  color: #ffffff;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 820;
  gap: 7px;
  justify-content: center;
  min-height: 39px;
  padding: 8px 12px;
  text-decoration: none;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    transform 0.16s ease;
}

.rql-header-action:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.42);
  color: #ffffff;
  transform: translateY(-1px);
}

.rql-header-action-primary {
  background: var(--rql-shell-teal);
  border-color: var(--rql-shell-teal);
}

.rql-header-action-primary:hover {
  background: #0a9294;
  border-color: #0a9294;
}

.rql-notification-count {
  align-items: center;
  background: var(--rql-shell-gold);
  border-radius: 999px;
  color: var(--rql-shell-navy-dark);
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 900;
  justify-content: center;
  min-height: 21px;
  min-width: 21px;
  padding: 2px 6px;
}

.rql-menu-toggle {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border:
    1px solid rgba(255, 255, 255, 0.28);

  border-radius: 9px;
  color: #ffffff;
  cursor: pointer;
  display: none;
  flex-direction: column;
  gap: 4px;
  height: 41px;
  justify-content: center;
  padding: 0;
  width: 44px;
}

.rql-menu-toggle span {
  background: currentColor;
  border-radius: 999px;
  display: block;
  height: 2px;
  transition:
    opacity 0.16s ease,
    transform 0.16s ease;
  width: 19px;
}

.rql-menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform:
    translateY(6px)
    rotate(45deg);
}

.rql-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.rql-menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform:
    translateY(-6px)
    rotate(-45deg);
}

/* UPGRADE BANNER */

.rql-upgrade-banner {
  align-items: center;
  background: var(--rql-shell-gold-light);
  border: 1px solid #ead6a8;
  border-radius: 10px;
  color: #684d18;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.79rem;
  gap: 7px;
  justify-content: center;
  margin-top: 13px;
  padding: 9px 13px;
  text-align: center;
}

.rql-upgrade-banner a {
  color: #745714;
  font-weight: 900;
}

/* DESKTOP NAVIGATION */

.rql-site-menu-panel {
  border-top:
    1px solid rgba(255, 255, 255, 0.11);

  margin-top: 16px;
  padding-top: 14px;
}

.rql-navigation-row {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.rql-primary-nav {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

/*
  Additional menu items can be inserted inside .rql-primary-nav.
  The desktop layout wraps automatically instead of overflowing.
*/

.rql-nav-link {
  border:
    1px solid transparent;

  border-radius: 8px;
  color: rgba(255, 255, 255, 0.76);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 760;
  line-height: 1.2;
  padding: 8px 10px;
  text-decoration: none;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.rql-nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.rql-nav-link.is-active {
  background: rgba(121, 226, 223, 0.14);
  border-color: rgba(121, 226, 223, 0.34);
  color: #9cf0ed;
}

.rql-utility-nav {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-end;
}

.rql-utility-link {
  border:
    1px solid rgba(255, 255, 255, 0.16);

  border-radius: 8px;
  color: rgba(255, 255, 255, 0.71);
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 780;
  padding: 7px 9px;
  text-decoration: none;
}

.rql-utility-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

/* SEARCH AND TRANSLATION */

.rql-header-tools {
  align-items: center;
  display: grid;
  gap: 15px;
  grid-template-columns:
    minmax(190px, 0.42fr)
    minmax(430px, 1.58fr);

  margin-top: 13px;
}

.rql-translate-panel {
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
  border:
    1px solid rgba(255, 255, 255, 0.15);

  border-radius: 10px;
  display: flex;
  min-height: 45px;
  padding: 6px 10px;
}

.rql-translate-label {
  color: rgba(255, 255, 255, 0.58);
  flex: 0 0 auto;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  margin-right: 9px;
  text-transform: uppercase;
}

#google_translate_element {
  min-width: 0;
}

#google_translate_element select {
  max-width: 100%;
}

.rql-global-search {
  align-items: stretch;
  display: grid;
  gap: 7px;
  grid-template-columns:
    minmax(190px, 1fr)
    minmax(150px, 0.36fr)
    auto;
}

.rql-global-search input,
.rql-global-search select {
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--rql-shell-ink);
  font: inherit;
  font-size: 0.79rem;
  min-height: 43px;
  padding: 9px 11px;
  width: 100%;
}

.rql-global-search input:focus,
.rql-global-search select:focus {
  border-color: #79e2df;
  box-shadow:
    0 0 0 3px rgba(121, 226, 223, 0.16);

  outline: none;
}

.rql-global-search button {
  background: var(--rql-shell-teal);
  border: 1px solid var(--rql-shell-teal);
  border-radius: 9px;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 850;
  min-height: 43px;
  padding: 9px 16px;
}

.rql-global-search button:hover {
  background: var(--rql-shell-teal-dark);
}

/* MAIN CONTENT */

.rql-site-main {
  min-height: 54vh;
}

.rql-flash-stack {
  margin-bottom: 17px;
}

.rql-flash {
  background: #ffffff;
  border: 1px solid var(--rql-shell-border);
  border-left: 5px solid var(--rql-shell-teal);
  border-radius: 11px;
  box-shadow:
    0 8px 25px rgba(5, 29, 52, 0.07);

  color: var(--rql-shell-ink);
  margin-top: 12px;
  padding: 13px 16px;
}

.rql-flash p {
  margin: 0;
}

.rql-flash-success {
  background: #ecf8f1;
  border-left-color: #26744d;
}

.rql-flash-warning {
  background: var(--rql-shell-gold-light);
  border-left-color: var(--rql-shell-gold);
}

.rql-flash-error,
.rql-flash-danger {
  background: #fff2f1;
  border-left-color: #9a3d3d;
}

/* FOOTER */

.rql-site-footer {
  background:
    radial-gradient(
      circle at 9% 11%,
      rgba(8, 127, 130, 0.20),
      transparent 30%
    ),
    linear-gradient(
      142deg,
      var(--rql-shell-navy-dark),
      var(--rql-shell-navy)
    );

  border-top:
    4px solid var(--rql-shell-teal);

  color: rgba(255, 255, 255, 0.74);
  margin-top: 48px;
}

.rql-footer-shell {
  margin: 0 auto;
  max-width: 1240px;
  padding:
    55px
    24px
    24px;
}

.rql-footer-grid {
  display: grid;
  gap: 38px;
  grid-template-columns:
    minmax(270px, 1.35fr)
    repeat(3, minmax(145px, 0.55fr));
}

.rql-footer-brand-link {
  align-items: center;
  color: #ffffff;
  display: inline-flex;
  gap: 12px;
  text-decoration: none;
}

.rql-footer-brand-link:hover {
  color: #ffffff;
}

.rql-footer-logo {
  background: #ffffff;
  border-radius: 11px;
  height: 47px;
  object-fit: contain;
  padding: 4px;
  width: 47px;
}

.rql-footer-brand-link strong {
  color: #ffffff;
  display: block;
  font-size: 1.04rem;
}

.rql-footer-brand-link small {
  color: rgba(255, 255, 255, 0.63);
  display: block;
  font-size: 0.7rem;
  margin-top: 2px;
}

.rql-footer-description {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.84rem;
  line-height: 1.7;
  margin: 18px 0 0;
  max-width: 410px;
}

.rql-footer-share {
  margin-top: 19px;
  max-width: 390px;
}

.rql-footer-column h2 {
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.10em;
  margin: 0 0 15px;
  text-transform: uppercase;
}

.rql-footer-links {
  display: grid;
  gap: 9px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.rql-footer-links a {
  color: rgba(255, 255, 255, 0.69);
  font-size: 0.81rem;
  line-height: 1.45;
  text-decoration: none;
}

.rql-footer-links a:hover {
  color: #9cf0ed;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rql-footer-bottom {
  align-items: flex-start;
  border-top:
    1px solid rgba(255, 255, 255, 0.13);

  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-top: 42px;
  padding-top: 21px;
}

.rql-footer-bottom p {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.73rem;
  line-height: 1.6;
  margin: 0;
  max-width: 740px;
}

.rql-footer-powered {
  flex: 0 0 auto;
  text-align: right;
}

/* WORKING OVERLAY */

.rql-working-overlay {
  align-items: center;
  background: rgba(3, 20, 36, 0.84);
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  padding: 24px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 99999;
}

.rql-working-overlay[hidden] {
  display: none;
}

.rql-working-panel {
  background: #ffffff;
  border:
    1px solid var(--rql-shell-border);

  border-radius: 19px;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.29);

  max-width: 480px;
  padding: 34px;
  text-align: center;
  width: 100%;
}

.rql-working-panel h2 {
  color: var(--rql-shell-navy);
  margin: 18px 0 9px;
}

.rql-working-panel p {
  color: #4d6578;
  margin: 0;
}

.rql-working-panel .rql-working-note {
  font-size: 0.86rem;
  margin-top: 13px;
}

.rql-working-spinner {
  animation:
    rql-working-spin
    0.85s
    linear
    infinite;

  border: 5px solid #d9eeee;
  border-radius: 50%;
  border-top-color: var(--rql-shell-teal);
  height: 54px;
  margin: 0 auto;
  width: 54px;
}

@keyframes rql-working-spin {
  to {
    transform: rotate(360deg);
  }
}

/* RESPONSIVE HEADER */

@media (max-width: 1080px) {
  .rql-navigation-row {
    display: block;
  }

  .rql-utility-nav {
    border-top:
      1px solid rgba(255, 255, 255, 0.10);

    justify-content: flex-start;
    margin-top: 10px;
    padding-top: 10px;
  }

  .rql-header-tools {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .rql-header-shell {
    padding-left: 17px;
    padding-right: 17px;
  }

  .rql-menu-toggle {
    display: inline-flex;
  }

  .rql-js .rql-site-menu-panel {
    display: none;
  }

  .rql-js .rql-site-menu-panel.is-open {
    display: block;
  }

  .rql-site-menu-panel {
    background: rgba(255, 255, 255, 0.045);
    border:
      1px solid rgba(255, 255, 255, 0.11);

    border-radius: 13px;
    margin-top: 15px;
    padding: 14px;
  }

  .rql-primary-nav,
  .rql-utility-nav {
    display: grid;
    gap: 5px;
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .rql-nav-link,
  .rql-utility-link {
    justify-content: flex-start;
    padding: 10px;
  }

  .rql-header-tools {
    margin-top: 14px;
  }

  .rql-global-search {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(135px, 0.42fr)
      auto;
  }

  .rql-footer-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .rql-footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 630px) {
  .rql-header-main {
    align-items: flex-start;
  }

  .rql-brand-logo {
    height: 46px;
    width: 46px;
  }

  .rql-brand-copy small {
    max-width: 145px;
  }

  .rql-header-quick-actions {
    gap: 6px;
  }

  .rql-header-action {
    min-height: 37px;
    padding: 7px 9px;
  }

  .rql-header-action-label {
    display: none;
  }

  .rql-primary-nav,
  .rql-utility-nav,
  .rql-global-search {
    grid-template-columns: 1fr;
  }

  .rql-global-search button {
    width: 100%;
  }

  .rql-footer-shell {
    padding:
      43px
      18px
      22px;
  }

  .rql-footer-grid {
    grid-template-columns: 1fr;
  }

  .rql-footer-brand {
    grid-column: auto;
  }

  .rql-footer-bottom {
    display: block;
  }

  .rql-footer-powered {
    margin-top: 12px;
    text-align: left;
  }

  .rql-working-panel {
    padding: 27px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .rql-header-action,
  .rql-menu-toggle span {
    transition: none;
  }

  .rql-header-action:hover {
    transform: none;
  }

  .rql-working-spinner {
    animation-duration: 1.8s;
  }
}
