/* RWC member login (EGroupware /egroupware/) – header button, off-canvas link, footer link. 2026-11-10.
   One module per position (language "*"); the visible label follows <html lang>. */
.rwc-ml{display:inline-flex;align-items:center;gap:.5em;text-decoration:none;white-space:nowrap;line-height:1.2}
.rwc-ml svg{width:1.1em;height:1.1em;flex:none;fill:currentColor}
.rwc-ml [data-l]{display:none}
html[lang|="pl"] .rwc-ml [data-l="pl"],html[lang|="en"] .rwc-ml [data-l="en"],html[lang|="uk"] .rwc-ml [data-l="uk"],
html[lang|="de"] .rwc-ml [data-l="de"],html[lang|="it"] .rwc-ml [data-l="it"],html[lang|="fr"] .rwc-ml [data-l="fr"],
html:not([lang|="pl"]):not([lang|="en"]):not([lang|="uk"]):not([lang|="de"]):not([lang|="it"]):not([lang|="fr"]) .rwc-ml [data-l="en"]{display:inline}
.rwc-ml__t-hidden{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* header: small pill in the top-right corner of the header, above the language switcher (takes no width from
   the main menu, which already fills the row in Polish at 992px and at 1366px with A++) */
#sp-header .container-inner{position:relative}
#sp-menu .rwc-ml-mod{position:absolute;top:2px;right:0;margin:0;z-index:5}
#sp-header .rwc-ml--hdr{color:#fff!important;font-weight:600;font-size:min(var(--rwc-e,13px),14px);padding:2px 10px 2px 7px;gap:.4em;line-height:1.25;border:1px solid rgba(255,255,255,.55);border-radius:999px;background:rgba(12,44,102,.35);transition:background-color .2s,color .2s,border-color .2s}
#sp-header .rwc-ml--hdr svg{width:1.05em;height:1.05em}
#sp-header .rwc-ml--hdr:hover,#sp-header .rwc-ml--hdr:focus-visible{background:#f7a81b;border-color:#f7a81b;color:#0c2c66!important}
#sp-header .rwc-ml--hdr .rwc-ml__t{position:static!important;width:auto;height:auto;margin:0;overflow:visible;clip:auto}
/* 992-1199px with A+/A++: the larger menu text reaches the top of the header (e.g. FR "Qui sommes-nous"), so icon only */
@media (min-width:992px) and (max-width:1199.98px){
 html.rwc-fs-1 #sp-header .rwc-ml--hdr,html.rwc-fs-2 #sp-header .rwc-ml--hdr{padding:4px}
 html.rwc-fs-1 #sp-header .rwc-ml--hdr .rwc-ml__t,html.rwc-fs-2 #sp-header .rwc-ml--hdr .rwc-ml__t{position:absolute!important;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
}
@media (max-width:991.98px){#sp-menu .rwc-ml-mod{display:none}}

/* off-canvas (mobile/tablet menu) */
.offcanvas-menu .rwc-ml-mod{margin-top:8px}
.offcanvas-menu .rwc-ml--oc{display:flex;color:#fff;font-weight:600;font-size:var(--rwc-s,16px);padding:14px 0;border-top:1px solid rgba(255,255,255,.25)}
.offcanvas-menu .rwc-ml--oc:hover,.offcanvas-menu .rwc-ml--oc:focus-visible{color:#f7a81b}

/* footer: same line as "Ustawienia cookies" (rwc-consent.js appends that link to the end of #sp-footer1 .sp-column,
   after this module, so flex order puts copyright · cookies · member login); clear of the fixed A/A+/A++ control */
#sp-footer1 .sp-column{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:16px;row-gap:6px}
#sp-footer1 .rwc-cc-link{order:2;margin:0}
#sp-footer1 .rwc-ml-mod{order:3}
@media (min-width:992px){#sp-footer1{flex:1 1 auto;width:auto;max-width:none}#sp-footer2{flex:0 1 auto;width:auto}}
#sp-footer .rwc-ml--ft{color:#fff;opacity:.85;text-decoration:underline;font-size:14px}
#sp-footer .rwc-ml--ft:hover,#sp-footer .rwc-ml--ft:focus-visible{color:#f7a81b;opacity:1}
@media (max-width:767px){#sp-footer1 .rwc-cc-link,#sp-footer1 .rwc-ml-mod{flex-basis:100%}}
