





@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Display:wght@300;400;500&display=swap');

/* adaptation of the font*/
body {
        background-color: #ccc;
        font-family: 'Red Hat Display', sans-serif;

    }
    
    body.inverse {
        background: #333;
    }
    
    body.inverse,body.inverse .form-control {
        color: #fff;
    }
    
    body.inverse .card,body.inverse .card .form-control,body.inverse .modal,body.inverse .modal .form-control,body.inverse .panel-default,body.inverse .panel-default .form-control {
        background-color: initial;
        color: initial;
    }
    
    .life-of-material-kit {
        background: #fff;
    }
    
    .h1,.h2,.h3,.h4,body,h1,h2,h3,h4,h5,h6 {
        font-family: 'Red Hat Display', sans-serif;
        font-weight: 300;
        line-height: 1.5em;
        color: #000;
    }

    /* color when you hover over a parto of the page*/
    ________
    a, a:hover, a:visited {
        color: #0F9BFF;
    }
    a, a:focus, a:hover {
        color: #0F9BFF;
    }
    a {
        color: #0F9BFF;
        text-decoration: none;
    }
    a {
        background-color: transparent;
    }

    /* color of different headers and color of them once you clicken on them*/

.portal-header h1 {
        color: #fff;
        font-family:"Red Hat Display", sans-serif;
        }

.portal-header::before {
            background-color: #0F9BFF; 
          }

.featured-content-label {
            display:none;
        }


.portal-contents featured-content {
            display:none;
        }
        
.portal-contents .inner {
            display:none;
        }

    

.portal-single-publication .publication-icon {
    background-color: #0F9BFF;
}


.site-header:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 400px;
    background-color: #0F9BFF;
    z-index: -10;
}




/* color of the navigation sidebar*/
.nav-site-sidebar .active>a {
    color: #0F9BFF;
}
a, a:hover, a:visited {
    color: #0F9BFF;
}

.toc nav .nav-site-sidebar {
    color:#0F9BFF
}


.portal-single-publication img {
    height:10rem
}

/* adaptation of admonitions*/

* This part defines the color of the sidebar  */
.toc nav .nav-site-sidebar {
    color:#0F9BFF
}

/* This part decides onthe color of the category panels  */
.portal-single-publication a {
    color: #555;
    display: inline-block;
    padding: 20px 20px;
    width: 100%;
    height: 100%;
    background-color: #f5f5f5;
    border-radius: 20px;
}

/* This part changed the color of the thing ypu clicked  */
a, a:focus, a:hover {
    color: #0F9BFF;
}

 /* This part hides the icon for the portal  */

.hidden-photos {
    display:none;
  }

  /* This part changes the color of the left-margin border and the background  */

.note {
    border-left-color: rgba(42, 178, 123, 0.08);
    background-color: #CCF1D6;
    border-radius: 10px;
    }
    
.caution {
        border-left-color: rgba(255, 232, 26, 0.05);
        background-color: rgba(2255, 204, 5, 0.05);
        border-radius: 10px;
    }

    .warning {
        border-left-color: rgba(232,65,57, 0.08);
        background-color: rgba(232,65,57, 0.08);
        border-radius: 10px;
    }

.important {

    border-left-color:#e8e8e8 ;
    background-color:#e8e8e8;
    border-radius: 10px;
}

 /* This part changes the symbol for admonitions */
 .note:before {
    content: '\f05d';
    font-family: FontAwesome;
}

.caution:before {
    content: '\f071';
    font-family: FontAwesome;
    color: rgba(254,203,6,255);
}

.warning:before {
    content: '\f057';
    font-family: FontAwesome;
    color: rgba(232,65,57);
}

.important:before {
    content: '';
    font-family: FontAwesome;
}

 .important h3 {
    display: none;
}

 /* margin between the points in the admonitions */
 p, pre {
    margin: 0 0 0.7em;
}


.nav-site-sidebar{
    background-color: white; 
    z-index:6;}

.section {
        padding: 10px 0;
    }


