body {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 11px;
	color: #ffffff;
	text-decoration: none;
	background-color: #bcbcbc;
	margin:0;
	padding:30px 0 0 0;
}
#frame {
	width:913px;
	margin:auto;
	background-image: url(../img/back-frame.gif);
	background-repeat: no-repeat;
	background-position: center bottom;
	border:0;
	padding:0 0 6px 0;
}
#page {
	background-image: url(../img/back-page.gif);
	background-repeat: repeat-y;
	background-position: center center;
	width:913px;
}
#top {
	background-image: url(../img/back-frame.gif);
	background-repeat: no-repeat;
	background-position: center top;
	padding:6px 15px 0 14px
}
.left-header {
    display:block;
	float:left;
	width:188px;
	border-bottom:1px solid #FFFFFF;
}
.mid-header {
	display:block;
	float:left;
	width:466px;
	border-bottom:1px solid #FFFFFF;
	margin-left:21px;
}
.right-header {
	display:block;
	float:left;
	width: 188px;
	border-bottom:1px solid #FFFFFF;
	margin-left:21px;
}
#mid {
	padding:0px 15px 0 14px
}
.left-mid {
	display:block;
	float:left;
	width:188px;
}
.mid-mid {
	display:block;
	float:left;
	width:466px;
	margin-left:21px;
}
.right-mid {
	display:block;
	float:left;
	width:188px;
	margin-left: 21px;
}
#maintext {
	display:block;
	float:left;
	width:430px;
	padding:15px 20px 10px 20px;
	line-height:18px;
}
div#navbar {
	width: 188px;
	display:block;
	float:left;
}
div#navbar ul {
	margin:0;
	padding:0;
}
div#navbar li {
	list-style-type:none;
	display:block;
	float:right;
	width:188px;
	height:35px;
	text-align:right;
	border-bottom:1px solid #FFFFFF;
}
div#navbar li.button1 {
	background-image: url(../img/button-1.gif);
	background-repeat: no-repeat;
}
div#navbar li.button2 {
	background-image: url(../img/button-2.gif);
	background-repeat: no-repeat;
}
div#navbar li.button3 {
	background-image: url(../img/button-3.gif);
	background-repeat: no-repeat;
}
div#navbar li.button4 {
	background-image: url(../img/button-4.gif);
	background-repeat: no-repeat;
}
div#navbar li.button5 {
	background-image: url(../img/button-5.gif);
	background-repeat: no-repeat;
}
div#navbar li a {
	display:block;
	float:left;
	width:140px;
	height:35px;
	text-decoration: none;
	margin:0;
	padding:0;
	color: #FFFFFF;	
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-weight:bold;
	line-height:35px;
	padding-right:45px;
	background-image: url(../img/arrow-button.gif);
	background-repeat: no-repeat;
}
div#navbar li a:link {
	color: #FFFFFF;
}
div#navbar li a:visited {
	color: #FFFFFF;
}
div#navbar li a:hover {
	color: #FFFFFF;
	text-decoration:underline;
	background-image: url(../img/arrow-button-over.gif);
	background-repeat: no-repeat;
}
h1, h2, h3 {
	margin: 10px 0;
}
h1 {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 14px;
	color: #FFFFFF;
	font-weight:bold;
}

h4 {
	font-family:  Tahoma, Geneva, sans-serif;
	color:#A0A0A4;
	margin:4px 0px 0px 0px;
	font-weight:lighter;
}

h5 {
	font-family:  Tahoma, Geneva, sans-serif;
	margin: 4px 0px 0px 0px;
	font-size: 12px;
	font-weight:lighter;
}
h6 {
	font-family:  Tahoma, Geneva, sans-serif;
	margin: 4px 0px 0px 0px;
	font-style: italic;
	font-size: 10px;
	font-weight:lighter;
}


#box1 {
	font-family: Tahoma, Geneva, sans-serif;
	font-size: 16px;
	color: #FFF;
	font-weight:bold;
	padding:7px;
	margin: 0px;
	width: 174px;
	display: block;
	background-image: url(../img/button-1.gif);
}
#box2 {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
	color: #FFF;
	padding:5px;
	width: 168px;
	display: block;
	margin-left: 5px;
	text-decoration: none;
	text-align: center;
}
#box3 {
	background-color: #CCC;
	display:block;
	float:left;
	width:418px;
	padding:10px;
	line-height:18px;
	margin-left:15px;
	height: 220px;
	margin-bottom: 10px;
	margin-top: 15px;
}
#box4 {
	background-color: #CCC;
	display:block;
	float:middle;
	width:155px;
	padding:5px 5px 5px 5px;
	line-height:5px;
	margin-left:2px;
	height: 100px;
	margin-bottom: 5px;
	margin-top: 5px;
	margin-right: 5px;
}

