:root {
  --border: #a2a9b1;
  --soft-border: #eaecf0;
  --link: #36c;
  --text: #202122;
  --muted: #54595d;
  --surface: #fff;
  --page-bg: #f8f9fa;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page-bg);
  overflow-x: hidden;
}

body {
  margin: 0 auto;
  width: min(100%, 1500px);
  max-width: none;
  min-height: 100vh;
  background: var(--surface);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Lato, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  overflow-x: hidden;
}

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

a:hover {
  text-decoration: underline;
}

.site-header {
  display: grid;
  grid-template-columns: 32px 184px minmax(360px, 520px) 1fr;
  align-items: center;
  gap: 14px;
  height: 50px;
  padding: 0 clamp(18px, 3.2vw, 48px);
  background: #fff;
}

.icon-button {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #202122;
  font-size: 20px;
  line-height: 1;
}

.brand {
  display: block;
  width: 157px;
  height: 38px;
  background: url("/assets/wikipedia-wordmark-en-25.svg") left center / contain no-repeat;
  color: transparent;
  overflow: hidden;
  text-decoration: none;
}

.brand-word,
.brand-sub,
.brand-plus {
  display: none;
}

.search {
  display: flex;
  width: 100%;
  min-width: 0;
}

.search input {
  flex: 1 1 auto;
  min-width: 0;
  height: 30px;
  padding: 4px 10px 4px 32px;
  border: 1px solid #a2a9b1;
  border-right: 0;
  background:
    linear-gradient(transparent, transparent),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20'%3E%3Cpath fill='%2372777d' d='m19 17-4.6-4.6a8 8 0 1 0-2 2L17 19zM8 14A6 6 0 1 1 8 2a6 6 0 0 1 0 12'/%3E%3C/svg%3E")
      10px center / 14px 14px no-repeat;
  font: inherit;
  font-size: 13px;
}

.search button {
  flex: 0 0 auto;
  height: 30px;
  padding: 0 14px;
  border: 1px solid #a2a9b1;
  background: #f8f9fa;
  color: #202122;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
}

.account-links {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  white-space: nowrap;
  font-size: 12px;
}

.page-shell {
  display: grid;
  grid-template-columns: minmax(170px, 215px) minmax(720px, 1fr) minmax(150px, 190px);
  gap: clamp(16px, 2vw, 28px);
  width: min(100% - clamp(36px, 6vw, 96px), 1380px);
  margin: 28px auto 0;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 12px;
  align-self: start;
  padding: 2px 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.sidebar-title,
.appearance-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--soft-border);
  color: #202122;
  font-weight: 700;
}

.sidebar-title button,
.appearance-title button {
  border: 0;
  background: #eaecf0;
  color: #54595d;
  font-size: 10px;
  padding: 1px 5px;
}

.sidebar ol {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.sidebar li {
  margin: 8px 0;
}

.sidebar li.has-sub > a {
  position: relative;
  display: inline-block;
  padding-left: 15px;
}

.sidebar li.has-sub > a::before {
  content: "";
  position: absolute;
  left: 1px;
  top: .48em;
  width: 5px;
  height: 5px;
  border-right: 1.25px solid #202122;
  border-bottom: 1.25px solid #202122;
  transform: rotate(45deg);
}

.sidebar ol ol {
  margin: 6px 0 0 28px;
}

.content {
  min-width: 0;
}

.title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--border);
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 31px;
  font-weight: 400;
  line-height: 1.25;
}

.languages {
  margin-bottom: 8px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
}

.article-tabs {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 8px;
  border-bottom: 1px solid #c8ccd1;
  font-size: 12px;
}

.article-tabs div {
  display: flex;
  gap: 14px;
}

.article-tabs a {
  display: inline-flex;
  align-items: center;
  height: 31px;
  color: #36c;
}

.article-tabs a.active {
  border-bottom: 2px solid #202122;
  color: #202122;
}

article {
  max-width: 100%;
  font-size: 14px;
}

.fromline {
  margin: 4px 0 12px;
  font-size: 13px;
}

.lead p:first-child {
  margin-top: 0;
}

p {
  margin: 11px 0;
}