.toolbar {
        min-height: 40px;
    }



    /* design of admoniitons in HTML style*/

    .warning, .note, .important, .caution, .tip {
        display: block;
        padding: 5px 10px 12px 50px; 
        border-left-width: 0px;
    margin-bottom: 5px; }

    .warning > p, .note > p, .important > p, .caution > p, .tip > p {
        margin-left: 0px;
        margin: 0px 0px 10px ;
        -webkit-margin-before: 0;
        padding-left: 0;
        padding-bottom: 0;
        padding-right: 10px;
    }


    .warning h3, .note h3, .important h3, .caution h3, .tip h3 {
        margin-top: 0;
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 10px;
        padding: 10px 10px 0px 0px;
        background-color: transparent;
        color: inherit;
        font-size: 1.2em; }

        .informaltable td p, .informaltable th p, .table td p, .table th p {
            margin: 0px;
            margin-bottom: 1.5em;
            margin: 5px 0px 10px;}
        


        td .mediaobject {
            margin-bottom: 10px;
            padding: 8px;
        }
 
        /* title von bildern in mitte*/      
        div.figure-title {
            font-weight: bold;
            text-align: center;
            font-size: 15px;
        }

        /* informal table: platz rund um bild*/   
        .mediaobject {
            margin: 5px 5px 5px 5px;
        }


        td, th {
            padding: 0px 0px 10px;
        }


        img {
            border: 5px;
        }

/* make menu same size as site body*/   
        .site-sidebar {
            height: 90%;
            }
            
            
            .site-sidebar .nav-site-sidebar {
            position: absolute !important;
            height: inherit;
            overflow-y: scroll;
            scrollbar-color: grey transparent;
            }


    /* implement the "back" and "next" buttonin the phone view*/   
    .pager li>a{
        display: inline-block !important;
        }        


        /* color of the top bar where the scewo logo is*/   
        
        .navbar.navbar-transparent {
            background-color: #0F9BFF;
            padding-top: 10px;
            border-radius: 0;
        }


        
/* font size of the portal header topixs*/   
.portal-single-publication h3 {
    margin: 1.2em 0 0;
    font-size: 18px;
    font-weight: bold;
}

/* header of table is now aligned in the middle*/   
.table>thead>tr>th {
    vertical-align: middle;
    border-bottom: 2px solid #ddd;
}

/* if a toc should not be visible --> in paligo has the role with value: no-section-toc*/   

.no-section-toc ~ .footer-content .section-toc
 {display: none;}


  /* abstand zwischen einzelnen tables*/

div.table-responsive {
    border: none !important;
    padding-top: 0.5em;
}

/*frame of tables of the different stair scenarios*/
.frame-void {
    border: hidden;

}

#topic-content > section > .titlepage .title {
    margin: 0.5em 0 0.5em;
}

div.section-toc-title {
    font-size: 1.2em;
    font-weight: normal;
    margin-bottom: 0.5em;
}

.navbar .dropdown-menu li>a:focus, .navbar .dropdown-menu li>a:hover, .navbar.navbar-default .dropdown-menu li>a:focus, .navbar.navbar-default .dropdown-menu li>a:hover {
    color: #fff;
    background-color: #999;
}

.dropdown-menu li a:active, .dropdown-menu li a:focus, .dropdown-menu li a:hover {
    background-color: #999;
    color: #fff;
}


/* version menu on the portal page*/
@media (max-width : 768px) {
    .version-menu.sm.sm-simple {
    color:#ccc !important;
    background-color:#f5f5f5 !important;
    padding-top: 15px;
    padding-bottom: 15px;
    font-weight: 400;
    text-transform: uppercase;
    font-size: 75%;
    padding:5px;
    }

.has-submenu{
    color:#555 !important;
    font-weight: 400;
    text-transform: uppercase;
    font-size: 75%;
    padding:5px;
}
.has-submenu.highlighted{
    color:#555 !important;
    font-weight: 400;
    text-transform: uppercase;
    font-size: 75%;
    padding:5px;
}
    .version-dropdown li a {
    color:#555 !important;
    font-weight: 400;
    text-transform: uppercase;
    font-size: 75%;
    padding:5px;
    
      }
}

/* efficiently use the space on the desktop view so that users have to scroll less*/

.container, .site-body-container {
    padding-left: 15px;
    margin-right: 10px !important;
    width:auto !important;
    }
    
    
    .nav-site-sidebar {
    margin-bottom: 20px;
    width: 300px;
    }
    #content-wrapper.topic.content-container{
    width: 100% !important;
    }


    /* procedure distance in the admonitions*/
    main ol, main ul {
        margin: 0 0 1.4em;
        padding-left: 20px;
    }

    
 /* H1 font size*/
 .h1, h1 {
    font-size: 1.2em;
    line-height: 1.15em;
}


