:root {
  --page: #ffffff;
  --text: #202122;
  --muted: #54595d;
  --line: #a2a9b1;
  --line-soft: #eaecf0;
  --link: #0645ad;
  --visited: #0b0080;
  --infobox: #f8f9fa;
  --toc: #f8f9fa;
  --header: #ffffff;
  --table-head: #eaecf0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:visited {
  color: var(--visited);
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

.page-header {
  min-height: 56px;
  display: grid;
  grid-template-columns: 220px minmax(220px, 1fr) auto;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--line-soft);
  padding: 0 24px;
  background: var(--header);
}

.wiki-wordmark {
  min-width: 200px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.wiki-wordmark:visited {
  color: var(--text);
}

.wiki-wordmark:hover {
  text-decoration: none;
}

.wiki-globe {
  position: relative;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 47%, rgba(162, 169, 177, .7) 48%, rgba(162, 169, 177, .7) 52%, transparent 53%),
    linear-gradient(0deg, transparent 47%, rgba(162, 169, 177, .7) 48%, rgba(162, 169, 177, .7) 52%, transparent 53%),
    radial-gradient(circle at 35% 28%, #fff 0 18%, #eef0f2 54%, #d7dce1 100%);
  color: #202122;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 700;
  overflow: hidden;
}

.wiki-globe::before,
.wiki-globe::after {
  content: "";
  position: absolute;
  inset: 8px 5px;
  border: 1px solid rgba(162, 169, 177, .75);
  border-left: 0;
  border-right: 0;
  border-radius: 50%;
}

.wiki-globe::after {
  inset: 5px 11px;
  border: 1px solid rgba(162, 169, 177, .75);
  border-top: 0;
  border-bottom: 0;
}

.wiki-globe span {
  position: relative;
  z-index: 1;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 3px;
  background: rgba(255, 255, 255, .76);
}

.wiki-name {
  display: grid;
  line-height: 1.05;
}

.wiki-name strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-weight: 500;
  letter-spacing: 1.5px;
}

.wiki-name small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 1px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-box label {
  color: var(--muted);
  font-size: 14px;
}

.search-box input {
  width: min(420px, 100%);
  min-height: 34px;
  border: 1px solid var(--line);
  padding: 4px 8px;
  font: inherit;
}

.page-header nav {
  display: flex;
  gap: 12px;
  font-size: 14px;
}

.layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 980px);
  gap: 32px;
  width: min(1240px, calc(100% - 36px));
  margin: 24px auto 0;
  align-items: start;
}

.toc {
  position: sticky;
  top: 18px;
  border: 1px solid var(--line);
  background: var(--toc);
  padding: 12px 14px;
  font-size: 14px;
}

.toc h2 {
  margin: 0 0 8px;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  font-weight: 700;
}

.toc ol {
  margin: 0;
  padding-left: 22px;
}

.toc li + li {
  margin-top: 4px;
}

.article {
  min-width: 0;
}

.site-note {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
}

h1 {
  margin: 0 0 14px;
  border-bottom: 1px solid var(--line);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  font-weight: 400;
  line-height: 1.25;
}

h2 {
  clear: left;
  margin: 28px 0 12px;
  border-bottom: 1px solid var(--line);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 400;
  line-height: 1.3;
}

p,
ul,
ol {
  margin-top: 0;
}

.infobox {
  float: right;
  width: 315px;
  margin: 0 0 18px 24px;
  border: 1px solid var(--line);
  background: var(--infobox);
  font-size: 14px;
}

.infobox h2 {
  margin: 0;
  border: 0;
  background: #dfe8f6;
  padding: 8px;
  text-align: center;
  font-family: sans-serif;
  font-size: 20px;
  font-weight: 700;
}

.infobox img {
  width: calc(100% - 16px);
  margin: 8px;
  border: 1px solid var(--line-soft);
}

.infobox table,
.wikitable {
  width: 100%;
  border-collapse: collapse;
}

.infobox th,
.infobox td {
  border-top: 1px solid var(--line-soft);
  padding: 7px 8px;
  text-align: left;
  vertical-align: top;
}

.infobox th {
  width: 32%;
  background: #f1f2f3;
  font-weight: 700;
}

.wikitable {
  margin: 14px 0 22px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 15px;
}

.wikitable caption {
  padding: 6px;
  font-weight: 700;
}

.wikitable th,
.wikitable td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.wikitable th {
  background: var(--table-head);
}

.social-table th:nth-child(1),
.social-table td:nth-child(1) {
  width: 110px;
}

.social-table th:nth-child(2),
.social-table td:nth-child(2) {
  width: 150px;
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 20px;
}

.photo-gallery figure {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--infobox);
  padding: 6px;
}

.photo-gallery img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.photo-gallery figcaption {
  padding-top: 5px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.external-list {
  columns: 2;
  column-gap: 34px;
}

.external-list li {
  break-inside: avoid;
  margin-bottom: 6px;
}

.page-footer {
  width: min(1240px, calc(100% - 36px));
  margin: 34px auto 0;
  border-top: 1px solid var(--line-soft);
  padding: 18px 0 28px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 980px) {
  .page-header {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px 16px;
  }

  .page-header nav {
    flex-wrap: wrap;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 15px;
  }

  .layout,
  .page-footer {
    width: min(100% - 24px, 1240px);
  }

  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 23px;
  }

  .infobox {
    float: none;
    width: 100%;
    margin: 0 0 18px;
  }

  .wikitable,
  .social-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .photo-gallery {
    grid-template-columns: 1fr;
  }

  .external-list {
    columns: 1;
  }
}
