/* Restored cotas.dk. Colours and type come from the original style/global.css (2002). */
:root {
  --navy: #003366;
  --link: #990000;
  --hover: #666666;
  --side: 120px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #ffffff;
  color: #000000;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10pt;
  line-height: 1.35;
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--side) minmax(0, 1fr) var(--side);
  grid-template-rows: 1fr auto;
  grid-template-areas: "menu page margin" "menu note margin";
}
p, table, tr, td, th, ul, li, form { font-family: Arial, Helvetica, sans-serif; font-size: 10pt; }
.txtheading { font-size: 14pt; font-weight: bold; color: var(--navy); }
a:link, a:visited { color: var(--link); text-decoration: none; }
a:active, a:hover { color: var(--hover); text-decoration: none; }
img { max-width: 100%; height: auto; }

/* Header is only used on small screens. */
.top { display: none; }

/* Left menu: the round "C" buttons with the small label GIFs. */
.menu {
  grid-area: menu;
  background: var(--navy);
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.menu .item { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.menu .orb { width: 23px; height: 23px; filter: grayscale(1) brightness(0.75); transition: filter .1s; }
.menu .item:hover .orb, .menu .item:focus-visible .orb, .menu .item[aria-current] .orb { filter: none; }
.menu .label { image-rendering: pixelated; }

/* Content column, as wide as the original 410 px tables. */
.page { grid-area: page; padding: 0 16px 24px; }
.original { max-width: 440px; margin: 0 auto; }
.original table[width] { width: 100% !important; max-width: 100%; }
.original td[width] { width: auto; }
.original img[align="left"] { float: left; margin: 0 10px 6px 0; }
.original img[align="right"] { float: right; margin: 0 0 6px 10px; }
.original hr { border: 0; border-top: 1px solid #999999; }
.old-mail { color: #333333; }

/* Right margin with the logo. */
.margin {
  grid-area: margin;
  background: var(--navy);
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 24px;
}
.margin .margin-text { margin-right: 6px; }

.note {
  grid-area: note;
  padding: 10px 16px 14px;
  font-size: 8pt;
  color: #666666;
  text-align: center;
  border-top: 1px solid #dddddd;
}

/* Splash pages from 2000-2002. */
body.splash {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--navy);
  color: #ffffff;
}
body.splash > table { width: 100%; max-width: 760px; }
body.splash td[width] { width: auto; }
body.splash .note { border: 0; color: #b9c6d3; margin-top: auto; }
body.splash .note a { color: #ffffff; }

/* Phones and narrow windows: logo bar and the menu as a row on top. */
@media (max-width: 720px) {
  body {
    font-size: 11pt;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto 1fr auto;
    grid-template-areas: "top" "menu" "page" "note";
  }
  p, table, tr, td, th, ul, li, form { font-size: 11pt; }
  .top { display: flex; grid-area: top; background: var(--navy); padding: 12px 16px 6px; justify-content: flex-end; }
  .margin { display: none; }
  .menu {
    flex-direction: row;
    justify-content: space-around;
    align-items: flex-end;
    padding: 6px 8px 10px;
    gap: 4px;
    position: sticky;
    top: 0;
    z-index: 1;
  }
  .menu .item { min-width: 48px; min-height: 44px; justify-content: flex-end; }
  .original { max-width: none; }
}
