/* Shared navigation for the public site and editor. */
.u14-header .u14-nav-group { position: relative; color: inherit; margin: 0; border: 0; padding: 0; }
.u14-header .u14-nav-group > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 12px 4px; border: 0; border-radius: 10px; background: transparent; color: inherit; font-family: inherit; font-size: 16px; font-weight: 500; line-height: 1.35; white-space: nowrap; list-style: none; cursor: pointer; }
.u14-header .u14-nav-group > summary::-webkit-details-marker { display: none; }
.u14-header .u14-nav-group > summary::marker { content: ''; }
.u14-header .u14-nav-group > summary::after { content: none; display: none; }
.u14-header .u14-nav-group[open] > summary, .u14-header .u14-nav-group > summary:hover, .u14-header .u14-nav-group[data-current] > summary { background: #ffffff1a; }
.u14-header .u14-nav-submenu { position: absolute; top: calc(100% + 12px); left: -12px; z-index: 100; width: max-content; min-width: 230px; max-width: calc(100vw - 48px); padding: 8px; border-radius: 16px; background: #fff; color: #191917; box-shadow: 0 12px 36px #1717141a; }
/* Override the imported theme’s white header-link rule, including visited links. */
body .u14-header :is(.u14-nav, .u14-mobile-panel) .u14-nav-group > .u14-nav-submenu > a { display: flex; align-items: center; min-height: 48px; margin: 0; padding: 12px 16px; border: 0; border-radius: 10px; background: transparent; color: #191917; opacity: 1; font: inherit; font-size: 16px; font-weight: 500; line-height: 1.4; text-decoration: none; white-space: nowrap; }
body .u14-header :is(.u14-nav, .u14-mobile-panel) .u14-nav-group > .u14-nav-submenu > a:is(:hover, [aria-current='page']) { color: #cb1517; background: #faf1f1; }
body .u14-header :is(.u14-nav, .u14-mobile-panel) .u14-nav-group > .u14-nav-submenu > a:focus-visible { outline: 2px solid #cb1517; outline-offset: -2px; }
.u14-header .u14-mobile-panel .u14-nav-group > summary { min-height: 50px; padding: 12px 0; color: #191917; font-size: 20px; line-height: 1.3; white-space: normal; }
.u14-header .u14-mobile-panel .u14-nav-group[open] > summary, .u14-header .u14-mobile-panel .u14-nav-group[data-current] > summary { color: #cb1517; background: transparent; }
.u14-header .u14-mobile-panel .u14-nav-submenu { position: static; width: auto; min-width: 0; max-width: none; margin: 0 0 8px; padding: 4px 8px; box-shadow: none; border-radius: 12px; background: #f5f5f2; }
body .u14-header .u14-mobile-panel .u14-nav-group > .u14-nav-submenu > a { white-space: normal; }
@media (prefers-reduced-motion: no-preference) { .u14-nav-group[open] > .u14-nav-submenu { animation: u14-menu-in .16s ease-out; } @keyframes u14-menu-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } } }

/* Bezpośrednie logowanie, także obok menu na telefonie. */
body .u14-header .u14-header-tools > .u14-account-link { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; padding: 10px; border: 0; border-radius: 10px; color: #fff; background: transparent; text-decoration: none; }
body .u14-header .u14-header-tools > .u14-account-link:hover { color: #fff; background: #ffffff1a; }
.u14-header .u14-account-link svg { display: block; flex: none; width: 22px; height: 22px; }
@media (max-width: 1340px) {
  body .u14-header .u14-header-tools { display: flex; margin-left: auto; gap: 0; }
  body .u14-header .u14-header-tools > :is(.u14-language, .u14-button) { display: none; }
  body .u14-header .u14-mobile-menu { margin-left: 0; }
}

/* Kreator jako ostatnia pozycja, ten sam pełny przycisk w PL/EN i na telefonie. */
body .u14-header :is(.u14-nav, .u14-mobile-panel) > a.u14-creator-link:not(.u14-button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 14px;
  color: #cb1517;
  background: #fff;
  border: 1px solid transparent;
  border-radius: 999px;
  box-shadow: none;
  opacity: 1;
}
body .u14-header :is(.u14-nav, .u14-mobile-panel) > a.u14-creator-link:hover {
  color: #ae1016;
  background: #fff4f3;
}
body .u14-header .u14-mobile-panel > a.u14-creator-link:focus-visible {
  outline: 2px solid #cb1517;
  outline-offset: 2px;
}

body .u14-header .u14-header-tools > a.u14-creator-shortcut { display: none; }
@media (max-width: 1340px) {
  body .u14-header .u14-header-tools > a.u14-creator-shortcut {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #fff;
    color: #b71517;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
  }
  body .u14-header .u14-header-tools > a.u14-creator-shortcut:hover { background: #fff4f3; }
}
@media (max-width: 540px) {
  body .u14-header:has(.u14-creator-shortcut) { gap: 8px; padding-inline: 12px; }
}