sup {
  color: #36c;
  font-size: 10px;
}

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

h2 a,
h3 a {
  margin-left: 8px;
  font-family: sans-serif;
  font-size: 12px;
  font-weight: 400;
}

h3 {
  margin: 18px 0 6px;
  font-size: 16px;
  line-height: 1.35;
}

.infobox {
  float: right;
  width: clamp(285px, 24vw, 330px);
  margin: 0 0 16px 24px;
  border: 1px solid #a2a9b1;
  background: #f8f9fa;
  font-size: 12px;
  line-height: 1.35;
}

.infobox figcaption {
  padding: 6px;
  background: transparent;
  color: #000;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
}

.infobox img {
  display: block;
  width: calc(100% - 30px);
  height: auto;
  aspect-ratio: 4 / 3;
  margin: 4px auto 8px;
  border: 0;
  background: #eaecf0;
  object-fit: cover;
}

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

.infobox th,
.infobox td {
  padding: 4px 6px;
  vertical-align: top;
}

.infobox th {
  width: 82px;
  color: #000;
  text-align: left;
  font-weight: 700;
}

.references {
  font-size: 12px;
  columns: 2;
  column-gap: 28px;
}

.thumb {
  border: 1px solid #c8ccd1;
  background: #f8f9fa;
  font-size: 12px;
  line-height: 1.35;
}

.thumb.tright {
  float: right;
  clear: right;
  width: 290px;
  margin: 4px 0 14px 20px;
}

.thumb img {
  display: block;
  width: calc(100% - 12px);
  margin: 6px auto 4px;
}

.thumb figcaption {
  padding: 4px 7px 7px;
  color: #202122;
}

.appearance {
  position: sticky;
  top: 12px;
  align-self: start;
  padding-top: 2px;
  font-size: 12px;
}

.appearance fieldset {
  margin: 0 0 18px;
  padding: 0 0 10px;
  border: 0;
  border-bottom: 1px solid var(--soft-border);
}

.appearance legend {
  margin-bottom: 8px;
  color: #54595d;
}

.appearance label {
  display: block;
  margin: 8px 0;
}

.appearance input {
  margin: 0 6px 0 0;
  accent-color: #36c;
}

@media (max-width: 1180px) {
  .page-shell {
    grid-template-columns: minmax(170px, 200px) minmax(0, 1fr);
    width: min(100% - 36px, 1120px);
  }

  .appearance {
    display: none;
  }
}

@media (max-width: 860px) {
  body {
    background: #fff;
    width: 100%;
    font-size: 14.5px;
  }

  .site-header {
    grid-template-columns: 32px minmax(145px, 1fr);
    height: auto;
    min-height: 52px;
    gap: 8px 12px;
    padding: 8px 14px 10px;
  }

  .account-links {
    display: none;
  }

  .brand {
    width: 158px;
    height: 34px;
  }

  .search {
    grid-column: 1 / -1;
  }

  .search input,
  .search button {
    height: 32px;
  }

  .search button {
    display: none;
  }

  .page-shell {
    display: block;
    width: auto;
    margin: 16px 14px 0;
  }

  .sidebar {
    display: none;
  }

  .title-row {
    display: block;
  }

  h1 {
    font-size: 29px;
    line-height: 1.18;
  }

  .languages {
    display: none;
  }

  .article-tabs {
    overflow-x: auto;
    gap: 28px;
    max-width: 100%;
    scrollbar-width: none;
  }

  .article-tabs::-webkit-scrollbar {
    display: none;
  }

  .article-tabs div {
    gap: 14px;
    white-space: nowrap;
  }

  .article-tabs div:last-child a:nth-child(n + 3) {
    display: none;
  }

  .fromline {
    font-size: 12px;
  }

  .infobox {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 12px auto 18px;
    font-size: 12px;
  }

  .infobox img {
    width: calc(100% - 20px);
  }

  h2 {
    font-size: 24px;
    margin-top: 22px;
  }

  h3 {
    font-size: 16px;
  }

  .references {
    columns: 1;
  }

  .thumb.tright {
    float: none;
    width: 100%;
    margin: 12px 0 16px;
  }
}
