header.header {
background: #FFFFFF;
display: flex;
height: 250px;
}
#top_menu {background-color:#3a50a2;  position: relative; 	z-index: 999;
display: grid;
  grid-template-columns: 25% 1fr;
  grid-template-rows: 1fr;
  gap:
0px 0px;
  grid-auto-flow: row;
  grid-template-areas:
". . .";
}
.quarter_spacer { width: 25%; margin-left: 27px; display: inline-block;}

a.hp_link { width: 25%;
/*  max-width: 320px;*/
  position: absolute;
  bottom: 0px;
  left: 0;
  z-index: 10;
  padding-bottom: 23px;
text-align: center;  
}
a.hp_link img {background-image: url('../images/MR-LATVIA_LOGO.png');
width: 80%;
background-size: 100%;
background-repeat: no-repeat;
background-position-y: bottom;  
}

.header_modules { width: 100%;
display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}
.header_grey_line {
background: var(--light-grey);
display: grid;
grid-template-columns: 25% 1fr 100px;
grid-template-rows: 1fr;
gap: 0px 0px;
grid-auto-flow: row;
grid-template-areas:
  ". . .";
margin-top: 24px;
}
.header_grey_line_middle { display: flex; font-size: 110%; justify-content: center; max-height: 55px;}
.logout .mod-login-logout {display: flex; flex-direction: row-reverse; align-items: center; margin-right: 10px;}
.header_grey_line .mod-login__userdata {
display: grid; 
grid-auto-flow: column; 
grid-template-columns: 1fr 1fr 80px; 
grid-template-rows: 1fr; 
gap: 0px 25px;
justify-items: left;
grid-template-areas: 
  ". . ."; 	
}
.header_grey_line .mod-custom, .header_grey_line .mod-login {
display: inline-flex;
flex-direction: column;
justify-content: center;
}
.header_grey_line .mod-login {padding-left: 27px;}
.header_grey_line_right {background: #FFFFFF;
width: 100%;
height: 100%;
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
}
.header .linkedin_button, .header_grey_line .linkedin_button .mod-custom  { 
text-align: center;
display: inline-block;
}
.header .linkedin_button img { background-image: url('../images/linkedin.png'); width: 40px; height: 40px; }
.header .linkedin_button img:hover { background-image: url('../images/linkedin_hover.png') }

.header_white_line {
display: grid;
grid-template-columns: 25% 1fr 100px;
grid-template-rows: 1fr;
gap: 0px 0px;
grid-auto-flow: row;
grid-template-areas:
  ". . .";	
/*overflow: hidden;*/
}

/* NAVIGATION DESKTOP */
.container-header .container-nav { padding: 0;}
.container-header nav { margin-top: 0;}
.site .desktop_menu, .second-level-menu > ul.mod-menu {  
display: flex;
flex-direction: row;
justify-content: space-around;
}
.site .desktop_menu a { 
color: #FFFFFF; 
font-size: 135%;
height: 100%;
width: 100%;
display: inline-flex;
justify-content: center;
flex-direction: column;
}
.mod-list li.active > a { text-decoration:none;}
.site .desktop_menu > li { margin-left: 0!important; text-align: center;
min-height: 60px;
width: 25%;
padding: 0;
position: relative;
}
.site #top_menu .desktop_menu > li.active { background-color:#17224d;}
.site .purple_menu .desktop_menu > li.active { background-color:var(--light-grey);}
.site .purple_menu .desktop_menu > li.active > a { color:var(--body-color); text-decoration: none; font-weight: 500;}
.site .desktop_menu li .mod-menu__sub {
  left: -9999px;
  position: absolute;
  display: block;
  opacity: 0;
  z-index: 999;
}
.site .desktop_menu li:hover > ul {
  background-color:#ececec;
  visibility: visible; 
  opacity: 1;
  display: inherit; 
  top: 100%;
  left: 50%;
  width: 100%;
  min-width: 190px;
  padding: 16px 0;
  z-index: 11;
  transform: translate(-50%,0);
  transition: 0.2s;
  box-shadow: 3px 1px 5px 2px #0000004D;
}
.site .second-level-menu .desktop_menu li:hover > ul, .site .desktop_menu li:hover > ul ul { padding: 0; }

