/* Vektra Institute of Applied Cosmology
   Preservation Society Archive Site
   Style last updated: 22.11.2023 */

body {
  background-color: #c8c0b0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Crect width='4' height='4' fill='%23c8c0b0'/%3E%3Crect width='1' height='1' fill='%23bdb5a5' opacity='0.4'/%3E%3C/svg%3E");
  margin: 0;
  padding: 8px;
  font-family: "Times New Roman", Times, serif;
  font-size: 13px;
  color: #111;
}

a {
  color: #7a1a1a;
  text-decoration: underline;
}

a:hover {
  color: #cc0000;
  text-decoration: underline;
}

a:visited {
  color: #551111;
}

#top-banner {
  background-color: #1a2a4a;
  color: #d4c89a;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  padding: 4px 8px;
  display: flex;
  justify-content: space-between;
  border-bottom: 2px solid #8a9ab0;
  letter-spacing: 1px;
}

.banner-right {
  opacity: 0.8;
}

#wrapper {
  background-color: #f0ebe0;
  border: 1px solid #888;
  max-width: 820px;
  margin: 6px auto 0;
  box-shadow: 3px 3px 0 #999;
}

#layout-table {
  width: 100%;
}

/* ---- Sidebar ---- */

#sidebar {
  background-color: #ddd6c8;
  border-right: 1px solid #aaa;
  padding: 10px;
  width: 170px;
}

.side-logo {
  text-align: center;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #bbb;
}

.logo-circle {
  display: inline-block;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: #1a2a4a;
  border: 3px solid #8a9ab0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.logo-text {
  color: #d4c89a;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 2px;
}

.logo-sub {
  color: #8a9ab0;
  font-family: "Courier New", Courier, monospace;
  font-size: 8px;
  letter-spacing: 3px;
  margin-top: 2px;
}

.side-nav {
  margin-bottom: 12px;
}

.nav-heading {
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  letter-spacing: 1px;
  color: #555;
  text-transform: uppercase;
  margin: 0 0 4px;
  border-bottom: 1px solid #bbb;
  padding-bottom: 2px;
}

.side-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.side-nav ul li {
  margin-bottom: 1px;
}

.side-nav ul li a {
  display: block;
  padding: 3px 5px;
  font-size: 12px;
  font-family: Arial, Helvetica, sans-serif;
  color: #1a2a4a;
  text-decoration: none;
  border: 1px solid transparent;
}

.side-nav ul li a:hover,
.side-nav ul li a.active {
  background-color: #1a2a4a;
  color: #d4c89a;
  border-color: #8a9ab0;
  text-decoration: none;
}

.side-notice {
  background-color: #f5f0e0;
  border: 1px solid #aaa;
  padding: 6px 8px;
  margin-bottom: 10px;
  font-size: 10px;
  line-height: 1.5;
}

.notice-head {
  font-family: "Courier New", Courier, monospace;
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 1px;
  color: #7a1a1a;
  margin: 0 0 4px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 2px;
  text-transform: uppercase;
}

.side-counter {
  text-align: center;
  font-size: 9px;
  color: #666;
}

/* ---- Main content ---- */

#main-content {
  padding: 14px 18px;
  background-color: #f5f0e2;
}

#page-header {
  border-bottom: 3px double #1a2a4a;
  padding-bottom: 10px;
  margin-bottom: 10px;
}

#page-header h1 {
  font-family: "Times New Roman", Times, serif;
  font-size: 20px;
  color: #1a2a4a;
  margin: 0 0 2px;
  font-weight: bold;
}

#page-header h2 {
  font-family: "Times New Roman", Times, serif;
  font-size: 14px;
  color: #555;
  font-weight: normal;
  font-style: italic;
  margin: 0 0 4px;
}

.header-sub {
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  color: #666;
  margin: 0;
  letter-spacing: 1px;
}

.section-rule {
  border: none;
  border-top: 1px solid #bbb;
  margin: 12px 0;
}

.content-block {
  margin-bottom: 14px;
}

.content-block h3 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: bold;
  color: #1a2a4a;
  background-color: #ddd6c8;
  border-left: 4px solid #1a2a4a;
  padding: 4px 8px;
  margin: 0 0 8px;
}

.content-block p {
  margin: 0 0 7px;
  line-height: 1.6;
}

/* ---- Publication card ---- */

.pub-card {
  background-color: #fff;
  border: 1px solid #aaa;
  border-left: 4px solid #7a1a1a;
}

.pub-card td {
  padding: 8px 10px;
  vertical-align: top;
}

.pub-icon {
  width: 20px;
  color: #7a1a1a;
  font-size: 18px;
  vertical-align: top;
  padding-top: 10px;
}