/* adaptation of the drop down of FAQ and product version*/
.sm, .sm ul, .sm li {
    list-style: none;
    margin: 0;
    padding: 0;
    line-height: normal;
    direction: ltr;
    text-align: left;
    border-radius: 16px;
    background: white;
    color: black;
}

.main, .portal-body, .site-body {
    background: #fff;
    position: relative;
    z-index: 3;
    border-radius: 16px;
}

/*search field*/
.portal-header .search-field {
    background-color: rgba(255, 255, 255);
    border-radius: 50px;
    
}

.portal-header .portal-search .search-field {
    display: inline-block;
    vertical-align: middle!important;
    height: 44px;
    font-weight: 500;
    text-align: center;
    font-weight:500;
    color: #000;
}

/*anpassungen mit leo*/ 
.btn, .btn.active, .btn.active:focus, .btn.active:hover, .btn.btn-default, .btn.btn-default.active, .btn.btn-default.active:focus, .btn.btn-default.active:hover, .btn.btn-default:active, .btn.btn-default:active:focus, .btn.btn-default:active:hover, .btn.btn-default:focus, .btn.btn-default:hover, .btn:active, .btn:active:focus, .btn:active:hover, .btn:focus, .btn:hover, .navbar .navbar-nav>li>a.btn, .navbar .navbar-nav>li>a.btn.active, .navbar .navbar-nav>li>a.btn.active:focus, .navbar .navbar-nav>li>a.btn.active:hover, .navbar .navbar-nav>li>a.btn.btn-default, .navbar .navbar-nav>li>a.btn.btn-default.active, .navbar .navbar-nav>li>a.btn.btn-default.active:focus, .navbar .navbar-nav>li>a.btn.btn-default.active:hover, .navbar .navbar-nav>li>a.btn.btn-default:active, .navbar .navbar-nav>li>a.btn.btn-default:active:focus, .navbar .navbar-nav>li>a.btn.btn-default:active:hover, .navbar .navbar-nav>li>a.btn.btn-default:focus, .navbar .navbar-nav>li>a.btn.btn-default:hover, .navbar .navbar-nav>li>a.btn:active, .navbar .navbar-nav>li>a.btn:active:focus, .navbar .navbar-nav>li>a.btn:active:hover, .navbar .navbar-nav>li>a.btn:focus, .navbar .navbar-nav>li>a.btn:hover, .open>.btn.btn-default.dropdown-toggle, .open>.btn.btn-default.dropdown-toggle:focus, .open>.btn.btn-default.dropdown-toggle:hover, .open>.btn.dropdown-toggle, .open>.btn.dropdown-toggle:focus, .open>.btn.dropdown-toggle:hover, .open>.navbar .navbar-nav>li>a.btn.btn-default.dropdown-toggle, .open>.navbar .navbar-nav>li>a.btn.btn-default.dropdown-toggle:focus, .open>.navbar .navbar-nav>li>a.btn.btn-default.dropdown-toggle:hover, .open>.navbar .navbar-nav>li>a.btn.dropdown-toggle, .open>.navbar .navbar-nav>li>a.btn.dropdown-toggle:focus, .open>.navbar .navbar-nav>li>a.btn.dropdown-toggle:hover {
    background-color: #fff;
    color: #000;
    border-radius: 20px;
}

.main-raised, .portal-body, .site-body {

    -webkit-box-shadow: 0 16px 24px 2px rgba(0, 0, 0, 0.0), 0 6px 30px 5px rgba(0, 0, 0, 0.0), 0 8px 10px -5px rgba(0, 0, 0, 0);
    box-shadow: 0 16px 24px 2px rgba(0, 0, 0, 0.03), 0 6px 30px 5px rgba(0, 0, 0, 0.03), 0 8px 10px -5px rgba(0, 0, 0, 0.03);
}

.searchresultitem.selected-searchresultitem {
    background-color: #f5f5f5;
    border-radius: 16px;
    margin: 16px 16px 16px;
}


h1, h3, h4, h5 {
    margin: 1.2em 0em 1em;
}

h2 {
    margin: 0.2em 0em 0.2em;
}


h2.title {
    margin-bottom: 10px;
    font-size: 1.2em;
}
.searchresultsnippet {
    font-weight: 300;
    margin: 1.2em 2.4em 1.2em;
}

.search-result-url, .search-result-breadcrumbs {
    color: #ccc;
    margin: 1.2em 2.4em 1.2em;
}

