/* RSU-family navigation panels, adapted to RNP's palette and public routes. */
.header-inner { position: relative; }
.nav-group { min-width: 0; }
.nav-trigger { display: flex; align-items: center; gap: 5px; min-height: 44px; cursor: pointer; list-style: none; }
.nav-trigger::-webkit-details-marker { display: none; }
.nav-chevron { width: 12px; height: 12px; flex: 0 0 auto; transition: transform .18s var(--ease); }
.nav-group[open] .nav-chevron { transform: rotate(180deg); }
.nav-group[open] > .nav-trigger, .nav-group[data-active] > .nav-trigger { color: var(--green-hover); }
.nav-group[open] > .nav-trigger::after, .nav-group[data-active] > .nav-trigger::after { transform: scaleX(1); }
.nav-dropdown { display: flex; flex-direction: column; position: absolute; z-index: 30; inset-inline: 0; top: calc(100% - 3px); width: min(560px, 100%); max-height: calc(100dvh - 125px); overflow-y: auto; margin-inline: auto; padding: 12px; border-radius: 16px; background: #fff; box-shadow: 0 24px 56px -18px #123d2c40; }
.nav-dropdown-heading { display: flex; order: 2; justify-content: flex-end; padding: 5px 8px 0; border-block-start: 1px solid var(--line); margin-block-start: 7px; }
.nav-dropdown-heading h2 { display: none; }
.nav-overview { display: inline-flex; align-items: center; gap: 9px; min-height: 36px; color: var(--green-hover); font-size: 12px; font-weight: 700; line-height: 1.5; text-decoration: none; }
.nav-overview:hover { text-decoration: underline; }
.nav-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 5px; }
.nav-group[data-nav-group='procedure'] .nav-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nav-card { display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: center; gap: 10px; min-width: 0; min-height: 66px; padding: 10px 8px; border-radius: 10px; color: var(--ink); background: transparent; text-decoration: none; transition: background .18s var(--ease); }
.nav-card:hover, .nav-card:focus-visible { background: var(--gold-soft); }
.nav-card-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--gold-line); }
.nav-card-icon .link-icon { width: 21px; height: 21px; }
.nav-card-copy { display: grid; gap: 4px; min-width: 0; }
.nav-card strong { font-size: 14px; font-weight: 700; line-height: 1.3; }
.nav-card-copy > span { color: var(--muted); font-size: 12px; line-height: 1.4; }
.nav-card-arrow { display: none; }
.nav-card:hover strong { color: var(--green-hover); }
html[dir='rtl'] .nav-card-arrow { transform: scaleX(-1); }
@media (min-width: 1201px) {
  .nav-group { position: relative; }
  .nav-dropdown { inset-inline-start: 50%; inset-inline-end: auto; top: calc(100% + 12px); width: 560px; transform: translateX(-50%); }
  html[dir='rtl'] .nav-dropdown { transform: translateX(50%); }
  .nav-group[data-nav-group='about'] .nav-dropdown { inset-inline-start: 0; transform: none; }
  .nav-group[data-nav-group='assistance'] .nav-dropdown { inset-inline-start: auto; inset-inline-end: 0; transform: none; }
  .nav-group::after { content: ""; position: absolute; inset-inline: 0; top: 100%; height: 15px; }
}
@media (min-width: 1021px) and (max-width: 1200px) {
  .main-nav { gap: 11px; }
  .header-inner { gap: 14px; }
  .nav-trigger { gap: 3px; }
  .nav-chevron { width: 10px; height: 10px; }
}
@media (max-width: 1020px) {
  .main-nav, .js.nav-open .main-nav { display: grid; grid-template-columns: 1fr; gap: 3px; }
  .js .main-nav { display: none; }
  .main-nav > .nav-link, .nav-trigger { width: 100%; min-height: 46px; padding: 12px 9px; }
  .nav-trigger { justify-content: space-between; }
  .nav-link::after { display: none; }
  .nav-group[open] > .nav-trigger { border-radius: 8px; background: var(--gold-soft); }
  .nav-dropdown { position: static; width: 100%; max-height: none; margin: 0; padding: 12px 0 17px; border-radius: 0; box-shadow: none; }
  .nav-dropdown-heading { padding: 6px 9px 0; margin-block-start: 7px; }
  .nav-dropdown-heading h2 { display: none; }
  .nav-card-grid, .nav-group[data-nav-group='procedure'] .nav-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .nav-card { padding: 10px 8px; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; }
  .nav-card-icon { width: 32px; height: 32px; }
  .nav-card-icon .link-icon { width: 21px; height: 21px; }
  .nav-card-arrow { display: none; }
  .nav-card strong { font-size: 14px; }
}
@media (max-width: 550px) {
  .nav-card-grid, .nav-group[data-nav-group='procedure'] .nav-card-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-chevron, .nav-card { transition: none; }
}
@media (forced-colors: active) {
  .nav-card { border: 1px solid ButtonText; }
  .nav-dropdown { border: 1px solid CanvasText; }
}
@media print { .nav-dropdown { display: none !important; } }
