* { margin:0; padding:0; box-sizing:border-box; }

body {
  font-family: Verdana, "DejaVu Sans", Arial, sans-serif;
  font-size: 14px;
  color: #333;
  background: #ffffff;
  line-height: 1.6;
}

a { color: #0b5a8a; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== top thin bar ===== */
#topbar {
  background: #ffffff;
  border-bottom: 1px solid #eee;
  padding: 10px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#brand {
  display: flex;
  align-items: center;
  font-size: 20px;
  font-weight: bold;
  color: #1b1b1b;
}
#brand .mark {
  width: 36px;
  height: 36px;
  background: #163b5c;
  border-radius: 8px;
  display: inline-block;
  margin-right: 10px;
  position: relative;
}
#brand .mark::before {
  content: "";
  position: absolute;
  left: 8px; top: 10px;
  width: 0; height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 14px solid #ffffff;
}
#brand .mark::after {
  content: "";
  position: absolute;
  left: 17px; top: 6px;
  width: 0; height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 10px solid #6fa8d6;
}
#brand small {
  display: block;
  font-size: 10px;
  font-weight: normal;
  color: #7a7a7a;
  letter-spacing: 2px;
}

#toplinks a {
  margin-left: 20px;
  font-size: 13px;
  font-style: italic;
  color: #888;
}
#toplinks a:hover { color: #163b5c; }

/* ===== main nav ===== */
#mainnav {
  background: #ffffff;
  border-bottom: 1px solid #eee;
  padding: 0 40px 14px 86px;
}
#mainnav a {
  margin-right: 26px;
  font-size: 14px;
  color: #333;
  font-weight: normal;
}
#mainnav a.active,
#mainnav a:hover {
  color: #163b5c;
  font-weight: bold;
}

/* ===== wiki-specific layout ===== */
#wikiwrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 50px 40px;
  display: table;
  width: 100%;
}
#wikitoc {
  display: table-cell;
  vertical-align: top;
  width: 260px;
  padding-right: 30px;
  border-right: 1px solid #eee;
}
#wikitoc h3 {
  font-size: 12px;
  letter-spacing: 2px;
  color: #163b5c;
  margin-bottom: 10px;
  text-transform: uppercase;
}
#wikitoc ol {
  margin-left: 18px;
  font-size: 12.5px;
}
#wikitoc li { margin-bottom: 6px; }
#wikitoc a { color: #555; }
#wikitoc a:hover { color: #163b5c; }

#wikibody {
  display: table-cell;
  vertical-align: top;
  padding-left: 30px;
}
#wikibody section {
  margin-bottom: 34px;
  padding-bottom: 24px;
  border-bottom: 1px solid #f0f0f0;
}
#wikibody section:last-child { border-bottom: none; }
#wikibody h2 {
  font-size: 15px;
  letter-spacing: 3px;
  color: #1b1b1b;
  margin-bottom: 4px;
  text-transform: uppercase;
}
#wikibody .secnum {
  font-size: 11px;
  color: #a3a3a3;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 2px;
}
#wikibody h4 {
  font-size: 12.5px;
  color: #163b5c;
  margin: 14px 0 6px 0;
}
#wikibody ul, #wikibody ol.plain {
  margin: 6px 0 12px 20px;
  font-size: 13px;
  color: #4a4a4a;
}
#wikibody li { margin-bottom: 4px; }
#wikibody p { font-size: 13.5px; }

/* ===== license page ===== */
.license-block {
  border: 1px solid #e2e2e2;
  background: #fbfbfb;
  padding: 18px 22px;
  margin-bottom: 18px;
}
.license-block h4 {
  font-size: 13px;
  color: #163b5c;
  margin-bottom: 8px;
  letter-spacing: 1px;
}
.license-block ul { margin-left: 18px; font-size: 13px; color: #4a4a4a; }
.license-block li { margin-bottom: 4px; }

@media (max-width: 800px) {
  #wikitoc { display:block; width:100%; border-right:none; border-bottom:1px solid #eee; padding-right:0; padding-bottom:20px; margin-bottom:20px; }
  #wikibody { display:block; padding-left:0; }
}

/* ===== hero ===== */
#hero {
  position: relative;
  height: 380px;
  background: #1b2b3a url("../img/img0.webp") center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}
#hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10,20,30,0.25);
}
#hero .heroinner {
  position: relative;
  z-index: 1;
  padding: 0 20px;
}
#hero h1 {
  font-size: 44px;
  font-weight: 600;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
#hero p {
  margin-top: 14px;
  font-size: 16px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* ===== content ===== */
#content {
  max-width: 900px;
  margin: 0 auto;
  padding: 50px 40px;
}

.section-label {
  font-size: 22px;
  letter-spacing: 6px;
  color: #1b1b1b;
  margin-bottom: 18px;
}

h2.sub {
  font-size: 13px;
  letter-spacing: 4px;
  color: #163b5c;
  margin: 30px 0 10px 0;
  text-transform: uppercase;
}

p { margin-bottom: 14px; color: #4a4a4a; }

table.spec {
  border-collapse: collapse;
  width: 100%;
  margin: 10px 0 20px 0;
  font-size: 13px;
}
table.spec th, table.spec td {
  border: 1px solid #e2e2e2;
  padding: 8px 12px;
  text-align: left;
}
table.spec th {
  background: #f5f7f8;
  width: 35%;
  color: #163b5c;
}

.btn {
  display: inline-block;
  background: #163b5c;
  color: #fff !important;
  padding: 10px 20px;
  font-size: 13px;
  border-radius: 3px;
  margin: 6px 10px 6px 0;
}
.btn:hover { background: #0d2740; text-decoration: none; }
.btn.secondary {
  background: #f0f0f0;
  color: #333 !important;
}
.btn.secondary:hover { background: #e0e0e0; }

.note {
  border-left: 3px solid #6fa8d6;
  background: #f4f8fb;
  padding: 10px 14px;
  font-size: 13px;
  color: #444;
  margin: 16px 0;
}
.note.warn {
  border-left-color: #c98a2c;
  background: #fdf6ea;
}

/* ===== footer ===== */
#footer {
  border-top: 1px solid #eee;
  padding: 24px 40px;
  text-align: center;
  font-size: 12px;
  color: #999;
}

@media (max-width: 700px) {
  #topbar, #mainnav, #content, #footer { padding-left: 18px; padding-right: 18px; }
  #mainnav { padding-left: 18px; }
  #hero h1 { font-size: 30px; }
}
