@charset "utf-8";

.splash + .user_links {
  padding-right: 2%;
  padding-left: 0;
}
.user_links {
  display: grid;
  grid-auto-flow: column;
  gap: 16px;
  margin-top: 10px !important;
  margin-bottom: 20px !important;
  border: 1px solid transparent;
  width: 100%;
  grid-template-areas: 
    "add_code_form  user_nav"
    "account_menu account_menu";
}
.paper.accounts .user_links li:has(.fa-angle-left) {
  grid-area: add_code_form;
}
.paper.accounts .user_links li:has(.open-side-drawer) {
  grid-area: user_nav;
  text-align: right;
}
.user_links,
.user_links ul {
  list-style-type: none;
}
.user_links li:has(form) {
  grid-area: add_code_form;
  font-size: 1.05em;
}
.user_links li.nav {
  grid-area: user_nav;
  text-align:right;
  font-size: 1.05em;
}
.user_links li.codes_menu,
.user_links li.account_menu {
  grid-area: account_menu;
  background: #fff;
  padding: 4% 6% 6% 6%;
  position: relative;
  display: inline-grid;
  gap: 10px;
  row-gap: 30px;
}
.user_links li.codes_menu {
  grid-template-columns: 1fr;
}
.user_links li.account_menu {
  grid-template-columns: 1fr 1fr;
  grid-template-areas: 
    "edit logout"
    "diplomas diplomas";
}
.user_links li.account_menu :has(.activity),
.user_links li.account_menu :has(em:only-of-type) {
  grid-area: diplomas;
}
.user_links li.account_menu :has(em:only-of-type) {
  text-align: center;
}
.user_links li.account_menu :has(.logout) {
  grid-area: logout;
  text-align: right;
}
.user_links li.account_menu :has(a[href$="account/edit"]) {
  grid-area: edit;
}
.user_links li.account_menu:before {
  content: '\f0d8';
  font-family: FontAwesome;
  color: #fff;
  font-size: 2rem;
  position: absolute;
  top: -31px;
  right: 50px;
}
.user_links li.codes_menu:before {
  content: '\f0d8';
  font-family: FontAwesome;
  color: #fff;
  font-size: 2rem;
  position: absolute;
  top: -31px;
  left: 50px;
}
.user_links li.account_menu .logout {
  font-weight: lighter !important;
  text-transform: uppercase;
  font-size: 0.85rem;
}
.user_links .account_menu > div > a i {
  font-size: 26px;
}
.user_links .account_menu .activity a i {
  margin-top: -4px;
  font-size: unset;
}
.user_links .account_menu .activity a {
  color: #4183c4;
}
.user_links li.account_menu h1 {
  margin: 0;
  padding: 0;
  font-size: 1.5rem;
  font-weight: 500;
}
.user_links li.account_menu h2 {
  color: #414141;
  font-size: 0.85rem;
  margin: 0 0 14px 0;
  padding: 0;
  font-weight: normal;
}
.user_links .lang .open-side-drawer {
  width: unset !important;
  height: unset;
  margin-left: -10px;
}
@media screen and (max-width: 780px) {
  .user_links .lang .open-side-drawer {
    margin-right: unset;
  }
}
.user_links li:only-child .open-side-drawer img {
  height: 23px !important;
  margin-right: 2px;
}
.user_links ul:first-child {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 20px;
  line-height: 1.7rem;
}
.user_links .codes_menu ul:first-child,
.user_links .account_menu ul:first-child {
  grid-auto-flow: unset !important;
}
.user_links .account_menu .activity{
  gap: 0;
  width: 97%;
  margin-left: 14px;
}
.user_links li ul:has(li.code) {
  gap: 0;
  line-height: unset;
}
.user_links li ul:has(li.code) li.code {
  line-height: unset !important;
}
.user_links li ul:has(li.code) li.code:hover {
  border: 1px solid var(--brand-color);
  cursor: pointer;
}
.user_links li ul:has(li.code) li.code strong:after {
  content: '\f24d';
  font-family: FontAwesome;
}
.user_links ul .tagline {
  padding-top: 4px;
  font-size: 0.7rem;
  text-align: center;
  line-height: unset;
}
.user_links a {
  color: #414141;
  display: inline-block;
  line-height: initial;
}
.user_links a i {
  font-size: 21px;
  line-height: inherit;
}
.user_links li.nav a i,
.user_links .codes a i {
  font-size: 26px;
  line-height: inherit;
}
.user_links a .fa-circle-user {
  font-size: 18px;
  margin: 0 7px 0 0;
}
.user_links li.account_menu {
  padding: 6%;
  grid-template-columns: 1fr 1fr;
}
.user_links .account a {
  height: 40px;
  margin: -6px 0 0 -10px;
  border-radius: 40px;
  background: var(--brand-color);
  color: #fff !important;
  display: inline-grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  column-gap: 4px;
  font-weight: 500;
  font-size: 0.8rem;
  padding: 2px 20px 2px 12px;
}
.user_links li.account_menu a[href*="account/edit"] {
  height: 40px;
  margin: 0;
  border-radius: 40px;
  background: var(--brand-color);
  color: #fff;
  display: inline-grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  column-gap: 4px;
  font-weight: 500;
  font-size: 0.8rem;
  line-height: 2.5em;
  padding: 0 20px;
}
.user_links .account a p {
  font-size: 1rem;
  margin: 0;
  text-align: left;
}
.user_links .account a i {
  grid-row: span 2;
  align-self: end;
}
.user_links .account a p:first-of-type {
  margin-top: 0;
  font-weight: normal;
  font-size: 0.85rem;
}
.user_links .account a small {
  text-align: left;
  color: #ededed;
  font-family: Roboto, 'Roboto Mono', Arial, sans-serif;
  font-weight: lighter;
  display: inline-block;
  line-height: normal;
  margin: -7px 0 0 0;
}
.user_links a:has(.fa-folder) i {
  position: relative;
}
.user_links a:has(.fa-folder) i:after {
  content: "ADMIN";
  font-family: Roboto, 'Roboto Mono', Arial, sans-serif;
  font-size: 0.6rem;
  font-weight: lighter;
  top: 29px;
  left: -10px;
  position: absolute;
  width: 40px;
}
.user_links li.account_menu h1 a i:before {
  font-weight: normal;
}
.user_links .codes a small {
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: lighter;
  margin-left: 6px;
}
.user_links .codes a small strong {
  display: inline-block;
  width: 14px;
  height: 14px;
  line-height: 14px;
  text-align: center;
  border-radius: 17px;
  background: var(--brand-color);
  color: #fff;
  position: absolute;
  left: 17px;
  bottom: 0;
}
.user_links a:hover {
  color: #414141;
  text-decoration: none;
}
.user_links li:not(.lang) a[href*="account/new"]{
  background: var(--brand-color);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
}
.user_links input[type="submit"] {
  margin-top: unset;
  padding: 1px 6px;
  display: inline-block;
  height: inherit;
  font-size: 0.8rem;
  line-height: inherit;
}
.user_links input[type="submit"] {
  margin-top: unset;
  padding: 6px 24px;
  display: inline-block;
  height: inherit;
  font-size: 0.8rem;
  line-height: inherit;
  text-shadow: unset;
  text-transform: none;
  background-image: unset;
  border: none;
  background: var(--brand-color);
  font-weight: 500;
  border-radius: 30px;
  text-transform: uppercase;
}
.user_links input[type="submit"]:hover {
  cursor: pointer;
}
.user_links form input[name="pin[code]"] {
  max-width: 110px;
  font-family: var(--ff-mono);
  border: 1px solid lightgrey;
  border-radius: 6px;
  padding: 0 6px;
  height: 1.7rem !important;
}
.user_links form input[name="pin[code]"] {
  max-width: 110px;
  font-family: var(--ff-mono);
  border: 1px solid lightgrey;
  padding: 0 14px;
  height: 2rem !important;
  box-shadow: rgb(199, 199, 199) 0px 8px 6px -6px inset;
  color: #000;
  border-radius: 3px;
  text-transform: uppercase;
}
.user_links .toggle .switch {
  background: #ffffff69;
  color: #414141;
  display: inline-block;
  border: 1px solid #dedede;
  box-shadow: inset 1px 1px 1px rgba(0, 0, 0, 0.2);
  border-radius: 20px;
  word-spacing: -3px;
  height: 1.85rem;
  padding: 0 4px;
  transform: scale(0.9);
}
.user_links .toggle .switch a {
    text-align: center;
    padding: 0 12px;
}
.user_links .toggle .switch a:hover {
  text-decoration: none;
}
.user_links .toggle .switch .active {
  background: #fff;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
  transform: scale(1.2);
  font-size: 0.75rem;
  line-height: inherit;
  border-radius: 20px;
}
@media (max-width: 650px) {
  .user_links a .fa-circle-user {
    margin: 0 0 0 3px;
  }
  .user_links .account a {
    padding: 1px 4px !important;
  }
  .user_links .account a p,
  .user_links .account a small {
    display: none !important;
  }
}
@media (max-width: 532px) {
  .user_links li {
    font-size: 1em;
  }
  .user_links .toggle .switch a {
    width: 30px;
    letter-spacing: 30px;
    overflow: hidden;
    white-space: nowrap;
    line-height: inherit;
  }
}
@media (max-width: 447px) {
  .user_links .toggle {
    display: none;
  }
}

