* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: sans-serif, Arial, Helvetica;
  background: #fff;
  color: #202122;
}

a { color: #0645ad; text-decoration: none; }
a:hover { text-decoration: underline; }

.wiki-app { display: flex; flex-direction: column; min-height: 100vh; }

.site-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px 20px;
  border-bottom: 1px solid #a2a9b1;
  background: #f8f9fa;
}

.logo { display: flex; align-items: center; gap: 8px; color: #000; }
.logo-mark {
  font-family: Georgia, serif;
  font-size: 28px;
  border: 1px solid #a2a9b1;
  padding: 2px 8px;
}
.logo-text { font-size: 13px; letter-spacing: 1px; line-height: 1.2; }
.logo-text small { font-size: 11px; color: #54595d; letter-spacing: 0; }

.search-bar { position: relative; margin-left: auto; }
.search-bar input {
  padding: 6px 10px;
  width: 260px;
  border: 1px solid #a2a9b1;
  border-radius: 2px 0 0 2px;
}
.search-bar button {
  border: 1px solid #a2a9b1;
  border-left: none;
  background: #f8f9fa;
  padding: 6px 10px;
  cursor: pointer;
}
.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #a2a9b1;
  list-style: none;
  margin: 0;
  padding: 0;
  z-index: 10;
}
.search-results li { padding: 8px 10px; cursor: pointer; }
.search-results li:hover { background: #eaf3ff; }

.wiki-body { display: flex; flex: 1; }

.sidebar {
  width: 200px;
  padding: 16px 12px;
  border-right: 1px solid #eaecf0;
  font-size: 13px;
}
.sidebar h3 { font-size: 13px; color: #54595d; border-bottom: 1px solid #eaecf0; padding-bottom: 4px; }
.sidebar ul { list-style: none; padding: 0; margin: 0 0 16px; }
.sidebar li { padding: 3px 0; }

.content { flex: 1; padding: 24px 32px; max-width: 900px; }

.article h1 {
  font-family: Georgia, serif;
  font-weight: normal;
  border-bottom: 1px solid #a2a9b1;
  padding-bottom: 6px;
}
.article h2 {
  font-family: Georgia, serif;
  font-weight: normal;
  border-bottom: 1px solid #a2a9b1;
  padding-bottom: 4px;
  margin-top: 28px;
}
.article .lead { font-size: 15px; line-height: 1.6; }
.article p { line-height: 1.7; }

.article-body { display: flow-root; }

.infobox {
  float: right;
  width: 260px;
  margin: 0 0 12px 16px;
  border: 1px solid #a2a9b1;
  background: #f8f9fa;
  font-size: 13px;
}
.infobox-title {
  text-align: center;
  font-weight: bold;
  padding: 6px;
  border-bottom: 1px solid #a2a9b1;
}
.infobox table { width: 100%; border-collapse: collapse; }
.infobox th, .infobox td {
  padding: 4px 6px;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid #eaecf0;
}
.infobox th { width: 40%; color: #54595d; font-weight: normal; }

.related { margin-top: 24px; border-top: 1px solid #eaecf0; padding-top: 12px; }

.site-footer {
  border-top: 1px solid #a2a9b1;
  padding: 12px 20px;
  font-size: 12px;
  color: #54595d;
  text-align: center;
}
