/* Era 1 Redux — Neveprise Inc. (1999–2001) */
/* Modern CSS rebuild of the original frameset layout */

/* === Reset === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; overflow: hidden; }
body { display: flex; flex-direction: column; }
body { font-family: serif; font-size: 16px; color: #000; background: #fff; }
img { border: 0; vertical-align: middle; }
a { text-decoration: none; }
a:hover { text-decoration: underline; }

/* === Site Shell === */
.site {
  display: grid;
  grid-template-columns: 195px 1fr;
  grid-template-rows: 1fr;
  flex: 1;
  width: 100%;
  overflow: hidden;
}

/* === Sidebar === */
.sidebar {
  grid-column: 1;
  display: flex;
  flex-direction: column;
  background: #fff;
  overflow: hidden;
}
.sidebar-nav {
  flex: 1;
  padding: 0;
}
.sidebar-logo {
  display: block;
}
.sidebar-logo img {
  display: block;
  width: 198px;
  height: 153px;
  transition: filter 0.3s ease;
}
.sidebar-logo:hover img {
  filter: brightness(1.15);
}
.sidebar-buttons {
  padding: 0 0 0 10px;
}
.nav-item {
  display: flex;
  align-items: center;
}
.nav-item a {
  display: flex;
  align-items: center;
  color: #808080;
}
.nav-item a:visited { color: #808080; }
.nav-item .nav-icon {
  flex-shrink: 0;
}
.nav-item .nav-label-hover { display: none; }
.nav-item a:hover .nav-label-default { display: none; }
.nav-item a:hover .nav-label-hover { display: inline; }

.sidebar-version {
  height: 55px;
  flex-shrink: 0;
  padding: 4px 6px;
  font-size: 11px;
  color: #808080;
}
.sidebar-version a { color: #c0c0c0; }
.sidebar-version a:visited { color: #c0c0c0; }

/* === Right Area === */
.right-area {
  grid-column: 2;
  display: grid;
  grid-template-rows: 50px 1fr 36px;
  overflow: hidden;
}

/* === Header === */
.header {
  display: flex;
  align-items: center;
  background: #fff;
  overflow: hidden;
}
.header-logo {
  width: 320px;
  flex-shrink: 0;
  padding: 0;
  display: flex;
  align-items: center;
}
.header-logo img {
  display: block;
}
.header-caption {
  flex: 1;
  text-align: right;
  padding: 6px 8px 0 0;
  font-size: 16px;
  color: #000;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
}
.header-caption a { color: #000; }
.header-caption a:visited { color: #000; }
.header-caption .updir-hover { display: none; }
.header-caption a.updir:hover .updir-default { display: none; }
.header-caption a.updir:hover .updir-hover { display: inline; }

/* === Content Frame (border + main) === */
.content-frame {
  display: grid;
  grid-template-columns: 64px 1fr;
  overflow: hidden;
}

/* Left border column */
.border-left {
  display: flex;
  flex-direction: column;
  width: 64px;
  overflow: hidden;
}
.corner-top {
  width: 64px;
  height: 61px;
  flex-shrink: 0;
  background: url(images/cornert.gif) no-repeat top left;
  background-size: 64px 61px;
}
.edge-left {
  flex: 1;
  width: 64px;
  background: url(images/edgel.gif) repeat-y top left;
  background-size: 64px 2px;
}
.corner-bottom {
  width: 64px;
  height: 61px;
  flex-shrink: 0;
  background: url(images/cornerb.gif) no-repeat top left;
  background-size: 64px 61px;
}

/* Content column */
.content-inner {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.edge-top {
  height: 11px;
  flex-shrink: 0;
  background: url(images/edget.gif) repeat-x top left;
  background-size: 2px 11px;
}
.main-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  background-color: #fff;
  background-image: url(images/largelogo.jpg);
  background-position: bottom right;
  background-repeat: no-repeat;
  background-attachment: local;
  padding: 12px 16px;
}
.edge-bottom {
  height: 11px;
  flex-shrink: 0;
  background: url(images/edgeb.gif) repeat-x top left;
  background-size: 2px 11px;
}

/* === Bottom Bar === */
.bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 36px;
  padding: 0 8px;
  background: #fff;
  font-size: 13px;
}
.bottom-bar a { color: #808080; }
.bottom-bar a:visited { color: #808080; }
.qbar {
  display: flex;
  align-items: center;
  gap: 4px;
}
.qbar-right {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

/* === Content Typography === */
.main-content a:link { color: blue; }
.main-content a:visited { color: gray; }
.main-content a:hover { text-decoration: underline; color: gray; }

.text-shadow { text-shadow: 1px 1px 1px #d0d0d0; }

.main-content table { border-collapse: collapse; }
.main-content td { vertical-align: top; }

.section-header {
  background-color: #c0c0c0;
  color: #fff;
  padding: 4px 8px;
  font-family: Tahoma, sans-serif;
}
.section-header strong { font-size: 18px; }
.section-header em { font-size: 11px; }

/* === Splash Page === */
.splash {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  background: #fff;
  text-align: center;
  padding: 20px;
}
.splash a:link { color: #808080; }
.splash a:visited { color: #808080; }
.splash a:active { color: #c0c0c0; }

/* === Article Prev/Next Navigation === */
.article-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #d0d0d0;
  padding: 10px 16px;
  margin: 24px 0;
  border-radius: 2px;
}
.article-nav a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #333;
}
.article-nav a:visited { color: #333; }
.article-nav a:hover { color: #000; text-decoration: underline; }
.article-nav .nav-prev,
.article-nav .nav-next {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* === Museum Banner === */
.museum-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #cc2222;
  color: #fff;
  font-family: Tahoma, Arial, sans-serif;
  font-size: 13px;
  padding: 6px 12px;
  position: relative;
  z-index: 100;
}
.museum-banner a { color: #fff; text-decoration: underline; }
.museum-banner a:visited { color: #fff; }
.museum-banner svg { flex-shrink: 0; }
.museum-banner-text { flex: 1; text-align: center; }
.museum-banner-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  opacity: 0.8;
}
.museum-banner-close:hover { opacity: 1; }

/* === Depth-relative image paths === */
/* Pages at depth 1 (e.g., products/index.html) use ../images/ */
/* Pages at depth 2 (e.g., products/cacocd/index.html) use ../../images/ */
/* Border images are set via inline style overrides per depth */