.site .desktop_menu li:hover > ul li { height: 40px; font-size: 115%; position: relative;}
.site .desktop_menu li:hover > ul > li > a:hover { background-color:#A9A8A8; color:#fff; }
.site .desktop_menu li > ul > a,  .site .desktop_menu li > ul > a:hover { color: #FFF; text-decoration-color:#FFF; }
.container-header .mod-menu > li.active::after, .container-header .mod-menu > li:hover::after {display: none;}
.top_menu > ul > li:hover { background: #1f3482;}
.site .top_menu li:hover ul a { color: var(--body-color);}
nav.purple_menu {background: var(--purple);
position: relative; 
z-index: 9;
}
.purple_menu ul {width: 100%;}
.purple_menu > ul > li:hover { background: #691049;}
.site .purple_menu li:hover ul a { color: var(--purple);}
.site nav .desktop_menu li:hover ul ul {transform: translate(0%,0);
  top: 0;
  left: 100%;}
.second-level-menu { background:#e6e6e6;
box-shadow: inset 0px 4px 4px 0px #00000033, 0px 4px 4px 0px #00000033;
padding: 0 0.5em ;
font-size: 120%;
}
.site .second-level-menu .desktop_menu > li { width: 20%; padding-top: 5px; }
.site .second-level-menu .desktop_menu > li.active { background-color: var(--light-grey);}
.site .second-level-menu a {color: #000; font-size: 100%; line-height: 95%; padding: 0 10px;}
.second-level-menu > .third-level-menu {background:var(--light-grey); margin: 0px -10px ; justify-content: center !important;}
.site .second-level-menu .third-level-menu > li { padding: 7px;  min-height: fit-content; width:25%;}
.site .third-level-menu a {font-size:80%}
.site .third-level-menu ul a {font-size:100%}
.site .second-level-menu ul.third-level-menu > li.active { background-color :#B0B0B0;}
.site .second-level-menu ul.third-level-menu > li.active > a { color:var(--body-color); text-decoration: none; font-weight: 500;}
.fourth-level-menu {background:#B0B0B0; margin: 0px -10px ;}
.site .second-level-menu .fourth-level-menu > li { padding: 5px;  min-height: fit-content;}
.site .fourth-level-menu a {font-size:70%}
.site .second-level-menu ul.fourth-level-menu > li.active { background-color: #9C9C9C  }
.site .second-level-menu ul.fourth-level-menu > li.active a { text-decoration: none; color: #FFF; }

.header .btn-primary { border: 0; border-radius: 0; line-height: 100%; padding: 15px 16px; margin: 0px; font-weight: 400; background-color: var(--light-grey);}
.header .btn-primary:hover {background-color: var(--body-color);}
.breadcrumb {  background-color: var(--very-light-grey); margin-top: 18px;}

/* NAVIGATION MOBILE */
#mobile_menu_button { background-image: url('../images/mobile-menu-button.png'); width: 40px; height: 40px; margin-left:15px; display: none; }
#mobile_menu_button:hover { background-image: url('../images/mobile-menu-button_hover.png'); cursor: pointer; }
#mobile_menu_close_button { cursor: pointer; background-image: url('../images/mobile-menu-close-button.png'); }
#mobile_menu_close_button:hover { background-image: url('../images/mobile-menu-close-button-hover.png'); }
#mobile_menu_close_button {position: absolute; right: 20px; top: 20px; z-index: 999; width:40px; height:40px;}
#mobile_menu {
  display: none;
  background-color: #FFF;
  position: absolute;
  z-index: 998;
  width: 100%;
  text-align: center;
  font-size: 140%;
  padding: 2vw 2vw 7vh 2vw ;
  border-bottom: 1px solid #3f3f3f;
  -webkit-box-shadow: 0px 5px 35px 5px #3F3F3F; 
box-shadow: 0px 5px 35px 5px #3F3F3F;
}
.mobile_menu_logo { max-width: 200px; display: inline-block;}
#mobile_menu ul { padding-left: 0;}
#mobile_menu .mod-list li {
  padding: .45em 0;
}
#mobile_menu .small { font-size: 80%;}
#mobile_menu ul , .social-networks { width: 100%;}
#mobile_menu .collapse:not(.show) { display: inherit;}
#mobile_menu .navbar-toggler { display:none;}
#mobile_menu .divider { display: none; }
#mobile_menu a { color: var(--body-color);}
.site .white_menu { justify-content: center;  }
.site .white_menu a { color: var(--body-color)!important; }
.site .white_menu > li > a { font-size: 80%;}
.site .white_menu > li > ul > li > a { font-size: 120%;}
.site .white_menu > li > ul > li > a:hover { color:#111!important;}
html .site .white_menu > li {    min-height: auto;  }
.site .white_menu li:hover > ul, .site .white_menu li:hover > ul > li { padding:0;}
/*LOGIN MODULE*/
.mod-login div.form-group, .mod-login-logout div {width: 100%;
display: inline-flex;
margin-bottom: 0!important; }
.mod-login__submit {justify-content: space-around;}
.header_grey_line .logout-button, .header_grey_line .logout-button button { height: 50px; color: var(--blue); font-size: 100%; margin-right: 5px;}
.header_grey_line .logout-button, .header_grey_line .logout-button button:hover { color:#FFFFFF;}
.header .header_grey_line .mod-login input { text-align: left; padding: 0.6rem 0 0.6rem 15px; font-size: 120%;      max-height: 55px; }
.header .header_grey_line .mod-login input:hover , .header .header_grey_line .mod-login input:focus{ background-color: var(--middle-grey); color: #FFFFFF; }
.header_grey_line input:-webkit-autofill,
.header_grey_line input:-webkit-autofill:hover, 
.header_grey_line input:-webkit-autofill:focus, 
.header_grey_line input:-webkit-autofill:active  {
    -webkit-box-shadow: 0 30px 0 30px #cbcbcb inset !important;
}
.mod-login button[type=submit] {background-image: url('../images/login_button.png');
background-position: 35% 75%;
background-repeat: no-repeat; 
width: 100%; height: 100%;
margin-right:0;}
.mod-login button[type=submit]:hover, .mod-login button[type=submit]:active { background-color:var(--body-color);}
.mod-login button, .mod-login .input-group-text, .user_plus { background-color: transparent; border: 0; color: var(--middle-grey); height: 46px; font-size: 120%;}
.mod-login button.input-password-toggle:hover , .user_plus:hover { border-radius: 0; background-color:var(--deep-grey); color:#FFF; }
.mod-login button[type=submit]:hover {background-image: url('../images/login_button_hover.png'); }
.mod-login-logout__options { display: inline-block; }
.mod-login .form-control {   background-color: transparent; border: 0; border-radius: 0;  }
.mod-login .form-control::placeholder {  font-weight: 200; }
.mod-login .form-control:hover::placeholder {color:#FFFFFF;}
.mod-login .input-group  { flex-direction: row-reverse;}
.logout .mod-login-logout>div {width:inherit; font-weight: 500;}
.logout {margin-left:10px; }
.logout form {text-align: right; }
.logout input { font-size: 16px;}
.mod-login-logout a { color: var(--body-color);}

/* SEARCH MODULE */
.header_white_line #search_button { display: inline-flex;
flex-direction: column;
align-items: center;
height: 46px;
position: relative;
z-index: 11;
background-color: #FFFFFF;
justify-content: start;
}
.header_white_line #search_button img { background-image: url('../images/search.png'); width: 30px; height: 30px; max-width: fit-content;}
.header_white_line #search_button img:hover, .header_white_line #search_button.search_button_on img { background-image: url('../images/search_hover.png'); }

.one-liner { font-size: 140%;
margin-bottom: 14px;
display: inline-block;
position: relative;
padding-left: 27px;
}
.oneliner_text {position: absolute; width: 100%; overflow: hidden; transition: 1s; height: 36px;}
.oneliner_text_off {width:0px; }

.mod-finder  { position: absolute; left: 110%; transition: 1s; z-index: 10; width: 0px; overflow: hidden;}
.search_container_on {left: 0%; width: 100%; overflow: visible;}
.mod-finder .awesomplete { width: 100%; padding-left: 27px;}
.mod-finder .inputbox, .mod-finder .js-finder-search-query { width: 100%; padding: 2px 6px; text-align: center; font-weight: 500; max-width: inherit;}
.mod-finder .js-finder-search-query {height: 35px; border-radius: 0;}
.mod-finder button {  height:35px  }
/* MAIN CONTENT AREA */
.container-component { margin-top:27px;}
.homepage .container-component { margin-top:0px;}
.container-component > :first-child, .container-sidebar-left > :first-child, .container-sidebar-right > :first-child, .container-component > * + *, .container-sidebar-left > * + *, .container-sidebar-right > * + * {  margin-top: 0;}
#system-message-container:has(joomla-alert) {  margin-bottom: 1em;}
.com-users-login {
width: fit-content;
text-align: center;
margin: auto;	
}
.com-users-login .form-check {display: inline-block;}
.create_account_button {background-color: var(--light-grey); font-size: 120%; padding: 0 40px;}
.create_account_button a.btn {font-size: 100%;}
[data-rlta-element="container"][data-rlta-state="ready"][data-rlta-theme="neutral"][data-rlta-type="tabs"] > [data-rlta-element="button-list"] > [data-rlta-element="button"] {
  border: 1px solid #c0c6cf;
}
/* FOOTER */
.footer {
  color: var(--body-color);
  background-color: #FFFFFF;
  background-image: none;
  margin-top: 6em;
}
.footer .mod-custom { width: 100%;}
body.wrapper-fluid footer > .grid-child {  padding: 0;}
.footer .row {margin:0;}
.footer a { text-decoration: none}
.footer .custom > div:nth-of-type(2) { display: grid; 
  grid-auto-flow: unset;
grid-template-columns: 1fr 1fr 1fr 1fr; 
  grid-template-rows: 1fr; 
  gap: 0px 1em; 
  grid-template-areas: 
    ". . . ."; 
  justify-content: start; 
  padding:27px 27px 54px;
}
.footer .custom > div:nth-of-type(1) > div { padding: 2vw; font-size: 110%; line-height: initial;}
.footer .custom > div:nth-of-type(1) > div:nth-of-type(2) { font-weight: 300; position: relative;}
.footer .custom > div:nth-of-type(1) > div:nth-of-type(2) b { font-weight: 500}
.footer .custom > div:nth-of-type(1) .footer-mrlatvia-logo {margin-right: 10px; max-width: 130px;}
.footer .custom > div:nth-of-type(1) img.eu-logo {margin-right: 10px; max-width: 120px;}
.footer .custom > div:nth-of-type(1) a:hover {color: var(--body-color); text-decoration: underline;}
.footer .lios-phone {margin-left: 30px;}
.footer .linkedin-link img {background-image: url('../images/linkedin.png'); width: 20px; height: 20px; background-size: 100%; margin: 0 0 3px 10px;}
.footer .linkedin-link img:hover {background-image: url('../images/linkedin_hover.png'); }
.footer .eu-text { font-size: 140%; font-weight: 600;   color: #283791;}
.footer .custom > div:nth-of-type(2) {background:var(--deep-blue);}
.footer .custom > div:nth-of-type(2) a {
height: 100%;
width: fit-content;
display: inline-flex;
justify-content: center;
flex-direction: column;
align-items: flex-start;	
color:#FFFFFF;
font-size: 90%;
font-weight: 300;
padding: 1px 8px;
}
.footer .custom > div:nth-of-type(2) a:hover { background:#691049;}
#cookiehintsubmit { background-color: #000!important; }
#redim-cookiehint .cookiehead .headline::before { background-image: none; }
#redim-cookiehint .cookiehead .headline { padding-left: 0;}
#cookiehintsubmit, #cookiehintsubmitno {
  background: var(--blue) !important;
    background-image: none;
  color: #fff !important;
}
#redim-cookiehint-bottom #redim-cookiehint { max-width: inherit ;}
/* Acymailing */
.acym_module_form { display: flex;
flex-direction: row;
justify-content: center;
padding: 8vw 2vw 0;
}
.acym_form { width: fit-content; margin: 0; padding: 0;}
.acym_form .acyfield_text { margin: 0; padding: 0;}
.acym_module_form input{max-width: 100%; height: 50px;}
.acym_form input { 
border:none;
border-radius:0;
background: var(--very-light-grey);
padding: 10px 20px;
  width: 40vw;
  text-align: center;
  font-size: 115%;
}
p.acysubbuttons {width: fit-content;
  display: inline-block;
}
p.acysubbuttons input { padding: 4px 30px;
  font-size: 130%;}
/* SDM */
.acl_switcher {display: flex;   align-items: center; }
#acl_form select {height: 50px;
background: var(--blue);
color: #fff;
border: 0px;
border-radius: 0;
padding: 0 10px;
}
#acl_form select:focus {outline: 0;}
.acl_module { display: block; float:left; padding:0px; position: relative; bottom: 4px;}
.acl_module form { margin-bottom: 6px;}
.acl_change_module {clear: left; }
body.role_none .purple_menu li li:has(.register_a_publication), body.role_user .purple_menu  li li:has(.register_a_publication),
body.role_none .second-level-menu li:has(.register_a_publication), body.role_user .second-level-menu li:has(.register_a_publication)
{ display:none;}
body li:has( > a.hidden) { display:none;}
.jd_footer {display:none;}
/* ADAPTATIVE LAYOUT */
@media (min-width: 1500px) {
	a.hp_link img { max-width: 380px;}
}
@media (max-width: 1500px) {
header.header {height: 220px;}
}
@media (max-width: 1300px) {
.site .desktop_menu > li { min-height: 50px;}
header.header {height: 200px;}
a.hp_link img { width: 90%; min-width: 240px;  }
}
@media (max-width: 1100px) {
header.header {height: 190px;}
header_grey_line { margin-top: 24px;}
}
@media (max-width: 999px) {
header.header {height: 185px;}
header_grey_line { margin-top: 17px;}
header_grey_line .mod-login, .one-liner {  padding-left:10px;}
.one-liner {font-size: 130%; padding-top: 3px;}
.header_grey_line {grid-template-columns: 25% 1fr 130px;}
#mobile_menu_button { display: inline-block;}
.header_white_line {grid-template-columns: 25% 1fr 75px;}
.footer .custom > div:nth-of-type(1) {padding:1vw;}
.footer .custom > div:nth-of-type(1) > div {width: auto;  margin: auto;  padding:0.5vw;}
.footer .custom > div:nth-of-type(1) img.eu-logo { margin: 0 12px 0 16px;  max-width: 100px;}
.footer .custom > div:nth-of-type(1) .footer-mrlatvia-logo {  max-width: 110px;}
.mod-finder .awesomplete { padding-left: 10px;}
}
@media (max-width: 928px) {
.footer .custom > div:nth-of-type(1) > div:nth-of-type(2) {order: -1 !important; margin-bottom: 10px;}
}
@media (max-width: 870px) {
header.header {height: 180px;}
a.hp_link {
padding-bottom: 12px;
height: 100%;
}
a.hp_link img {
height: 100%;
min-width: inherit;  
width: fit-content;
background-image: url('../images/MR-LATVIA_white-bg.png');
background-size: contain;
background-position-y: inherit;
background-position-x: center;	
}
.one-liner {font-size: 110%; }
.header_grey_line .mod-login__userdata {grid-template-columns: 1fr 1fr 50px;}
.mod-login button[type="submit"] {background-position: 7% 135%;}
.header_white_line #search_button { height: 40px;}
.input-password-toggle { padding: 0 10px 0 0 ; }
.mod-login div.form-group { width: 110%;}
}
@media (max-width: 777px) {
header.header {height: 147px;}
header.header .linkedin_button img, header.header #search_button img { scale:80%;}
header.header .header_grey_line {margin-top: 0px; grid-template-columns: 25% 1fr 4px;}
header.header .header_grey_line .mod-login input { font-size: 110%; }
.mod-login .form-control::placeholder {  font-weight: 400; }
.header_grey_line_right { background: #FFFFFF; position: relative; z-index: 10; padding: 3px 0;}
.header_white_line {grid-template-columns: 25% 1fr 34px 110px; grid-template-areas: ". . . ."; align-items: center;}
.one-liner { height: 100%; margin: 0; }
.header_white_line #search_button {justify-content: center;}
.search_container_on {top: 5px;}
/*.oneliner_text { position: relative; height: auto; }*/
.oneliner_text { display: none !important; }	
.oneliner_text_off {display: none; height: 0;}
.footer .custom > div:nth-of-type(2) {
grid-template-columns: 1fr 1fr 1fr;
grid-template-areas:". . .";
font-size: 100%;
padding:27px;
}
.footer .custom > div:nth-of-type(2) a { padding-bottom: 2px; }
.header_grey_line .mod-login {padding-left: 0px; }
}
@media (max-width: 675px) {
header.header {height: 140px;}	
.top_menu { min-height: 43px;}
.site .desktop_menu > li { min-height: 40px; }
.site .desktop_menu a { font-size: 105%;}
.one-liner {font-size: 100%;}
.acym_module_form { flex-direction: column;}
.acym_form, .acym_form input, p.acysubbuttons, p.acysubbuttons input { width: 100%; text-align: center;}
}
@media (max-width: 590px) {
a.hp_link { left: 8px; width: 100px;}
.header .header_grey_line {grid-template-columns: 100px 1fr 4px;}
.header_white_line {grid-template-columns: 100px 1fr 34px 110px;}
[data-rlta-element="container"][data-rlta-state="ready"][data-rlta-type="accordions"] > [data-rlta-element="panel"]{padding: 1px;}
[data-rlta-element="container"][data-rlta-state="ready"][data-rlta-theme="accent-lines"][data-rlta-type="accordions"] > [data-rlta-element="panel"] > [data-rlta-element="panel-content"]{padding: 0;}

}
@media (max-width: 500px) {
#top_menu { display: none;}
.header .header_grey_line { height: 93px; background: var(--blue);  grid-template-columns: 25% 1fr 0px;}
.header_grey_line .mod-login__userdata {
  grid-template-columns: 1fr 50px;
  grid-template-rows: 1fr 1fr;
  gap: 0px 15px;
  grid-template-areas:
    "mod-login__username mod-login__username"
    ". .";
}
.header .btn-primary { background-color: transparent; }
.header .mod-login .form-control::placeholder {  color: var(--light-blue);}
.header .mod-login .form-control { color: #FFFFFF;}
.mod-login button, .mod-login .input-group-text, .user_plus {  color: var(--light-blue);}
.mod-login__username { grid-area: mod-login__username; }
.mod-login button, .mod-login .input-group-text, .site .mod-login__password input { height: 42px;}
.mod-login__username { border-bottom: 1px solid var(--light-blue);}
.mod-login button[type="submit"] { background-image: url('../images/login_button_blue.png');}
.mod-login__username .input-group-text {padding: .6rem 3px .6rem 12px;} 
.input-password-toggle { padding: 0 2px 0 0; }
.header .header_grey_line .mod-login input:hover, .header .header_grey_line .mod-login input:focus { background-color: var(--eu-blue);}
.mod-login button[type="submit"]:hover, .mod-login button[type="submit"]:active {  background-color: var(--eu-blue);}
.mod-login__password { padding-left: 12px;}
.mod-login div.form-group { width: 100%;}
.footer .custom > div:nth-of-type(2) {
grid-template-columns: 1fr 1fr;
grid-template-areas:". . ";
}
.footer .custom > div:nth-of-type(2) a {white-space: nowrap;  padding-bottom: 4px; }
.footer .custom > div:nth-of-type(1) { padding:10px;}
.mod-finder { display: none;}
.header_white_line {grid-template-columns: 127px 0 1fr 2fr;}
.header_grey_line_right {justify-content: space-around;}
body.wrapper-fluid .site-grid {  grid-gap:0 1em;}
.header_grey_line_middle { max-height:fit-content; flex-wrap: wrap;}
header.header .header_grey_line .mod-login input[type="password"]{ margin-left: 1px;}
.mod-login button[type="submit"] {background-position: 0% 45%;}
.header_grey_line .logout-button, .header_grey_line .logout-button button { height: 43px; color:var(--body-color); }
}
@media (max-width: 450px) {
.footer .custom > div:nth-of-type(1) img.eu-logo {margin: 0 16px 0 16px; max-width: 86px;}	
.footer .custom > div:nth-of-type(1) > div:nth-of-type(2) { margin-top: 10px;}
.footer .lios-phone {  margin-left: 0;}
.footer .lios-phone:before {    content: '\A';
    white-space: pre;}
.mod-login div.form-group {font-size: 90%;}
  header.header {    height: 145px;  }
}
@media (max-width: 400px) {
.footer .custom > div:nth-of-type(2) {grid-template-columns: 1fr ;grid-template-areas:".";}
.footer .custom > div:nth-of-type(2) a {align-items: center; width: auto; padding-bottom: 6px; }
}
@media (max-width: 305px) {
a.hp_link {left: -1px;}
.header_grey_line .mod-login, .one-liner {padding:0px; }
.header .header_grey_line { grid-template-columns: 100px 1fr 0px;}
.header_grey_line .mod-login__userdata { grid-template-columns: 1fr 45px; gap: 0px; }
.header_white_line { grid-template-columns: 96px 0 1fr 2fr; }
#mobile_menu_button { margin: auto 5px; }
.mod-login__username .input-group-text, .header .input-password-toggle {display: none;}
.mod-login__password { padding-left: 0;}
.site .desktop_menu { height: auto; flex-wrap: wrap; padding: 1vw; font-size: 95%; }
.site .desktop_menu > li {width: 50%; min-height: 28px; font-size: 90%;}
.header .header_grey_line .mod-login input { font-size: 102%;}
.footer .custom > div:nth-of-type(2) a {width: 50%;  }
.footer .eu-text {  font-size: 100%;  font-weight: 500;}
.footer .custom > div:nth-of-type(1) img.eu-logo {    margin:0 5px; max-width: 60px;  }
.footer .custom > div:nth-of-type(1) .footer-mrlatvia-logo {  max-width: 110px; }
.footer .custom > div:nth-of-type(1) > div:nth-of-type(2) { flex-direction: column; }
.footer .custom > div:nth-of-type(1) .footer-mrlatvia-logo { max-width: 100%;    text-align: center;    width: 100%; }
.footer .custom > div:nth-of-type(1) .footer-mrlatvia-logo img { max-width: 110px; }
body.wrapper-fluid .site-grid {  grid-gap:0 0.5em;}
h2 { margin-top: 1.5vh; margin-bottom: 0.1vh;}
}