/* mobile pick lang */
.side-drawer {
  display: grid;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 3030;
  background-color: #1c1c1cbd;
  background-repeat: no-repeat;
}
.side-drawer {
  grid-template-columns: 90% 10%;
  padding: 2.4rem;
  background-position: 50% 50%;
}
.side-drawer.hidden {
  left: -100vw;
}
.lang .side-drawer nav {
  top: 33%;
  left: 29%;
  position: relative;
  max-width: 54%;
  min-height: 0;
}
button.open-side-drawer {
  width: 22px;
  height: 22px;
  margin-left: -6px;
  background: none;
  border: none;
}
button.open-side-drawer:hover,
.side-drawer button.close:hover {
  cursor: pointer;
}
.side-drawer button.close {
  margin-left: auto;
  margin-top: -1rem;
  border-radius: 60px;
  border: none;
  padding: 0 14px;
  height: 2.4rem;
  background: white;
  font-size: large;
  text-align: center;
  color: #2d2d2d;
}
.side-drawer button.close {
  position: relative;
  top: 31%;
  right: 240%;
}
.lang .side-drawer nav {
  display: grid;
  grid-gap: 1rem;
  justify-items: start;
  text-transform: uppercase;
}
.lang .side-drawer nav {
  grid-template-columns: repeat(3, 1fr);
  max-height: 60vh;
  background: #fff;
  margin: -50px 30px;
  border: 40px solid #fff;
  overflow-y: auto !important;
}
.lang .side-drawer nav a img {
  height: 1.4rem;
  grid-row: span 2;
}
.lang .side-drawer nav a span {
  font-size: 0.75em;
  color: grey;
}
.lang .side-drawer nav a.current {
  font-weight: bold;
}
.lang .side-drawer nav a.current span {
  font-weight: normal;
  background: #fdff00ad;
  padding: 2px 6px;
  margin-left: -6px;
  border-radius: 6px 0;
  height: fit-content;
}

