/* Era 2 Redux — neveprise.net (2002–2003) */
/* Modern semantic HTML5 + CSS rebuild */

/* === Reset === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { height: 100%; }
body {
  font-family: sans-serif;
  font-size: 12px;
  color: #FFFFFF;
  line-height: 1.8;
  background-color: #000066;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
img { border: 0; vertical-align: middle; }

/* === 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;
  width: 100%;
  z-index: 100;
}
.museum-banner a { color: #fff !important; text-decoration: underline; font-weight: normal; }
.museum-banner a:hover { background: none !important; color: #fff !important; }
.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; }

/* === Links === */
a:link { font-weight: bold; color: #00BBFF; text-decoration: none; }
a:hover { font-weight: bold; color: #000066; background-color: #00BBFF; text-decoration: none; }
a:visited { font-weight: bold; color: #0099DD; text-decoration: none; }

/* === Site Container === */
.site { width: 800px; max-width: 100%; }

/* === Header === */
.site-header {
  display: grid;
  grid-template-columns: 1fr 213px;
  height: 60px;
  overflow: hidden;
}
.header-topleft { overflow: hidden; }
.header-topleft img { display: block; width: 100%; height: 60px; }
.header-topright {
  background-image: url(../../img/site/header_topright.png);
  background-size: 213px 60px;
  background-repeat: no-repeat;
  padding: 4px 8px;
}
.header-topright ul {
  color: #FFFFFF; font-weight: bold; font-size: 11px;
  list-style-type: circle; padding-left: 16px;
}
.header-topright a, .header-topright a:link, .header-topright a:visited {
  color: #FFFFFF; font-weight: bold; text-decoration: none;
}
.header-topright a:hover { text-decoration: underline; background: none; }

/* === Top Navigation === */
.topnav {
  background-image: url(../../img/site/header_bottom-b.png);
  background-repeat: repeat-x;
  color: #FFFFFF; padding: 5px 8px; font-weight: bold;
  height: 29px; display: flex; align-items: center;
  gap: 4px;
}
.topnav a, .topnav a:link, .topnav a:visited {
  color: #FFFFFF; font-weight: bold; text-decoration: none;
}
.topnav a:hover { text-decoration: underline; background: none; }

/* === Breadcrumb & Search === */
.breadcrumb-bar {
  display: flex; justify-content: space-between; align-items: center;
  background-color: #000000; font-size: 11px; padding: 3px 6px;
}
.breadcrumb { color: #999999; }
.breadcrumb a, .breadcrumb a:link, .breadcrumb a:visited {
  color: #FFFFFF; font-weight: bold; text-decoration: none;
}
.breadcrumb a:hover { text-decoration: underline; background: none; }
.search-form { display: flex; align-items: center; gap: 4px; }
input.search {
  border: 0; background: #FFFFFF; height: 16px; color: #0077CC; width: 90px; font-size: 11px;
}
input.searchbtn {
  border: 0; background: #000000; color: #FFFFFF; font-size: 11px; cursor: pointer;
}

/* === Main Layout === */
.main-layout {
  display: grid;
  grid-template-columns: 200px 1fr 200px;
  gap: 0;
  background-color: #000077;
  min-height: 400px;
}
.main-layout.two-col {
  grid-template-columns: 200px 1fr;
}

/* === Sidebars === */
.sidebar-left { padding: 10px 14px; }
.sidebar-right { padding: 10px 14px; }

.sidebar-box {
  width: 100%;
  margin-bottom: 14px;
}
.sidebar-box .boxcap {
  font-weight: bold; color: #AAAAFF;
  background-color: #28289A; padding: 5px 8px;
}
.sidebar-box .boxcap img { display: block; margin-bottom: 3px; }
.sidebar-box .box-content {
  background-color: #1929CA; padding: 6px 8px;
}
.sidebar-box ul {
  color: #99DDFF; padding-left: 18px; margin: 4px 0;
}
.sidebar-box ul.local-links { list-style-image: url(../../img/site/bullet_local.png); }
.sidebar-box ul.www-links { list-style-image: url(../../img/site/bullet_www.png); }
.sidebar-box li { margin: 4px 0; }
.sidebar-box a, .sidebar-box a:link, .sidebar-box a:visited {
  text-decoration: none; color: #55AAFF; font-weight: normal;
}
.sidebar-box a:hover { text-decoration: underline; color: #2222AA; }

/* === Main Content === */
.main-content {
  background-color: #000099;
  padding: 16px 14px;
  overflow-x: hidden;
}
.main-content h1 { font-size: 22px; margin: 24px 0 12px; }
.main-content h2 { font-size: 18px; margin: 22px 0 10px; }
.main-content h3 { font-size: 15px; margin: 20px 0 8px; }
.main-content h4 { font-size: 13px; margin: 18px 0 6px; }
.main-content h1:first-child { margin-top: 0; }
.main-content p { margin: 10px 0; line-height: 1.9; }
.main-content ul, .main-content ol { margin: 10px 0 10px 24px; }
.main-content li { margin: 4px 0; }

/* Menu items (section listings) */
.menu-item {
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.menu-item-header {
  display: flex; align-items: stretch;
}
.menu-item-indicator {
  width: 15px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.menu-item-title-area { flex: 1; }
.menu-item-title-area .line-decoration {
  width: 100%; height: 1px; display: block;
}
.menu-item-title a {
  color: #FFFFFF; font-weight: bold; font-size: 16px; padding-left: 10px;
}
.menu-item-meta {
  font-size: 10px; color: #4466CC; padding-left: 25px; margin-top: 2px;
}
.menu-item-meta span { color: #77AAFF; }
.menu-item-body {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 4px;
}
.menu-item-body img { flex-shrink: 0; }
.menu-item-body p { margin: 0; }

/* Feature block (e.g., XSLT on home) */
.feature-block {
  margin: 16px 0;
}
.feature-block img { display: block; margin-bottom: 8px; }

/* Article header */
.article-header {
  margin-bottom: 16px;
}
.article-header .article-subtitle {
  font-size: 14px; color: #AAAAFF; margin: 4px 0;
}
.article-header .article-meta {
  font-size: 11px; color: #99BBFF; margin: 4px 0;
}

/* Article sections */
.article-section {
  margin: 24px 0;
}
.article-section h2 { display: flex; justify-content: space-between; align-items: baseline; }
.article-section h3 { display: flex; justify-content: space-between; align-items: baseline; }
.article-section h4 { display: flex; justify-content: space-between; align-items: baseline; }
.top-link { font-size: 10px; font-weight: normal; margin-left: 12px; white-space: nowrap; }

/* Source code */
pre.sourcecode {
  color: #000000; background-color: #FFFFFF;
  font-family: 'Courier New', Courier, monospace;
  font-size: 11px; padding: 10px; overflow-x: auto;
  margin: 12px 0; line-height: 1.5;
}

/* Data tables */
.data-table {
  border-collapse: collapse; margin: 12px 0; width: 100%;
}
.data-table th {
  background-color: #3A4FAA; padding: 6px 10px; text-align: left;
  font-weight: bold;
}
.data-table td {
  padding: 6px 10px; border-bottom: 1px solid #333399;
}
.data-table tr:nth-child(even) td { background-color: #000077; }
.data-table tr:nth-child(odd) td { background-color: #000088; }

/* Framed content boxes */
.framed-box {
  border: 1px solid #4444FF; padding: 10px; margin: 14px 0;
}

/* Get-as box (download formats) */
.get-as-list {
  list-style: none; padding: 0;
}
.get-as-list li {
  margin: 4px 0; display: flex; align-items: center; gap: 6px;
}
.get-as-list a { font-weight: normal; }

/* Rating form */
.rating-form label { display: flex; align-items: center; gap: 4px; margin: 3px 0; }
input.ratetext {
  border: 1px solid #4444FF; background: #FFFFFF; color: #000044; font-size: 11px;
}
input.ratebutton {
  font-weight: bold; color: #FFFFFF; background: #1929CA; border: 0;
  cursor: pointer; font-size: 11px; padding: 2px 8px;
}

/* Legend bar */
.legend-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 8px; font-size: 10px; background-color: #000077;
}

/* === Footer === */
.site-footer {
  background-color: #0F77A8; color: #FFFFFF;
  font-weight: bold; padding: 6px 10px;
}

/* === Splash Page === */
.splash {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  flex: 1; text-align: center; padding: 20px;
}

/* News entries */
.news-entry { margin: 16px 0; }
.news-entry .news-date {
  font-weight: bold; color: #AAAAFF; font-size: 13px; margin-bottom: 4px;
}

/* Screenshot images */
.screenshot { max-width: 100%; margin: 10px 0; }

/* Review table */
.review-table { margin: 14px 0; }
.review-table dt { font-weight: bold; color: #AAAAFF; margin-top: 8px; }
.review-table dd { margin-left: 16px; margin-bottom: 4px; }