.main-raised, .portal-body, .site-body {
    margin: 0px 30px 30px;}
    

    body {
        background-color: #f5f5f5;}

/*Portal page search placeholder text black*/
.portal-search.form-inline .search-field::placeholder {
    color: #646464;
    }


    /*Portal page search placeholder text black*/
.portal-search.form-inline .search-field::placeholder {
    color: #646464;
    }

/*Portal page wrap of content*/
    
@media screen and (max-width: 540px) {
    .portal-publications .inner .inner-row {
      flex-direction: column;
    }
    .portal-publications .inner .inner-row .portal-single-publication {
      width: 100% !important;
    }
  }
  
  @media screen and (max-width: 1040px) {
    .portal-publications .inner .inner-row .portal-single-publication {
      width: 50%;
    }
  }

  /*prevent overflowing of boxes*/

  @media screen and (min-width: 768px) and (max-width: 1050px) {
    .portal-body-container {
      width: 100%;
    }
  }


  
  .title {
    font-weight: 500;
    font-size:1.4em ;
    color: #3c4858;
}

  .subtitle {
    font-weight: 400;
    font-size:1.2em ;
    color: #3c4858;
}

/*bridgehead adaptation for HTML quick guides*/

.h6, h6 {
    font-size: 1.1em;
    text-transform:inherit;
    font-weight: 500;
    color: #0F9BFF;
}


/*avoid overlap when screensize changes*/
@media screen and (min-width: 768px) and (max-width: 970px) {
    .nav-site-sidebar {
      width: 240px;
    }
  }

  @media screen and (min-width: 1200px) and (max-width: 1400px) {
    .nav-site-sidebar {
      width: 240px;
    }
  }

   
  /*change the text text container with in specific screen sizes*/
  @media screen and (min-width: 7680px) and (max-width: 1220px) {
    #content-wrapper.topic.content-container{
      width: 100% !important;
      }
  }

@media screen and (min-width: 1220px) and (max-width: 1350px) {
    #content-wrapper.topic.content-container{
      width: 100% !important;
      }
  }
  
  @media screen and (min-width: 1350px) and (max-width: 1500px) {
    #content-wrapper.topic.content-container{
      width: 80% !important;
      }
  }

  @media screen and (min-width: 1500px) and (max-width: 2520px) {
    #content-wrapper.topic.content-container{
      width: 85% !important;
      }
  }

  /*change the text text container with in specific screen sizes*/

  @media screen and (min-width: 1700px) and (max-width: 2720px) {
    #content-wrapper.topic.content-container{
      width: 70% !important;
      }
  }

  /* avoid overlap of the site content*/
  @media screen and (min-width: 768px) and (max-width: 1200px) {
  .site-body-row .site-content {
    width: 70%;
  }
}

/* passing of the images in the table*/
td .mediaobject {
    margin-bottom: 10px;
    padding: 0px;
}

/*get rid of edges of images in HTML*/
.image-viewport td {
    border:none!important
}

/*procedure are now with numbers*/
ol.procedure, ul.procedure {
    margin: 0;
    padding: 0;
    list-style-type: decimal;
    margin-left: 40px;}


    /*language toggle for each page*/
    .dropup.languages.pull-right.col-md-2{
        margin-right:5em;
      }


     .version-menu.sm.sm-simple{
        position: relative;
        left:120px;
    }

  /*  @media (max-width: 768px) {
        .version-menu.sm.sm-simple{
            position: relative;
            left:0px;
        }}*/
    


    /*FAQ bigger*/

    @media (min-width: 768px) {
        .sm-simple a, .sm-simple a {
            font-size: 18px;
        }
    }

    @media (min-width: 768px) {
        .theme3 .sm-simple > li > a, .theme3b .sm-simple > li > a {
            color: inherit;
            padding: 12px 30px;
            font-weight: 400;
            text-transform: inherit;
            background-color: black;
        }
    }

    
    @media (min-width: 768px) {
        .sm-simple a, .sm-simple a {
            font-size: 14px;
        }
    }

     /*change the position of the FAQ button*/
     @media (min-width: 768px) {
        .theme3 .sm-simple, .theme3b .sm-simple {
            float:left;
            margin: 0;
            left: 100px;
        }
    }


    /*ADD this -LC */
/* Base styles for the navbar- new settings for the header of language, version and manuals */
.navbar-collapse {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between; /* Space items evenly */
    gap: 10px; /* Adjust gap to ensure spacing between items */
}

/* Styling for top-nav-menu and version-menu */
.top-nav-menu, .version-menu {
    display: flex;
    align-items: center;
    gap: 15px; /* Adds spacing between items */
}