.lang .side-drawer nav a.draft {
  opacity: 0.4;
}
.lang .side-drawer nav a {
  display: inline-grid;
  grid-template-columns: 30px 1fr;
  grid-template-rows: max-content;
  justify-items: start;
  font-weight: 400;
  line-height: 1.4;
  font-size: 0.9rem;
  color: #1c1d1f;
  white-space: nowrap;
}

@media screen and (max-width:1010px) {
  .lang .side-drawer nav {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width:770px) {
  .side-drawer {
    grid-template-columns: 78% 22%;
    padding: 2.4rem 1.5rem 2.4rem 2.4rem;
    background-position: unset;
    background-size: 74% 100%, 100% 100%;
    background-image: 
    linear-gradient(#fff, #fff), 
    linear-gradient(#1c1c1cbd, #1c1c1cbd);
    overflow: scroll;
  }
  .side-drawer button.close {
    position: unset;
    top: unset;
    right: unset;
  }
  .lang .side-drawer nav {
    grid-template-columns: 1fr;
    align-self: start;
    width: 92%;
    max-width: unset;
    max-height: unset;
    min-height: unset;
    overflow: scroll;
    position: unset;
    top: unset;
    left: unset;
    background: unset;
    margin: unset;
    border: unset;
    padding-bottom: 30vh;
  }
  .lang .side-drawer nav a {
    font-size: 1rem;
  }
}


/* Pick lang menu */
.lang {
  position: relative;
  display: inline-block !important;
}
.lang ul {
  width: 200px;
  padding: 0;
  margin: 0;
  background: white;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  visibility: hidden;
  position: absolute;
  left: -170px;
  top: 20px;
  z-index: 300;
}
.user_links li:only-child ul {
  left: unset;
  right: 15px;
}
@media(hover: hover) and (pointer: fine) {
  .lang:hover ul,
  .lang ul:hover {
    visibility: visible !important;
  }
}
.lang img {
  height: 18px;
  display: inline-block;
  margin-bottom: -3px;
  margin-right: 6px;
  border-radius: 20px;
  box-shadow: 0 0 1px #0050ba;
}
.lang button img {
  box-shadow: unset;
}
body:not(.course_level) .lang img {
  height: 20px;
  margin-bottom: -6px;
  margin-right: 4px;
}
body:not(.course_level) .user_links .lang img {
  height: 26px;
  margin-bottom: -6px;
  margin-right: 4px;
}
body:not(.course_level) .sessions .lang img,
body:not(.course_level) .sessions .user_links i {
  height: 22px !important;
  font-size: 22px;
}
body:not(.course_level) .sessions .user_links i:before {
  position: relative;
  top: 2px;
  margin-right: 6px;
}
.paper.pin .lang img {
  margin-bottom: -4px;
  margin-right: 4px;
}
.expanded .langs img {
  border-radius: 20px;
  box-shadow: 0 0 1px #0050ba;
}


/* Modules */
ul.modules{
  background: none;
  background-image: linear-gradient(transparent 50%, #fff 50%);
  min-height: 24px;
  height: 100%;
  padding:0;
  margin: -6px 0 auto 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
ul.modules li {
  padding: 6px 8px 4px 8px;
  display: inline-block;
  background-image: none;
  border-radius: 3px 3px 0 0;
  text-align: center;
}
ul.modules.large > li:not(.sitemap):not(.lang):not(.dict) {
  padding: 4px 6px;
  max-width: 130px;
  vertical-align: bottom;
  border: 1px solid #4d780738;
  border-bottom: none;
  margin-right: 2px;
}
ul.modules.large li > a {
  max-height: 30px;
}
ul.modules li a {
  background-image: none;
  color: var(--txt-color);
  font-size: .9em;
  text-transform: uppercase;
  line-height: 1.5;
  display: inline-block;
}
ul.modules li a i {
  font-size: 1.3em;
}
ul.modules li.active a {
  color:#fff !important;
}
ul.modules > li:first-child {
  border: none !important;
}
body.course_level .banner,
ul.modules { 
  border-bottom: 16px solid transparent;
  background: white;
}
.banner + .modules {
  margin-top: -44px;
  position: relative;
  padding-right: 57px;
  padding-left: 60px;
}
.banner + .modules li:empty {
  height: 24px;
}
.paper.results .banner + .modules li a[href*="start"]:has(i) i {
  top: -4px;
  position: relative;
}

ul.modules li.dict {
  float: right;
  padding-top: 8px;
  padding-right: 5px;
}
ul.modules li.dict img[src*='dict'] {
  height: 16px;
}
ul.modules li.sitemap,
ul.modules li.search {
  float: right;
  color: #414141;
  padding: 7px 4px !important;
}
ul.modules li.lang {
  float: right;
  padding: 4px 0 0 5px;
}


/* Chapter navigation */
ul.chapters,
.linear + ul.sections {
  float: left;
  margin-left: 5% !important;
}
ul.chapters,
ul.subchapters,
.linear + ul.sections {
  width:100%;
  max-width: 240px;
  margin:0;
  padding:0;
  list-style:none;
}
.linear + ul.sections {
  max-width: 530px;
}
.chapters { 
  margin-top: 10px !important;
}
ul.chapters li,
ul.subchapters li {
  background:none;
  border-bottom:1px solid #c6c6c6;
  margin:0;
  text-align:left;
  word-break: word-break;
}
ul.chapters li:last-of-type {
  border: 0;
}
ul.chapters li a,
ul.subchapters li a {
  font-size: small;
  line-height: 1.9em;
  color: var(--txt-color);
  padding: 4px 4px 4px 12px;
  display: block;
}

/* Active/Current */
ul.chapters li.active,
.paper > ul.sections li.active {
  background:none;
  background-color:#efefef;
}
ul.chapters li.active > a,
ul.subchapters li.active > a {
  font-weight: bold !important;
}


/* Sub chapters */
ul.subchapters{
  position: inherit;
  margin:0;
  padding:0;
}
ul.subchapters li{
  margin:0;
  background-image: none;
  background-color:#f9f9f9;
  padding:0 0 0 10px;
  border-bottom:1px dashed #c6c6c6;
}
ul.subchapters li.active{
  background:#f0f0f0;
}


/* Chapter dropdown */
ul.modules li:hover .chapters-dd,
ul.modules li .chapters-dd:hover {
  display: block;
}
.chapters-dd {
  display: none;
  z-index: 300;
  box-sizing: border-box;
  max-height: calc(100vh - 61px);
  overflow-y: auto;
  position: absolute;
  top: 100%;
  left: -10px;
  background-color: #fff;
  padding: 0;
  border: 1px solid #ddd;
  border-bottom-color: #ccc;
  text-align: left;
  border-radius: 4px;
  white-space: nowrap;
}
.chapters-dd a,
.modules li.active .chapters-dd a {
  font-size: 1em;
  padding: 10px 30px 10px 20px;
  margin: 0;
  color: #3a5169 !important;
  display: block;
  text-transform: none;
  border-bottom: 1px solid #ddd;
  position: relative;
}
.chapters-dd a.active {
  font-weight: bold;
  color: #000 !important;
}
.chapters-dd a:hover {
  background: rgba(15, 108, 182, 0.2);
}
.chapters-dd a:last-of-type,
.modules li.active .chapters-dd a:last-of-type {
  border-bottom: none;
}
@media screen and (min-width:770px) {
  ul.modules { overflow: visible !important; }
  ul.modules li { position: relative; }
}


/* Idle sections */
.content .running_text + ul.sections li.ext {
  padding:0 0 0 10px;
  background-color:#f8f8f8;
  border-bottom:1px dashed #c6c6c6;
}
.content .running_text + ul.sections li.ext.idle {
  display:none;
}



/* Sections (in page content) */
.content .running_text ~ ul.sections {
  margin: 0;
  padding: 0;
  list-style: none;
  clear: both;
}
.content .running_text ~ ul.sections li {
  position: relative;
  margin-left: 20px;
}
.content .running_text ~ ul.sections li:before {
  content: '';
  background: var(--brand-color);
  border-radius: 1px;
  width: 10px;
  height: 10px;
  display: inline-block;
  margin: -1px 10px 0 -20px;
}
.content .running_text ~ ul.sections li.unvisited:before {
  background: #dedede;
}
.content .running_text ~ ul.sections li p {
  display: inline;
}
.content .running_text ~ ul.sections li a {
  font-size: larger;
  line-height: 2;
  color: var(--txt-color);
  display: inline;
  text-decoration: none;
  position: relative;
}
/* Sections (mini) */
.content .linear + ul.sections {
  position: absolute;
  margin-top: -22px;
  margin-left: 0 !important;
}
.content .linear + ul.sections li a {
  overflow: hidden;
  width: 10px;
  height: 10px;
  display: inline-grid;
  line-height: 10px;
  padding-left: 12px;
  top: 0;
  left: 0;
  position: absolute;
}
.content .linear + ul.sections li label {
  display: none;
}
.content .linear + ul.sections li {
  background: var(--brand-color);
  border-radius: 1px;
  width: 10px;
  height: 10px;
  margin: 6px 0;
  display: inline-block;
  position: relative;
}
.content .linear + ul.sections li.unvisited {
  background: #dedede;
}
.content .linear + ul.sections li:has(label):before,
.content .linear + ul.sections li.draft:before {
  content: '';
  border-style: solid;
  border-width: 10px 10px 0 0;
  border-color: #fecb3d transparent transparent transparent;
  position: absolute;
}
/* DRAFT/NEW pages */
.content .draft ~ .tools {
  grid-area: tools;
  margin-bottom: 20px;
}
.pages .draft:not(.chapter) a:last-of-type,
.pages .draft.chapter a:last-of-type,
.content .draft ~ ul.sections li.draft a,
.content .running_text ~ ul.sections li.draft a,
.page .chapters .draft a {
  border: 1px dashed #feca3d;
  background: #fefcf2;
  padding: 4px 6px;
  border-radius: 3px;
}
.pages .base:not(.chapter) a:last-of-type,
.pages .base.chapter a:last-of-type,
.content .base ~ ul.sections li.base a,
.content .running_text ~ ul.sections li.base a,
.page .chapters .base a {
  border: 1px dashed #afafb0;
  background: #b0afaf0f;
  padding: 4px 6px;
  border-radius: 3px;
}
ul.tips .tip.draft {
  border: 1px dashed #feca3d;
  background: #fefcf2;
}
ul.tips .tip.base {
  border: 1px dashed #afafb0;
  background: #b0afaf0f;
}
ul.tips .tip.draft.active {
  background: #ffcc66;
}
ul.tb_qna li.loop li .running_q.draft {
  background: #fefcf21f !important;
  left: unset;
  width: 100%;
}
ul.tb_qna li.loop li .running_q.base {
  background: #b0afaf0f !important;
  left: unset;
  width: 100%;
}
ul.tb_qna li.loop li .running_q.published {
  background: #f4fcff1a !important;
  left: unset;
  width: 100%;
}
.content .running_text.new:before,
ul.tips .tip.new:before,
.running_text > a:before {
  content: '';
}
.pages .draft:not(.chapter) .running_text a,
.pages .draft:not(.chapter) .comments a {
  border: none !important;
  background: none !important;
  padding: unset !important;
  border-radius: unset !important;
}


/* Tips menu */
ul.tips {
  float: left; 
  min-height: 1px; 
  width: 22.2%;
  list-style: none;
  margin: 46px 0 0 0;
  padding: 0;
}
ul.tips.documents{
  margin: 0;
}
ul.tips li{
  background: #dfdfdf;
  text-align:center;
  padding:6px 2px;
  margin: 0 0 7px 0;
  line-height: 1.7;
}
ul.tips li.title{
  display:none;
}
ul.tips li.practise {
  background:#565656;
}
ul.tips li.active{
  background: #ffcc66;
}
ul.tips li a{
  color:#000;
  font-style: normal;
}
ul.tips li.practise a {
  color:#fff;
}

ul.tips li.note {
  padding:6px 12px;
}

ul.tips li.note ul li {
  text-align: left !important;
  list-style: disc !important;
  padding:0;
  margin:10px;
}


/* Downsize
********************************************************/
@media screen and (max-width:1200px) {
  .banner .title {
    left: 2.5%;
  }
  .banner + .modules {  
    padding-left: 22px;
    padding-right: 20px;
  }
  ul.chapters,
  .paper > ul.sections {
    margin-left: 2% !important;
    position: absolute;
    z-index: 0;
    width: 17.7%;
    transition: all 0.3s ease;
  }
  .chapters {
    display: inline-block;
  }
  a.chapter_nav {
    display: none;
  }
}
@media screen and (max-width:960px) {
  ul.modules li {
    padding: inherit 3px;
  }
}
@media screen and (max-width:770px) {
  .content,
  .content.wide {
    border: none !important;
    width: 100%;
    margin-right: 0 !important;
    margin-top: -14px;
  }
  .linear ul.sections,
  .chapters {
    display: none;
  }
  ul.modules {
    border-bottom: 0 !important;
    border-top: 10px solid var(--brand-color);
    padding: 0 10% 3% 6%;
    white-space: nowrap;
    overflow-x: scroll;
    margin: 0 !important;
    margin-top: unset !important;
    background: transparent;
    z-index: 2200;
  }
  ul.modules:has(.side-drawer:not(.hidden)) {
    overflow-x: hidden;
  }
  ul.modules li {
    display: inline-block;
    border-radius: 0 0 6px 6px;
    line-height: 27px;
    padding: 6px 8px !important;
  }
  ul.modules > li:first-child {
    margin-left: -12px;
  }
  ul.modules li a {
    line-height: 1em !important;
    font-size: 1.1em;
  }
  .modules ~ .content {
    border-top-color: transparent !important;
    border-top-width: 0 !important;
    margin-top: 2px;
  }
  ul.modules li.sitemap,
  ul.modules li.search {
    float: none;
  }
  ul.modules li.lang {
    float: none;
  }
}