#box5 {
	background-color: #CCC;
	display:block;
	float:left;
	width:418px;
	padding:10px;
	line-height:18px;
	margin-left:15px;
	height: auto;
	margin-bottom: 10px;
	margin-top: 15px;
}

#box6 {
	display:block;
	float:left;
	width:400px;
	padding:0px 5px 5px 5px;
	line-height:18px;
	margin-left:30px;
	height: 80px;
	margin-bottom: 10px;
	margin-top: 30px;
}


#box7 {
	display:block;
	float:left;
	width:80px;
	padding:5px 5px 5px 5px;
	margin-left:5px;
	margin-top: 20px;
	height: 100px;
}
ul, ol { 
	margin: 15px 0 0 15px;
}
.clear {
	clear:both;
}
a, a:visited {
	text-decoration:underline;
	font-weight:bold;
	color: #FFF;
}
a:hover {
	color:#8ac1fa;
	text-decoration:none;
}
#footer {
	font-size: 11px;
	color:#747474;
	text-align:center;
	padding:20px;
	line-height:18px;
}
#footer a:link, #footer a:visited {
	color:#747474;
	text-decoration:none;
	font-weight:normal;
}
#footer a:hover {
	color:#747474;
	text-decoration:underline;
}




div#navbar2 {
	width: 180px;
	display:block;
	float:left;
	margin-left: 7px;
}
div#navbar2 ul {
	float: right;
	padding: 0;
}
div#navbar2 li {
	list-style-type:none;
	display:block;
	float:left;
	width:180px;
	height:35px;
	text-align:center;
}
div#navbar2 li.button {
	background-image: none;
	background-repeat: no-repeat;
}
div#navbar2 li a {
	display:block;
	float:left;
	width:140px;
	height:35px;
	text-decoration: none;
	margin:0;
	padding:0;
	color: #FFFFFF;	
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-weight:bold;
	line-height:35px;
	padding-right:45px;
	background-image: url(../img/xlink1.gif);
	background-repeat: no-repeat;

}
div#navbar2 li a:link {
	color:#FFFFFF;
}
div#navbar2 li a:visited {
	color:#FFFFFF;
}
div#navbar2 li a:hover {
	color:#FFFFFF;
	background-image: url(../img/xlink2.gif);
	background-repeat: no-repeat;
}


/* =====================================================================
   2026 design refresh (preview). Same colours, logos and layout.
   Everything below overrides the original rules above.
   ===================================================================== */

/* 5 - easier to read text */
body { font-size: 13px; line-height: 1.5; }
#maintext { line-height: 20px; }
h4 { font-size: 13px; }
h5 { font-size: 13px; }
h6 { font-size: 11.5px; }

/* 1 - boxes grow with their content (no more text outside the frame) */
#box3, #box5 { height: auto !important; float: none; width: auto; margin: 15px; padding: 14px 18px; }

