/* F6 shared standalone chrome. Loaded only for the newly connected public views. */
.md-chrome-inner{max-width:1200px;margin:0 auto;padding:0 28px;box-sizing:border-box}
#top-bar.md-standalone-top{position:relative;background:#fff;color:#003368;z-index:30;border-bottom:1px solid #e9eef2}
#top-bar.md-standalone-top>.md-chrome-inner{display:grid;grid-template-columns:minmax(170px,1fr) auto minmax(260px,1fr);align-items:center;gap:28px;min-height:100px}
.md-chrome-logo img{display:block;width:220px;max-width:100%;height:auto}
#top-bar.md-standalone-top .menu{display:flex;align-items:center;gap:16px;min-height:44px;border:0;background:transparent;color:#003368;padding:0 0 0 10px;font:600 16px/1.5 Montserrat,Arial,sans-serif;cursor:pointer}
#top-bar.md-standalone-top #menuBurger{display:grid;gap:5px;width:24px}#top-bar.md-standalone-top #menuBurger>span{display:block;height:2px;background:#003368}
.md-chrome-actions{display:flex;gap:10px;justify-content:flex-end}
#top-bar.md-standalone-top .button{display:inline-flex;align-items:center;justify-content:center;padding:12px 18px;font:600 14px/1.5 Montserrat,Arial,sans-serif;text-decoration:none;border-radius:6px;min-height:46px}
#top-bar.md-standalone-top #mainNav{position:relative;clear:both;background:#fff;z-index:32}
#top-bar.md-standalone-top #mainNav ul{list-style:none;padding:0;columns:2}#top-bar.md-standalone-top #mainNav .md-submenu{columns:1}
#top-bar.md-standalone-top #mainNav a{color:#003368;text-decoration:none}
#top-bar.md-standalone-top #overlay{display:none;position:fixed;inset:0;background:rgba(0,30,60,.3);z-index:-1}
.md-standalone-footer{background:#edf3f7;color:#003368;border-top:1px solid #d9e3ec;margin-top:48px;padding:36px 0}
.md-standalone-footer>.md-chrome-inner>a>img{width:170px;height:auto;margin-bottom:24px}
.md-standalone-footer ul{list-style:none;padding:0;margin:0}.md-standalone-footer a{color:#003368}.md-chrome-copyright{margin:28px 0 0;font-size:12px}
.md-public-content{max-width:940px;min-height:50vh;padding:40px 28px;margin:0 auto;box-sizing:border-box}
body[data-md-family="register"] #div_rejestracja>.container{max-width:940px;width:100%;padding:32px 28px;box-sizing:border-box}
body[data-md-family="register"] #div_rejestracja>.container>.row{margin:0}
body[data-md-family="register"] #div_rejestracja h1,.md-public-content h1{font:600 34px/1.3 Montserrat,Arial,sans-serif;color:#003368;margin:0 0 28px}
body[data-md-family="register"] #div_rejestracja form{max-width:100%}
body[data-md-family="register"] #div_rejestracja input:not([type="hidden"]),body[data-md-family="register"] #div_rejestracja select{max-width:100%;box-sizing:border-box}
body[data-md-family="not-found"] #subpage-content .page_wall{width:100%}
@media(max-width:767px){
 .md-chrome-inner{padding:0 20px}#top-bar.md-standalone-top>.md-chrome-inner{grid-template-columns:minmax(0,1fr) auto;gap:12px;padding-top:16px;padding-bottom:16px;min-height:0}
 .md-chrome-logo img{width:174px}.md-chrome-actions{grid-column:1/-1;justify-content:stretch}.md-chrome-actions .button{flex:1}
 #top-bar.md-standalone-top #mainNav ul{columns:1}#top-bar.md-standalone-top #mainNav{max-height:calc(100dvh - 150px);overflow-y:auto;overscroll-behavior:contain}
 .md-public-content,body[data-md-family="register"] #div_rejestracja>.container{padding:28px 20px}
 body[data-md-family="register"] #div_rejestracja h1,.md-public-content h1{font-size:28px}
 .md-standalone-footer{margin-top:28px}
}

/* Keep legacy fixed-width containers and registration controls inside the new shell. */
.md-public-content .container{width:100%;max-width:100%;box-sizing:border-box}
body[data-md-family="register"] #div_rejestracja .reg_table{width:100%!important;table-layout:fixed}
body[data-md-family="register"] #div_rejestracja .home_reg_input{width:100%!important;min-width:0}

@media(max-width:767px){
 body[data-md-family="register"] #div_rejestracja .reg_table>tbody>tr>td{width:100%!important;min-width:0;max-width:100%;box-sizing:border-box}
 body[data-md-family="register"] #div_rejestracja .reg_table td table{width:100%;table-layout:fixed}
 body[data-md-family="register"] #div_rejestracja .div_select_skad,
 body[data-md-family="register"] #div_rejestracja .div_select_dzien,
 body[data-md-family="register"] #div_rejestracja .div_select_miesiac,
 body[data-md-family="register"] #div_rejestracja .div_select_rok{width:100%!important;max-width:100%;min-width:0;padding-right:0;position:relative;margin-left:0}
 body[data-md-family="register"] #div_rejestracja span.select{width:100%!important;max-width:100%;box-sizing:border-box}
 body[data-md-family="register"] #div_rejestracja select{width:100%!important}
 body[data-md-family="register"] #div_rejestracja .home_reg_label_right{font-size:16px}
 body[data-md-family="register"] #div_rejestracja .reg_table td table:has(input[type="radio"]){table-layout:auto}
 body[data-md-family="register"] #div_rejestracja .reg_button{min-width:0;max-width:100%!important;height:auto}
}

/* The legacy catalog has Bootstrap 3; give the shared header the same anatomy
   as the modern shell without importing a second Bootstrap version. */
#top-bar.md-standalone-top .top-nav>.container>.row{display:flex;flex-wrap:wrap;align-items:center}
#top-bar.md-standalone-top .top-nav>.container>.row>div{float:none;min-width:0}
#top-bar.md-standalone-top .top-nav>.container>.row>div:nth-child(1){width:25%}
#top-bar.md-standalone-top .top-nav>.container>.row>div:nth-child(2){width:25%}
#top-bar.md-standalone-top .top-nav>.container>.row>div:nth-child(3){width:50%}
#top-bar.md-standalone-top .buttons-container{display:flex;justify-content:flex-end;gap:20px;margin:0}
#top-bar.md-standalone-top .buttons-container .button{margin:0;font-size:15px;line-height:22px;padding:12px 22px;white-space:nowrap}
#top-bar.md-standalone-top #menuBurger{width:32px;gap:4px}
#top-bar.md-standalone-top #menuBurger span{height:4px}
@media(min-width:1200px){
#top-bar.md-standalone-top .top-nav>.container>.row>div:nth-child(2){width:41.666667%}
#top-bar.md-standalone-top .top-nav>.container>.row>div:nth-child(3){width:33.333333%}
}
@media(max-width:767px){
#top-bar.md-standalone-top .top-nav>.container>.row>div:nth-child(1),
#top-bar.md-standalone-top .top-nav>.container>.row>div:nth-child(2){width:50%}
#top-bar.md-standalone-top .top-nav>.container>.row>div:nth-child(3){width:100%;margin-top:0}
#top-bar.md-standalone-top .buttons-container{justify-content:stretch;gap:10px}
#top-bar.md-standalone-top .buttons-container .button{flex:1;min-width:0;padding:12px 8px;font-size:14px}
#top-bar.md-standalone-top .burger-container{display:flex;justify-content:flex-end}
#top-bar.md-standalone-top .menu{gap:8px}
#top-bar.md-standalone-top .logo-container img{width:174px;max-width:none}
}
