/* Fælles layout og farver for alle sider. Ingen JavaScript eller eksterne biblioteker. */
:root {
  --red: #cd3333;
  --gray: #666;
  --light-gray: #ddd;
}
* { box-sizing: border-box; }
body { margin: 0; color: #000; background: #fff; font: 16px/1.3 Arial, Helvetica, sans-serif; }
a { color: #993030; }
a:hover { text-decoration: none; }
a:focus-visible { outline: 3px solid #276aaf; outline-offset: 3px; }
.site { width: min(843px, calc(100% - 32px)); margin: 20px auto 40px; }
/* Den oprindelige top bygges af de originale GIF-dele uden layouttabeller.
   Baggrundene ligger forrest øverst i listen. Bjælken er 843 × 60 px. */
.header {
  position: relative;
  min-height: 60px;
  background:
    url("images/corner_logo_bl.gif") left bottom / 30px 36px no-repeat,
    url("images/corner_logo_br.gif") 194px bottom / 20px 36px no-repeat,
    url("images/bridge.gif") 214px bottom / 42px 36px no-repeat,
    url("images/header_l.gif") 416px top / 53px 60px no-repeat,
    url("images/header_r.gif") right top / 33px 60px no-repeat,
    url("images/logo_bak.gif") left bottom / 194px 36px no-repeat,
    url("images/bridge_bak.gif") 256px top / 160px 60px no-repeat,
    url("images/header_bak.gif") right top / 427px 60px no-repeat;
}
.header-decoration { display: none; }
.header h1 {
  position: absolute;
  top: 0;
  left: 490px;
  right: 33px;
  margin: 0;
  color: var(--red);
  text-align: center;
  font: bold 28px/36px Arial, Helvetica, sans-serif;
}
.layout { display: grid; grid-template-columns: 209px minmax(0, 1fr); gap: 17px; padding-left: 6px; }
.sidebar { align-self: start; background: var(--gray); border-top: 9px solid var(--light-gray); border-radius: 12px 0 0 0; }
nav { min-height: 150px; }
nav a { display: block; width: 100%; padding: 8px 14px; color: white; font: bold 11px/13px Verdana, sans-serif; text-decoration: none; border-bottom: 1px solid #777; }
nav a:hover, nav a[aria-current="page"] { background: #ccc; color: #000; }
.decoration { display: block; max-width: 100%; height: auto; }
main { min-width: 0; padding: 3px 0 0; }
h2 { margin: 0 0 19px; font-size: 18px; line-height: 1.2; }
p { margin: 0 0 19px; }
.portraits { display: flex; align-items: start; gap: 8px; max-width: 558px; }
.portraits img { display: block; width: calc((100% - 8px) / 2); height: auto; }
hr { margin: 5px 0; border: 0; border-top: 2px solid #999; }
/* Originale dokumentminiaturer med indbygget skygge og klikbar billedtekst. */
.downloads {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 180px));
  gap: 28px;
  width: 100%;
  max-width: 388px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}
.downloads li { min-width: 0; }
.downloads a { display: block; color: #000; text-align: center; text-decoration: none; font-weight: bold; }
.downloads a:hover span { text-decoration: underline; }
.downloads img { display: block; width: 142px; max-width: 100%; height: auto; margin: 0 auto 4px; }
.downloads span { display: block; font-size: 16px; }
.skip-link { position: absolute; left: 8px; top: -100px; padding: 8px; background: #fff; z-index: 1; }
.skip-link:focus { top: 8px; }
.error-page { max-width: 800px; margin: 40px auto; padding: 16px; }
@media (min-width: 641px) and (max-width: 874px) {
  .header h1 { left: 56%; right: 33px; font-size: 24px; }
}
/* På små skærme ligger menuen over indholdet. */
@media (max-width: 640px) {
  .site { margin-top: 12px; }
  .header {
    background:
      url("images/header_l.gif") left top / 53px 60px no-repeat,
      url("images/header_r.gif") right top / 33px 60px no-repeat,
      url("images/header_bak.gif") center top / 100% 60px no-repeat;
  }
  .header h1 { left: 40px; right: 28px; font-size: 22px; }
  .layout { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-left: 0; }
  nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 0; }
  nav a { padding: 12px; }
  .decoration { display: none; }
}
@media print {
  .sidebar, .skip-link, .header-decoration { display: none; }
  .site { width: 100%; margin: 0; }
  .header, .layout { display: block; padding: 0; background: none; }
  .header h1 { position: static; background: none; color: black; padding: 0 0 20px; text-align: left; }
}
