
:root {
  --text: #333;
  --link: #2b73b7;
  --border: #ccc;
  --paper: #fff;
  --site: #fbfaf9;
  --alt: #eee;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--site);
  color: var(--text);
  font: 15px/1.55 "Segoe UI", "Lucida Grande", Verdana, sans-serif;
}
header {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: #19477a;
  color: #fff;
  padding: 0.7rem 1.4rem;
}
.brand img { max-width: 100px; max-height: 100px; width: auto; height: auto; display: block; background: #e7f4fb; }
.banner-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.banner-text strong { font-size: 1.45rem; font-weight: 600; }
.banner-text span { color: #d5e2f0; font-size: 1.12rem; }
.repo {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  white-space: nowrap;
}
.repo:hover { text-decoration: underline; }
.repo svg { width: 1.7rem; height: 1.7rem; flex: none; }
.layout { max-width: 920px; margin: 0 auto; padding: 1.2rem; }
main { min-width: 0; background: var(--paper); border: 1px solid var(--border); padding: 1rem 1.4rem 2rem; }
h1, h2, h3, h4, h5 { color: #19477a; line-height: 1.3; font-weight: 600; }
h1 { font-size: 1.7rem; border-bottom: 1px solid var(--border); padding-bottom: 0.25rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.15rem; }
a.wikilink, a.urlextern, a.interwiki, a.mail { color: var(--link); }
a.urlextern::after {
  content: "↗";
  font-size: 0.65em;
  line-height: 1;
  margin-left: 0.15em;
  vertical-align: super;
  text-decoration: none;
}
.toc { float: right; width: 14rem; margin: 0 0 1rem 1rem; background: var(--alt); border: 1px solid var(--border); padding: 0.5rem 0.8rem; font-size: 0.86rem; }
.toc-title { font-weight: 600; margin-bottom: 0.3rem; }
.toc-home { margin: 0 0 0.45rem; }
.toc-home a { color: var(--link); font-weight: 600; }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.toc-3 { padding-left: 0.8rem; }
img { height: auto; vertical-align: middle; margin: 0.25rem 0.45rem 0.25rem 0; }
span.media { display: inline-block; margin: 0.4rem 0.8rem 0.4rem 0; vertical-align: top; }
span.media .caption { display: block; color: #666; font-size: 0.82rem; }
.video { display: block; margin: 0.8rem 0; }
.video iframe { max-width: 100%; border: 0; }
pre.code { background: #f7f9fa; border: 1px solid var(--border); padding: 0.7rem 0.9rem; overflow-x: auto; }
code { font-family: Consolas, "Courier New", monospace; font-size: 0.92em; }
ul, ol { padding-left: 1.3rem; }
hr { border: 0; border-top: 1px solid var(--border); }
@media (max-width: 800px) {
  header { flex-wrap: wrap; }
  .repo { margin-left: 0; }
  .toc { float: none; width: auto; }
}
