/* ciidb site chrome — the header and footer every inner page shares (13.10.2026).
   Same language as the homepage: logo · four rooms centred · members' login; a footer that is the last chance
   to send people anywhere on the site. Applied to pages by scripts/site_chrome.py; edit there, not by hand.
   Namespaced cx-* so it never collides with a page's own classes. The login slot keeps auth.js's .nav-actions. */

.cx-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: 60px; font-family: 'Heebo', sans-serif;
  background: rgba(5, 4, 9, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .07); }
.cx-in { position: relative; max-width: 1400px; height: 100%; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between; }
.cx-logo { display: block; flex: none; }
.cx-logo img { display: block; height: 30px; width: auto; }
.cx-nav { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 32px; }
.cx-nav a { position: relative; padding: 6px 0; font-size: 14.5px; font-weight: 500; color: rgba(255, 255, 255, .75);
  text-decoration: none; white-space: nowrap; transition: color .15s ease; }
.cx-nav a:hover { color: #fff; }
.cx-nav a[aria-current="page"] { color: #fff; font-weight: 700; }
.cx-nav a[aria-current="page"]::after { content: ""; position: absolute; inset-inline: 0; bottom: -3px; height: 2px;
  border-radius: 2px; background: #b9f641; }
.cx-end { display: flex; align-items: center; gap: 10px; }
.cx-end .nav-actions { display: flex; align-items: center; gap: 10px; min-width: 36px; }
.cx-end .nav-bell, .cx-end .nav-avatar { display: none; }

.cx-burger { position: relative; display: none; width: 40px; height: 40px; padding: 0; border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 10px; background: transparent; cursor: pointer; }
.cx-burger span { position: absolute; left: 11px; width: 16px; height: 2px; border-radius: 2px; background: #fff;
  transition: transform .2s ease, top .2s ease; }
.cx-burger span:nth-child(1) { top: 15px; }
.cx-burger span:nth-child(2) { top: 21px; }
.cx-burger.open span:nth-child(1), .cx-burger.open span:nth-child(2) { top: 18px; }
.cx-burger.open span:nth-child(1) { transform: rotate(45deg); }
.cx-burger.open span:nth-child(2) { transform: rotate(-45deg); }

.cx-menu { position: absolute; top: 60px; left: 0; right: 0; padding: 6px 16px 18px; background: #07060e;
  border-bottom: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 24px 50px rgba(0, 0, 0, .6); }
.cx-menu[hidden] { display: none; }
.cx-menu a { display: block; padding: 14px 4px; font-size: 18px; font-weight: 800; color: #fff; text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .07); }
.cx-menu a[aria-current="page"] { color: #b9f641; }
.cx-menu .cx-menu-more { display: flex; flex-wrap: wrap; gap: 6px 16px; padding-top: 14px; }
.cx-menu .cx-menu-more a { display: inline; padding: 0; border: 0; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .62); }

@media (max-width: 820px) {
  .cx-in { padding: 0 16px; }
  .cx-nav { display: none; }
  .cx-burger { display: block; }
}

/* footer */
.cx-foot { margin-top: 72px; padding: 44px 24px 30px; font-family: 'Heebo', sans-serif; background: #05040a;
  border-top: 1px solid rgba(255, 255, 255, .08); direction: rtl; text-align: right; }
.cx-foot-in { max-width: 1180px; margin: 0 auto; }
.cx-foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.cx-foot-col { display: flex; flex-direction: column; gap: 9px; }
.cx-foot-col h4 { margin: 0 0 4px; font-size: 12.5px; font-weight: 800; color: #9a9ab0; }
.cx-foot-col a { width: fit-content; font-size: 14px; line-height: 1.4; color: #c4c6d8; text-decoration: none; }
.cx-foot-col a:hover { color: #fff; }
.cx-foot-meta { margin-top: 32px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .06);
  font-size: 12.5px; line-height: 1.8; color: #9a9ab0; }
.cx-foot-meta a { color: #9a9ab0; text-decoration: none; }
.cx-foot-meta a:hover { color: #c4c6d8; }
@media (max-width: 760px) {
  .cx-foot { margin-top: 44px; padding: 32px 16px 24px; }
  .cx-foot-cols { grid-template-columns: 1fr 1fr; gap: 26px 16px; }
  .cx-foot-col a { font-size: 14.5px; }
}