/* 6 - news list */
#box3 ul.news { list-style: none; margin: 0; padding: 0; }
.news-item { padding: 12px 0; border-bottom: 1px solid #b0b0b0; }
.news-item:last-child { border-bottom: 0; }
.news-meta { color: #007499; font-weight: bold; font-size: 12px; }
.news-title { color: #4A1440; font-weight: bold; font-style: italic; margin: 3px 0 2px; }
.news-authors { color: #039; font-weight: bold; }
.news-links { margin-top: 5px; color: #039; }
.news-links a, .news-links a:visited { color: #039; }
.news-links a:hover { color: #007499; }
.news-sep { color: #888; padding: 0 5px; }

/* 7 - menu: show the open page, and react to the mouse */
div#navbar li:hover, div#navbar2 li:hover { filter: brightness(1.12); }
div#navbar li a:hover { text-decoration: none; }
div#navbar li.current { filter: brightness(1.18); }
div#navbar li.current a { background-image: url(../img/arrow-button-over.gif); text-decoration: none; }
/* Weblog as a normal menu button */
div#navbar2 { width: 188px; margin: 0; float: left; }
div#navbar2 ul { float: none; margin: 0; padding: 0; }
div#navbar2 li { width: 188px; text-align: right; border-bottom: 1px solid #fff; background: url(../img/button-1.gif) no-repeat; }
div#navbar2 li a { text-align: right; background-image: url(../img/arrow-button.gif); }
div#navbar2 li a:hover { background-image: url(../img/arrow-button-over.gif); }

/* 8 + 2 - links column: one style for all buttons, logos keep their shape */
#box2 p { margin: 0 0 10px; }
#box2 a img { display: block; width: 140px; height: auto; margin: 0 auto; background: #fff; padding: 4px;
              border-radius: 3px; box-shadow: 0 1px 2px rgba(0,0,0,.45); transition: transform .15s, box-shadow .15s; }
#box2 a:hover img { transform: translateY(-2px); box-shadow: 0 3px 8px rgba(0,0,0,.55); }

/* 9 - papers and theses pages */
.jump-nav { margin: 6px 5px; padding: 8px 6px; border: 2px solid #fff; text-align: center; line-height: 1; }
.jump-nav a, .jump-nav a:visited { display: inline-block; min-width: 34px; margin: 2px 1px; padding: 4px 3px; background: #2f5d8a;
              color: #fff; text-decoration: none; border-radius: 3px; font-size: 12px; font-weight: bold; }
.jump-nav a:hover { background: #8ac1fa; color: #123; }
a.tag, a.tag:visited { display: inline-block; padding: 0 6px; margin-left: 3px; font-size: 11px; line-height: 16px; font-weight: bold;
              border: 1px solid #8ac1fa; border-radius: 3px; text-decoration: none; color: #cfe6ff; }
a.tag:hover { background: #8ac1fa; color: #123; }
a.to-top, a.to-top:visited { display: block; text-align: right; font-size: 11px; font-weight: normal; color: #8ac1fa; text-decoration: none; margin: 2px 12px 8px 0; }
a.to-top:hover { text-decoration: underline; }

/* Wider middle column: 466 px -> 514 px (about +10%). Desktop only. */
@media (min-width: 991px) {
  #frame { width: 961px; background-image: url(../img/back-frame-wide.gif); }
  #page  { width: 961px; background-image: url(../img/back-page-wide.gif); }
  #top   { background-image: url(../img/back-frame-wide.gif); }
  .mid-header, .mid-mid { width: 514px; }
  .mid-header { text-align: right; }
  .mid-header img { max-width: 100%; }
  .mid-header img { display: inline-block; vertical-align: top; }
  .mid-mid > img { width: 100%; height: auto; display: block; }
  #maintext { width: 478px; }
}

/* Older news, folded */
details.older-news { margin-top: 4px; }
details.older-news > summary { cursor: pointer; list-style: none; display: inline-block; margin: 10px 0 4px;
    padding: 5px 12px; background: #2f5d8a; color: #fff; font-weight: bold; font-size: 12px; border-radius: 3px; }
details.older-news > summary::-webkit-details-marker { display: none; }
details.older-news > summary:hover { background: #007499; }
details.older-news > summary .when-open { display: none; }
details.older-news[open] > summary .when-open { display: inline; }
details.older-news[open] > summary .when-closed { display: none; }
details.older-news > ul.news { border-top: 1px solid #b0b0b0; margin-top: 8px; }

/* 10 - phones and small windows: columns stack */
@media (max-width: 990px) {
  body { padding: 8px 0 0; }
  #frame, #page { width: auto; margin: 0 6px; padding: 0; background: none; }
  #top, #mid { padding: 0; }
  .left-header, .mid-header, .right-header, .left-mid, .mid-mid, .right-mid {
      float: none; width: auto; margin: 0 0 6px 0; background: #244a6f; border: 3px solid #fff; }
  .left-header, .mid-header { text-align: center; }
  img { max-width: 100%; height: auto; }
  div#navbar, div#navbar2 { float: none; width: auto; }
  div#navbar li, div#navbar2 li { float: none; width: auto; background-size: 100% 100%; }
  div#navbar li a, div#navbar2 li a { float: none; width: auto; background-position: right center; }
  #box3, #box5, #maintext { float: none; width: auto; margin: 10px; }
  #box1 { width: auto; }
  #box2 { width: auto; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 10px; }
  #box2 p { margin: 0; }
  .mid-mid table, .mid-mid td { width: 100% !important; }
  ul, ol { margin-left: 8px; padding-left: 18px; }
}
