/* TS-0059 — presentation-only navigation, scoped to the shared site shell.
   Native details preserve touch/keyboard/no-script access. Global TS-0052
   disclosure-arrow styles are intentionally reused, not replaced. */
body > header.telei-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  min-height: 64px;
  gap: 8px 16px;
  padding: 10px 24px;
}
body > header.telei-header > nav.telei-nav-desktop {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 5px;
  min-width: 0;
  max-width: none;
}
.telei-nav-desktop > a,
.telei-nav-section > summary {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 40px;
  padding: 9px 11px;
  border-radius: 0;
  background: transparent;
  color: #e9f1fa;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  cursor: pointer;
}
.telei-nav-section > summary {
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
/* A current route or an open disclosure is not a second highlighted tile.
   Only the label under the pointer receives the discreet text underline. */
.telei-nav-desktop > a,
.telei-nav-desktop > .telei-nav-section > summary,
.telei-nav-desktop > .telei-nav-section.is-active > summary,
.telei-nav-desktop > .telei-nav-section[open] > summary,
.telei-nav-desktop > a[aria-current="page"] {
  background: transparent;
  color: #e9f1fa;
  text-decoration: none;
}
.telei-nav-desktop > a:hover,
.telei-nav-desktop > .telei-nav-section > summary:hover {
  background: transparent;
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: #91c9f6;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.telei-nav-desktop > a:focus-visible,
.telei-nav-mobile > details > summary:focus-visible,
.telei-nav-section > summary:focus-visible,
.telei-nav-leaf:focus-visible,
.telei-nav-help:focus-visible,
.telei-breadcrumbs a:focus-visible,
.telei-header-utilities .logout-button:focus-visible {
  outline: 2px solid #f4d07b !important;
  outline-offset: 2px;
}
.telei-nav-section {
  position: relative;
  flex: 0 0 auto;
  min-width: 0;
}
.telei-nav-section > summary {
  list-style: none;
}
/* Keep the 8px visual separation while letting the mouse cross it without
   leaving the disclosure's hit region on desktop. */
@media (min-width: 1361px) {
  .telei-nav-desktop > .telei-nav-section[open]::after {
    content: "";
    position: absolute;
    inset-block-start: 100%;
    inset-inline-start: 0;
    inline-size: 100%;
    block-size: 8px;
  }
}
.telei-nav-section-panel {
  display: grid;
  gap: 7px;
  position: absolute;
  inset-block-start: calc(100% + 8px);
  inset-inline-start: 0;
  width: min(315px, calc(100vw - 36px));
  min-width: 0;
  max-height: min(70vh, 620px);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 10px;
  border: 1px solid #d4e0ea;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(9, 34, 61, .22);
  color: #172b3c;
  white-space: normal;
  z-index: 1050;
}
.telei-nav-desktop .telei-nav-section:nth-last-child(-n + 2) .telei-nav-section-panel {
  inset-inline-start: auto;
  inset-inline-end: 0;
}
.telei-nav-subgroup {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.telei-nav-subgroup + .telei-nav-subgroup {
  padding-block-start: 8px;
  border-top: 1px solid #e6edf3;
}
.telei-nav-subgroup-title {
  display: block;
  padding: 7px 10px 3px;
  color: #49657c;
  font-size: 12px;
  font-weight: 700;
}
.telei-nav-leaf,
body > header .telei-nav-leaf {
  display: block;
  min-width: 0;
  padding: 9px 10px;
  border-radius: 7px;
  color: #1f3e58;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.telei-nav-leaf:hover,
.telei-nav-leaf:focus-visible {
  background: transparent;
  color: #0c5a8c;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.telei-nav-leaf.is-active {
  background: transparent;
  color: #1f3e58;
  font-weight: 650;
}
.telei-header-utilities {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  min-width: 0;
  gap: 12px;
}
.telei-header-utilities .header-user {
  max-width: min(14vw, 165px);
  color: #c7d7e6;
  overflow-wrap: anywhere;
  font-size: 13px;
}
.telei-nav-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 5px 7px;
  border-radius: 7px;
  color: #ebf5ff;
  text-decoration: none;
  white-space: nowrap;
  font-size: 14px;
}
.telei-nav-help[aria-current="page"] {
  background: transparent;
  color: #ebf5ff;
}
.telei-nav-help:hover {
  background: transparent;
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: #91c9f6;
  text-underline-offset: 4px;
}
.telei-nav-help-glyph {
  display: inline-grid;
  place-items: center;
  font-weight: 700;
  width: 22px;
  height: 22px;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.telei-nav-help-text { margin-inline-start: 6px; }
.telei-nav-mobile,
.telei-nav-mobile-user {
  display: none;
}
.telei-breadcrumbs {
  display: block;
  margin: 0 0 18px;
  min-width: 0;
  font-size: 13px;
  line-height: 1.6;
}
.telei-breadcrumbs ol {
  list-style: none;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 3px 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
}
.telei-breadcrumbs li { min-width: 0; overflow-wrap: anywhere; }
.telei-breadcrumbs li:not(:last-child)::after {
  content: "/";
  display: inline-block;
  margin-inline-start: 8px;
  color: #8296a5;
}
.telei-breadcrumbs a { color: #2a567c; text-decoration: underline; }
.telei-breadcrumbs [aria-current="page"] { color: #273d50; font-weight: 650; }

@media (max-width: 1360px) {
  body > header.telei-header { gap: 8px 12px; }
  body > header.telei-header > nav.telei-nav-desktop { display: none; }
  body > header.telei-header > nav.telei-nav-mobile {
    display: block;
    flex: 0 0 auto;
    min-width: 0;
    width: auto;
    margin-inline-start: auto;
  }
  /* Anchor the panel to the full header, never the narrow Меню button. */
  .telei-nav-mobile > details { position: static; }
  .telei-nav-mobile > details > summary {
    display: inline-flex;
    align-items: center;
    min-height: 39px;
    padding: 8px 10px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 650;
    color: #ffffff;
    cursor: pointer;
  }
  .telei-nav-mobile > details > summary:hover,
  .telei-nav-mobile > details[open] > summary { background: #234a6d; }
  .telei-nav-mobile-panel {
    position: absolute;
    inset-block-start: 100%;
    inset-inline-start: 12px;
    inset-inline-end: 12px;
    display: grid;
    gap: 3px;
    width: auto;
    min-width: 0;
    max-height: max(180px, calc(100dvh - var(--telei-header-height, 64px) - 12px));
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    padding: 10px;
    border: 1px solid #335674;
    border-radius: 12px;
    background: #102a43;
    box-shadow: 0 14px 32px rgba(9, 34, 61, .33);
    z-index: 1060;
  }
  .telei-nav-mobile-panel > a,
  .telei-nav-mobile-panel .telei-nav-section > summary {
    display: flex;
    width: 100%;
    min-height: 43px;
    align-items: center;
    padding: 10px;
    border-radius: 7px;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 600;
    text-decoration: none;
  }
  .telei-nav-mobile-panel > a:hover,
  .telei-nav-mobile-panel > a[aria-current="page"] { background: #234a6d; }
  .telei-nav-mobile-panel .telei-nav-section-panel {
    position: static;
    width: auto;
    max-height: none;
    overflow: visible;
    margin-block-end: 6px;
    padding: 7px;
    border-radius: 9px;
    box-shadow: none;
  }
}
@media (max-width: 800px) {
  .telei-header-utilities .header-user { display: none; }
  .telei-nav-mobile-user {
    display: block;
    padding: 8px 10px 10px;
    color: #c7d7e6;
    overflow-wrap: anywhere;
    font-size: 13px;
    border-bottom: 1px solid #335674;
  }
}
@media (max-width: 600px) {
  body > header.telei-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    padding: 10px 13px;
    gap: 5px 8px;
  }
  body > header.telei-header .telei-header-brand { flex: 0 1 auto; }
  body > header.telei-header .telei-header-mark { width: 98px; }
  body > header.telei-header .telei-header-office { font-size: 17px; }
  body > header.telei-header > nav.telei-nav-mobile { margin-inline-start: auto; }
  .telei-header-utilities { gap: 5px; }
  .telei-nav-help { padding: 5px; min-height: 35px; }
  .telei-nav-help-text { display: none; }
  .telei-header-utilities .logout-button { font-size: 13px; }
  .telei-nav-mobile > details > summary { padding: 6px 7px; font-size: 13px; }
  .telei-breadcrumbs { margin-bottom: 13px; }
}
@media (max-width: 390px) {
  body > header.telei-header { padding-inline: 9px; gap: 5px; }
  body > header.telei-header .telei-header-brand { gap: 5px; }
  body > header.telei-header .telei-header-mark { width: 83px; height: 18px; }
  body > header.telei-header .telei-header-office { font-size: 15px; height: 18px; line-height: 18px; }
  .telei-header-utilities { gap: 3px; }
  .telei-nav-help-glyph { width: 20px; height: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .telei-nav-section-panel, .telei-nav-mobile-panel { scroll-behavior: auto; }
}
@media (forced-colors: active) {
  .telei-nav-section-panel, .telei-nav-mobile-panel { border: 1px solid CanvasText; }
  .telei-nav-leaf[aria-current], .telei-nav-section.is-active > summary { outline: 1px solid Highlight; }
}
@media print {
  body > header.telei-header > nav,
  .telei-header-utilities,
  .telei-breadcrumbs { display: none !important; }
}
