/*
 * CETEChat and CETECommand websites: the header and footer on every page (classes start with ch-).
 * Self-contained so the older pages (still on site.css) and the new pages (v2.css) share them.
 */
.ch-header, .ch-footer, .ch-mnav {
  --ch-ink: #060b18; --ch-rule: #1b2944; --ch-paper: #eef2f8; --ch-mist: #94a3bd;
  --ch-signal: #4a94ff; --ch-btn: #1f6feb; --ch-btn-hi: #2f7cf6; --ch-brass: #c9a86a;
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.ch-wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 64px); }

.ch-header { position: sticky; top: 0; z-index: 60; background: rgba(6, 11, 24, 0.78); backdrop-filter: saturate(170%) blur(16px); -webkit-backdrop-filter: saturate(170%) blur(16px); border-bottom: 1px solid var(--ch-rule); }
.ch-header .ch-wrap { height: 72px; display: flex; align-items: center; gap: 36px; }
.ch-brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ch-paper); font-size: 20px; font-weight: 800; letter-spacing: -0.02em; text-decoration: none; flex-shrink: 0; }
.ch-brand:hover { color: #fff; }
.ch-brand img { width: 32px; height: 32px; border-radius: 8px; }
.ch-brand b { color: var(--ch-signal); font-weight: 800; }
.ch-nav { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; }
.ch-nav a { color: var(--ch-mist); font-size: 15px; font-weight: 600; padding: 8px 10px; border-radius: 9px; text-decoration: none; white-space: nowrap; transition: color .15s, background-color .15s; }
.ch-nav a:hover, .ch-nav a[aria-current="page"] { color: var(--ch-paper); background: rgba(255, 255, 255, 0.05); }
.ch-nav .ch-other { margin-left: auto; color: var(--ch-brass); }
.ch-nav .ch-other:hover { color: #e3cc9b; }
.ch-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.ch-signin { color: var(--ch-paper); font-size: 15px; font-weight: 600; padding: 8px 12px; text-decoration: none; }
.ch-signin:hover { color: #fff; }
.ch-start { display: inline-flex; align-items: center; height: 42px; padding: 0 20px; border-radius: 11px; background: var(--ch-btn); color: #fff; font-size: 15px; font-weight: 700; text-decoration: none; transition: background-color .15s; }
.ch-start:hover { background: var(--ch-btn-hi); color: #fff; }
.ch-menu { display: none; width: 44px; height: 44px; border-radius: 11px; border: 1px solid var(--ch-rule); background: transparent; color: var(--ch-paper); align-items: center; justify-content: center; cursor: pointer; }
.ch-mnav { display: none; }
.ch-header a:focus-visible, .ch-footer a:focus-visible, .ch-menu:focus-visible, .ch-mnav a:focus-visible { outline: 2px solid var(--ch-signal); outline-offset: 2px; }

@media (max-width: 1240px) {
  .ch-nav { display: none; }
  .ch-actions { margin-left: auto; }
  .ch-menu { display: inline-flex; }
  .ch-mnav.open { display: flex; flex-direction: column; gap: 2px; padding: 10px clamp(20px, 5vw, 64px) 22px; border-top: 1px solid var(--ch-rule); background: var(--ch-ink); max-height: calc(100vh - 72px); overflow-y: auto; }
  .ch-mnav a { color: var(--ch-paper); font-size: 17px; font-weight: 600; padding: 13px 4px; border-bottom: 1px solid var(--ch-rule); text-decoration: none; }
  .ch-mnav a.ch-other { color: var(--ch-brass); }
  .ch-mnav .ch-start { justify-content: center; margin-top: 14px; height: 52px; border: 0; font-size: 17px; }
}
@media (max-width: 520px) {
  .ch-signin { display: none; }
  .ch-header .ch-wrap { gap: 12px; }
}

.ch-footer { background: var(--ch-ink); border-top: 1px solid var(--ch-rule); color: var(--ch-mist); padding: 64px 0 40px; font-size: 14.5px; line-height: 1.6; }
.ch-foot { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(4, minmax(0, 1fr)); gap: 40px; }
.ch-foot-brand { display: flex; flex-direction: column; gap: 14px; max-width: 34ch; }
.ch-foot-brand p { margin: 0; }
.ch-foot-col { display: flex; flex-direction: column; gap: 9px; }
.ch-foot-col strong { color: var(--ch-paper); font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.ch-foot a { color: var(--ch-mist); text-decoration: none; }
.ch-foot a:hover { color: var(--ch-paper); }
.ch-legal { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--ch-rule); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 13.5px; }
.ch-legal a { color: var(--ch-mist); text-decoration: underline; text-decoration-color: rgba(148, 163, 189, 0.4); text-underline-offset: 3px; }
.ch-legal a:hover { color: var(--ch-paper); }
@media (max-width: 960px) { .ch-foot { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ch-foot-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .ch-foot { grid-template-columns: minmax(0, 1fr); } }