.pub-title {
  font-family: "Times New Roman", Times, serif;
  font-size: 14px;
  font-weight: bold;
  margin: 0 0 3px;
}

.pub-title a {
  color: #7a1a1a;
}

.pub-meta {
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  color: #666;
  margin: 0 0 5px;
}

.pub-desc {
  font-size: 12px;
  margin: 0 0 5px;
  line-height: 1.5;
}

.pub-note {
  font-size: 11px;
  color: #7a1a1a;
  font-style: italic;
  margin: 0;
  padding: 4px 6px;
  background-color: #fff8f0;
  border: 1px solid #e8d0b0;
}

/* ---- Updates table ---- */

.updates-table {
  border-collapse: collapse;
  font-size: 12px;
}

.update-row td {
  padding: 4px 6px;
  border-bottom: 1px solid #ddd;
  vertical-align: top;
}

.update-date {
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  color: #555;
  white-space: nowrap;
  width: 90px;
}

/* ---- Department table ---- */

.dept-table {
  border-collapse: collapse;
  font-size: 12px;
}

.dept-head-row th {
  background-color: #1a2a4a;
  color: #d4c89a;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  padding: 5px 8px;
  text-align: left;
  font-weight: bold;
}

.dept-table td {
  padding: 4px 8px;
  border-bottom: 1px solid #ccc;
}

.alt-row td {
  background-color: #ece7dc;
}

.status-ok {
  color: #1a5a1a;
  font-weight: bold;
  font-size: 11px;
}

.status-partial {
  color: #7a5a00;
  font-weight: bold;
  font-size: 11px;
}

.status-missing {
  color: #7a1a1a;
  font-weight: bold;
  font-size: 11px;
}

/* ---- Footer ---- */

#footer {
  background-color: #1a2a4a;
  color: #8a9ab0;
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  text-align: center;
  padding: 8px;
  border-top: 2px solid #8a9ab0;
}

#footer a {
  color: #d4c89a;
  text-decoration: none;
}

#footer a:hover {
  text-decoration: underline;
}

/* ---- Paper pages ---- */

.paper-wrapper {
  max-width: 680px;
  margin: 0 auto;
}

.paper-masthead {
  text-align: center;
  border-bottom: 2px solid #1a2a4a;
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.paper-masthead h1 {
  font-family: "Times New Roman", Times, serif;
  font-size: 17px;
  margin: 0 0 4px;
  color: #1a2a4a;
}

.paper-meta-block {
  background-color: #f0ebe0;
  border: 1px solid #bbb;
  padding: 8px 12px;
  font-size: 11px;
  font-family: "Courier New", Courier, monospace;
  margin-bottom: 14px;
}

.paper-meta-block table {
  width: 100%;
}

.paper-meta-block td {
  padding: 2px 0;
  vertical-align: top;
}

.paper-meta-key {
  color: #555;
  width: 120px;
  font-weight: bold;
}

.paper-body {
  font-family: "Times New Roman", Times, serif;
  font-size: 13px;
  line-height: 1.7;
}

.paper-body h2 {
  font-size: 14px;
  font-weight: bold;
  margin: 16px 0 6px;
  color: #1a2a4a;
}

.paper-body p {
  margin: 0 0 10px;
  text-align: justify;
}

.redacted {
  background-color: #111;
  color: #111;
  padding: 0 2px;
  user-select: none;
  cursor: default;
}

.redacted-block {
  background-color: #111;
  height: 14px;
  display: inline-block;
  vertical-align: middle;
  margin: 0 2px;
}

.paper-footnotes {
  border-top: 1px solid #aaa;
  margin-top: 20px;
  padding-top: 10px;
  font-size: 11px;
  font-family: "Courier New", Courier, monospace;
  line-height: 1.6;
  color: #444;
}

.paper-footnotes p {
  margin: 0 0 5px;
}

.fn-anomaly {
  color: #1a2a4a;
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  letter-spacing: 0.5px;
  word-break: break-all;
}

.paper-damaged {
  background-color: #e8e0d0;
  border: 1px dashed #aaa;
  padding: 8px 10px;
  font-size: 11px;
  font-style: italic;
  color: #666;
  margin: 10px 0;
  font-family: "Courier New", Courier, monospace;
}

.decode-hint {
  display: none;
}

.paper-stamp {
  float: right;
  border: 2px solid #7a1a1a;
  padding: 6px 10px;
  font-family: "Courier New", Courier, monospace;
  font-size: 9px;
  color: #7a1a1a;
  text-align: center;
  margin: 0 0 10px 14px;
  opacity: 0.8;
  transform: rotate(3deg);
}

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}