.top-nav-menu li, .version-menu li {
    list-style: none; /* Remove default list styles */
    margin: 0;
}

.top-nav-menu a, .version-menu a {
    display: block;
    padding: 10px;
    text-decoration: none;
}

/* Ensure dropdowns are handled properly */
.version-dropdown {
    position: relative;
}

.version-dropdown .version-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #ccc;
    z-index: 1000; /* Ensure dropdown is on top */
}

.version-dropdown:hover .version-dropdown {
    display: block;
}

/* Navbar form styling */
.navbar-form {
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .navbar-collapse {
        flex-direction: column;
        align-items: stretch; /* Align items to stretch full width */
    }

    .top-nav-menu, .version-menu {
        flex-direction: column;
        gap: 10px; /* Reduce gap to fit items better */
    }

    .top-nav-menu li, .version-menu li {
        width: 100%;
    }

    .version-dropdown .version-dropdown {
        width: 100%;
        position: static; /* Make dropdown fit within the layout */
    }

    .navbar-form {
        width: 100%;
        margin-top: 10px;
    }

    .search-field {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .top-nav-menu, .version-menu {
        gap: 5px; /* Further reduce gap for smaller screens */
    }
}



/* =====================================================================
   Scewo Helpcenter - portal restyle (universal: BRO V1.0, BRO V1.1, GO V1)
   Paste at the END of the layout's existing custom CSS in Paligo
   (or upload as additional custom CSS). Overrides only, nothing removed.
   Brand: Scewo Blue #0F9BFF, Black #070707, Gray #6E6E6E,
          Medium Gray #C8C8C8, Light Gray #F5F5F5.
   ===================================================================== */

body { background-color: #fff; }

/* ---------- Portal start page: compact black header, no photo ---------- */
.portal-header {
  height: auto !important;
  min-height: 0 !important;
  padding: 0 0 24px !important;
  text-align: center;
}
.portal-header::before { background-color: #0F9BFF !important; }   /* Scewo Blue, same as topic pages */
.portal-header::after  { background: none !important; display: none !important; }

.portal-header .portal-header-navbar {
  position: relative !important;      /* was fixed over the photo */
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  margin: 0 !important;
}
.portal-header .portal-header-navbar .navbar-container {
  max-width: 1120px; margin: 0 auto; padding: 10px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.portal-header .portal-header-navbar .navbar-brand { padding: 0; height: auto; }
.portal-header .portal-header-navbar .navbar-brand img.logo,
.site-header .navbar-brand img.logo {
  height: 24px; margin: 0;
}

/* duplicate logo inside the hero is not needed */
.portal-header .inner .logo-link { display: none !important; }

.portal-header .inner { max-width: 1120px; margin: 0 auto; padding: 4px 24px 0; }
.portal-header h1 {
  color: #fff !important;
  font-family: "Red Hat Display", Arial, sans-serif;
  font-weight: 500 !important;
  font-size: 26px !important;
  line-height: 1.15 !important;
  margin: 4px 0 14px !important;
}

/* search */
.portal-header .portal-search { display: flex; justify-content: center; gap: 8px; }
.portal-header .portal-search .search-field {
  width: min(560px, 100%) !important;
  height: 42px; border-radius: 999px !important;
  background: #fff !important; color: #070707 !important;
  border: 0 !important; box-shadow: none !important;
  padding: 0 22px !important; text-align: left !important; font-size: 16px !important;
}
.portal-header .portal-search .search-field::placeholder { color: #6E6E6E !important; text-align: left !important; }
.portal-header .portal-search button {
  width: 42px !important; height: 42px; padding: 0 !important; border-radius: 999px !important;
  background: #0F9BFF !important; color: #fff !important; border: 0 !important;
}
.portal-header .portal-search button { background: #070707 !important; }
.portal-header .portal-search button:hover { background: #2B2B2B !important; }

/* ---------- Version switcher replaced by "back to all products" ---------- */
.version-menu { display: none !important; }
.scewo-back {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35);
  color: #fff !important; font-size: 14px; font-weight: 500; text-decoration: none !important;
  white-space: nowrap;
}
.scewo-back { border-color: rgba(255,255,255,.6) !important; }
.scewo-back:hover, .scewo-back:focus { background: #fff; border-color: #fff; color: #0F9BFF !important; }
/* topic pages: back button in the top right corner */
.site-header .navbar-container { position: relative; }
.site-header .scewo-back { position: absolute; top: 12px; right: 16px; z-index: 20; margin: 0; }
@media (min-width: 768px) { .site-header .navbar-container { padding-right: 180px; } }

/* ---------- Chapter tiles: clean cards, no icons ---------- */
.portal-single-publication img,
.portal-single-publication .publication-icon { display: none !important; }

.portal-body, .main-raised { box-shadow: none !important; margin-top: 0 !important; border-radius: 0 !important; }
.portal-publications .inner { max-width: 1120px; margin: 0 auto; padding: 32px 24px 56px; }
.portal-publications .inner .inner-row {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
/* Bootstrap clearfix pseudo-elements would otherwise occupy grid cells */
.portal-publications .inner .inner-row::before,
.portal-publications .inner .inner-row::after { content: none !important; display: none !important; }
.portal-publications .inner .inner-row .portal-single-publication {
  width: auto !important; max-width: none !important; float: none !important;
  margin: 0 !important; padding: 0 !important;
}
.portal-single-publication a {
  display: flex !important; align-items: center; justify-content: space-between; gap: 12px;
  height: 100%; min-height: 72px;
  padding: 18px 20px !important;
  background: #F5F5F5 !important; border: 2px solid transparent !important; border-radius: 12px !important;
  box-shadow: none !important; text-align: left !important; color: #070707 !important;
  transition: border-color .15s ease;
}
.portal-single-publication a::after { content: "\2192"; color: #0F9BFF; font-size: 20px; line-height: 1; flex: 0 0 auto; }
.portal-single-publication a:hover, .portal-single-publication a:focus { border-color: #0F9BFF !important; }
.portal-single-publication h3 {
  margin: 0 !important; font-size: 17px !important; font-weight: 500 !important;
  line-height: 1.25 !important; color: #070707 !important; text-align: left !important;
}

/* ---------- One common content width (1120px) for header and tiles ---------- */
.portal-header .navbar-container,
.portal-header .inner,
.portal-publications .inner {
  width: 100% !important; max-width: 1120px !important;
  margin-left: auto !important; margin-right: auto !important;
  padding-left: 24px !important; padding-right: 24px !important;
  box-sizing: border-box;
}
.portal-body-container, .portal-body-row, .portal-publications {
  width: 100% !important; max-width: none !important;
  margin-left: 0 !important; margin-right: 0 !important;
  padding-left: 0 !important; padding-right: 0 !important; float: none !important;
}
/* Bootstrap clearfix pseudo-elements become flex items and push logo/button inwards */
.portal-header .navbar-container::before,
.portal-header .navbar-container::after { content: none !important; display: none !important; }
.portal-header .navbar-header { float: none !important; margin: 0 !important; }

/* Portal page: hamburger only opened the (now removed) version menu -> hide it */
.portal-header .navbar-toggle,
.portal-header .navbar-collapse { display: none !important; }
/* search field + button always on one line */
.portal-header .portal-search { flex-wrap: nowrap !important; align-items: center; }
.portal-header .portal-search .search-field { flex: 1 1 auto; min-width: 0; max-width: 560px; }
.portal-header .portal-search button { flex: 0 0 42px; }
@media (max-width: 600px) {
  .portal-header .navbar-container,
  .portal-header .inner,
  .portal-publications .inner { padding-left: 16px !important; padding-right: 16px !important; }
}

/* PDF download tile (added by the custom script when a PDF exists) */
.portal-single-publication.scewo-pdf a { background: #0F9BFF !important; }
.portal-single-publication.scewo-pdf a::after { content: "\2193"; color: #fff; }
.portal-single-publication.scewo-pdf h3 { color: #fff !important; }
.portal-single-publication.scewo-pdf a:hover, .portal-single-publication.scewo-pdf a:focus { background: #0B86DD !important; border-color: #0B86DD !important; }

/* ---------- Topic pages: black top bar instead of the blue band ---------- */
.site-header:after { background-color: #0F9BFF !important; }

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
  .portal-header h1 { font-size: 24px !important; }
  .portal-header .portal-header-navbar .navbar-container { padding: 12px 16px; }
  .portal-header .portal-header-navbar .navbar-brand img.logo { height: 24px; }
  .portal-publications .inner { padding: 20px 16px 40px; }
  .portal-publications .inner .inner-row { grid-template-columns: 1fr; gap: 10px; }
  .scewo-back { padding: 6px 12px; font-size: 13px; }
}
