/* Tokenpedia — MediaWiki Vector-style skin */
* { box-sizing: border-box; }
html { font-size: 100%; }
body {
  margin: 0;
  font-family: sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #202122;
  background: #fff;
}
a { color: #3366cc; text-decoration: none; }
a:visited { color: #795cb2; }
a:hover { text-decoration: underline; }
a.new, a.new:visited { color: #d73333; }
a.external {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath fill='%2336c' d='M6 1h5v5L8.86 3.85 4.7 8 4 7.3l4.15-4.16zM2 3h2v1H2v6h6V8h1v2a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1'/%3E%3C/svg%3E") no-repeat right center;
  padding-right: 14px;
}
code {
  background: #f8f9fa;
  border: 1px solid #eaecf0;
  border-radius: 2px;
  padding: 1px 4px;
  font-family: "Consolas", "Menlo", monospace;
  font-size: 13px;
}
pre {
  background: #f8f9fa;
  border: 1px solid #eaecf0;
  padding: 12px;
  overflow-x: auto;
}
hr { border: 0; border-top: 1px solid #a2a9b1; }

/* ---------- Header ---------- */
.mw-header {
  border-bottom: 1px solid #eaecf0;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner {
  max-width: 1596px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 6px 16px;
  min-height: 50px;
}
.mw-logo { display: flex; align-items: center; gap: 8px; color: #202122 !important; }
.mw-logo:hover { text-decoration: none; }
.mw-logo-icon { font-size: 30px; line-height: 1; font-family: "Linux Libertine", Georgia, serif; }
.mw-logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.mw-wordmark {
  font-family: "Linux Libertine", "Hoefler Text", Georgia, "Times New Roman", serif;
  font-size: 19px;
  letter-spacing: 0.5px;
}
.mw-tagline { font-size: 10.5px; color: #202122; font-family: Georgia, serif; letter-spacing: 0.2px; }
.mw-search { flex: 1 1 auto; max-width: 500px; display: flex; position: relative; }
.mw-search .search-icon { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); }
.mw-search input[type="search"] {
  flex: 1;
  border: 1px solid #a2a9b1;
  border-radius: 2px 0 0 2px;
  padding: 6px 8px 6px 30px;
  font-size: 13.6px;
  outline: none;
}
.mw-search input[type="search"]:focus { border-color: #36c; box-shadow: inset 0 0 0 1px #36c; }
.mw-search button {
  border: 1px solid #a2a9b1;
  border-left: 0;
  background: #f8f9fa;
  color: #202122;
  font-weight: bold;
  font-size: 13.6px;
  padding: 6px 12px;
  border-radius: 0 2px 2px 0;
  cursor: pointer;
}
.mw-search button:hover { background: #fff; }
.mw-header-links { margin-left: auto; display: flex; gap: 14px; font-size: 13.6px; white-space: nowrap; }

/* ---------- Layout ---------- */
.mw-page {
  max-width: 1596px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 0 24px;
  padding: 12px 16px 40px;
}
.mw-sidebar { font-size: 13px; padding-top: 24px; }
.vector-menu-heading {
  color: #54595d;
  font-size: 12.8px;
  font-weight: bold;
  border-bottom: 1px solid #eaecf0;
  padding-bottom: 4px;
  margin: 18px 0 6px;
}
.vector-menu ul { list-style: none; margin: 0; padding: 0; }
.vector-menu li { padding: 3px 0; }
.mw-content-container { max-width: 960px; min-width: 0; }

/* ---------- Article chrome ---------- */
.page-tabs {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #a2a9b1;
  font-size: 13.6px;
  margin-bottom: 2px;
}
.page-tabs a { padding: 6px 10px; display: inline-block; color: #3366cc; }
.page-tabs a.tab-on, .page-tabs a.selected { color: #202122; font-weight: normal; box-shadow: inset 0 -2px 0 #202122; }
.page-tabs a.new { color: #d73333; }
.tabs-left, .tabs-right { display: flex; }

h1.firstHeading {
  font-family: "Linux Libertine", "Hoefler Text", Georgia, "Times New Roman", serif;
  font-size: 28.8px;
  font-weight: normal;
  margin: 8px 0 0;
  padding-bottom: 2px;
  border-bottom: 1px solid #a2a9b1;
  line-height: 1.3;
}
.siteSub { font-size: 12.8px; color: #54595d; margin: 4px 0 14px; }
.mw-body-content { font-size: 14px; }
.mw-parser-output > p:first-child { margin-top: 0.4em; }

h2 {
  font-family: "Linux Libertine", "Hoefler Text", Georgia, "Times New Roman", serif;
  font-size: 21.6px;
  font-weight: normal;
  border-bottom: 1px solid #a2a9b1;
  margin: 1.2em 0 0.35em;
  padding-bottom: 2px;
}
h3 { font-size: 16.8px; margin: 1em 0 0.3em; }
ul, ol { margin: 0.3em 0 0.6em 1.6em; padding: 0; }
p { margin: 0.5em 0; }

/* ---------- TOC (legacy box) ---------- */
.toc {
  display: inline-block;
  background: #f8f9fa;
  border: 1px solid #a2a9b1;
  padding: 8px 16px;
  font-size: 13.3px;
  margin: 8px 0 12px;
}
.toc .toctitle h2 { font-size: 14px; font-family: sans-serif; font-weight: bold; border: 0; text-align: center; margin: 0 0 4px; }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 2px 0; }
.tocnumber { color: #202122; }

/* ---------- Infobox ---------- */
.infobox {
  float: right;
  clear: right;
  width: 272px;
  margin: 4px 0 12px 20px;
  border: 1px solid #a2a9b1;
  background: #f8f9fa;
  border-spacing: 3px;
  font-size: 12.6px;
  line-height: 1.5;
}
.infobox-above {
  background: #ddddff;
  font-size: 15.6px;
  font-weight: bold;
  font-style: italic;
  padding: 6px 8px !important;
  text-align: center !important;
  white-space: normal !important;
}
.infobox-image {
  text-align: center;
  padding: 6px 4px !important;
}
.infobox-image img {
  max-width: 230px;
  max-height: 230px;
  width: auto;
  height: auto;
  border: 1px solid #eaecf0;
  background: #fff;
}
.infobox th[scope="row"] {
  text-align: left;
  vertical-align: top;
  padding: 2px 8px 2px 6px;
  white-space: nowrap;
  width: 40%;
}
.infobox td { vertical-align: top; padding: 2px 6px 2px 0; word-break: break-word; }
.ib-ca { font-size: 10.6px; display: inline-block; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.ib-asof { color: #54595d; font-size: 10.6px; }
.ib-status { padding: 0 6px; border-radius: 8px; font-size: 11.6px; white-space: nowrap; }
.ib-live { background: #d5fdf4; color: #14866d; border: 1px solid #14866d; }
.ib-soon, .ib-pending { background: #fef6e7; color: #886425; border: 1px solid #edab00; }
.ib-none { background: #eaecf0; color: #54595d; border: 1px solid #a2a9b1; }

/* ---------- Category bar ---------- */
.catlinks {
  border: 1px solid #a2a9b1;
  background: #f8f9fa;
  padding: 6px 10px;
  margin-top: 28px;
  font-size: 13.3px;
  clear: both;
}
.catsep { color: #54595d; }

/* ---------- wikitable ---------- */
.wikitable {
  border-collapse: collapse;
  background: #f8f9fa;
  border: 1px solid #a2a9b1;
  font-size: 13.3px;
  margin: 12px 0;
}
.wikitable th, .wikitable td { border: 1px solid #a2a9b1; padding: 4px 8px; }
.wikitable th { background: #eaecf0; text-align: center; }
.wikitable.sortable th { cursor: pointer; user-select: none; }
.wikitable.sortable th::after { content: " ⇅"; color: #72777d; font-size: 10px; }
.wikitable.sortable th.sorted-asc::after { content: " ▲"; }
.wikitable.sortable th.sorted-desc::after { content: " ▼"; }
.mw-parser-output table { border-collapse: collapse; margin: 8px 0; }
.mw-parser-output table td, .mw-parser-output table th { border: 1px solid #a2a9b1; padding: 3px 8px; background: #f8f9fa; }
.mw-parser-output table th { background: #eaecf0; }

/* ---------- Filter bar ---------- */
.filter-bar {
  background: #f8f9fa;
  border: 1px solid #a2a9b1;
  padding: 8px 12px;
  font-size: 13.3px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.filter-label { color: #54595d; font-weight: bold; margin-left: 10px; }
.filter-label:first-child { margin-left: 0; }
.filter-pill { border: 1px solid #a2a9b1; background: #fff; border-radius: 2px; padding: 2px 9px; }
.filter-pill.on { background: #36c; border-color: #36c; color: #fff; font-weight: bold; }
.filter-pill.on:visited { color: #fff; }
.filter-search { margin-left: auto; }
.filter-search input { border: 1px solid #a2a9b1; border-radius: 2px; padding: 4px 8px; width: 200px; }

/* ---------- Main page ---------- */
.page-main h1.firstHeading, .page-main .siteSub { display: none; }
.mp-banner {
  text-align: center;
  border: 1px solid #a2a9b1;
  background: #f8f9fa;
  padding: 18px 10px 14px;
  margin-bottom: 14px;
}
.mp-welcome {
  font-family: "Linux Libertine", Georgia, serif;
  font-size: 28px;
  border: 0;
  margin: 0;
}
.mp-sub { font-size: 15px; margin-top: 2px; }
.mp-count { margin-top: 10px; font-size: 13.3px; color: #54595d; }
.mp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mp-box { border: 1px solid #a2a9b1; background: #f8f9fa; }
.mp-box .mp-h { font-weight: bold; padding: 6px 12px; font-size: 14.6px; border-bottom: 1px solid #a2a9b1; }
.mp-blue .mp-h { background: #cedff2; border-color: #a3b0bf; }
.mp-blue { border-color: #a3b0bf; background: #f5faff; }
.mp-green .mp-h { background: #cef2e0; border-color: #a3bfb1; }
.mp-green { border-color: #a3bfb1; background: #f5fffa; }
.mp-yellow .mp-h { background: #f9f2d7; border-color: #cfc38f; }
.mp-yellow { border-color: #cfc38f; background: #fdfcf5; }
.mp-gray .mp-h { background: #eaecf0; }
.mp-box ul { margin: 8px 8px 8px 26px; }
.mp-box li { margin: 3px 0; }
.mp-more { text-align: right; padding: 0 12px 8px; font-size: 12.6px; }
.rc-meta { color: #54595d; font-size: 12.3px; }

/* ---------- Edit page ---------- */
#wpTextbox1 {
  width: 100%;
  font-family: "Consolas", "Menlo", monospace;
  font-size: 13px;
  line-height: 1.5;
  border: 1px solid #a2a9b1;
  padding: 8px;
}
.editOptions { background: #eaecf0; border: 1px solid #a2a9b1; border-top: 0; padding: 10px 12px; }
#wpSummary { width: 60%; border: 1px solid #a2a9b1; border-radius: 2px; padding: 5px 8px; margin: 4px 8px 10px 0; }
.editor-name { border: 1px solid #a2a9b1; border-radius: 2px; padding: 5px 8px; width: 220px; }
.editButtons { display: flex; align-items: center; gap: 10px; }
.mw-btn-primary {
  background: #36c;
  color: #fff;
  border: 1px solid #36c;
  border-radius: 2px;
  font-weight: bold;
  font-size: 14px;
  padding: 6px 14px;
  cursor: pointer;
}
.mw-btn-primary:hover { background: #447ff5; }
.mw-btn {
  background: #f8f9fa;
  color: #202122 !important;
  border: 1px solid #a2a9b1;
  border-radius: 2px;
  font-weight: bold;
  font-size: 14px;
  padding: 5px 14px;
  display: inline-block;
}
.mw-message-box {
  background: #eaf3ff;
  border: 1px solid #36c;
  padding: 8px 12px;
  margin-bottom: 12px;
  font-size: 13.3px;
}
.mw-warning-box { background: #fef6e7; border-color: #edab00; }
.small { font-size: 12.3px; color: #54595d; }
.create-form input[type="text"] { border: 1px solid #a2a9b1; border-radius: 2px; padding: 6px 10px; width: 320px; font-size: 14px; margin-right: 8px; }

/* ---------- History / diff / search / recent ---------- */
.mw-history, .mw-changeslist, .mw-search-results { list-style: none; margin-left: 0; }
.mw-history li, .mw-changeslist li { padding: 2px 0; font-size: 13.3px; }
.hist-nav { color: #54595d; }
.rc-time { font-family: "Consolas", monospace; font-size: 12.3px; color: #54595d; }
.rc-new { color: #006400; }
.searchResultHeading { font-size: 16px; }
.mw-search-results li { margin-bottom: 12px; }
.searchresult { font-size: 12.8px; color: #54595d; max-width: 620px; }
.diff { width: 100%; border-collapse: collapse; font-family: "Consolas", monospace; font-size: 12.3px; table-layout: fixed; }
.diff th { font-family: sans-serif; padding: 6px; border-bottom: 2px solid #a2a9b1; width: 50%; }
.diff td { vertical-align: top; padding: 2px 6px; word-wrap: break-word; white-space: pre-wrap; }
.diff-deletedline { background: #ffe49c; border-left: 4px solid #ffa500; }
.diff-addedline { background: #a3d3ff; border-left: 4px solid #36c; }
.diff-empty { background: #f8f9fa; }

/* ---------- Hover previews ---------- */
.mw-popup {
  position: absolute;
  z-index: 100;
  width: 360px;
  background: #fff;
  border: 1px solid #a2a9b1;
  box-shadow: 0 30px 90px -20px rgba(0, 0, 0, 0.3), 0 0 1px #a2a9b1;
  padding: 12px 16px;
  font-size: 13.3px;
  line-height: 1.5;
  display: none;
  animation: pp-in 0.12s ease-out;
}
@keyframes pp-in { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.mw-popup-wide { width: 452px; padding: 10px 12px; }
.pp-logo { float: right; width: 44px; height: 44px; object-fit: cover; border: 1px solid #eaecf0; margin: 2px 0 4px 10px; }
.pp-title {
  font-family: "Linux Libertine", "Hoefler Text", Georgia, "Times New Roman", serif;
  font-size: 17.5px;
  margin-bottom: 1px;
}
.pp-facts { color: #54595d; font-size: 12.3px; margin-bottom: 6px; }
.pp-dot { color: #a2a9b1; }
.pp-extract { max-height: 170px; overflow: hidden; }
.pp-extract p { margin: 0.25em 0; }
.pp-footer { border-top: 1px solid #eaecf0; margin-top: 8px; padding-top: 5px; color: #72777d; font-size: 11.3px; }
.mw-popup-chart { position: relative; width: 428px; height: 330px; background: #f8f9fa; }
.mw-popup-chart iframe { position: relative; width: 100%; height: 100%; border: 0; z-index: 1; }
.pp-loading { position: absolute; top: 50%; left: 0; right: 0; text-align: center; color: #72777d; transform: translateY(-50%); }

/* ---------- Footer ---------- */
.mw-footer { margin-top: 40px; border-top: 1px solid #a2a9b1; padding-top: 10px; font-size: 12.3px; color: #54595d; clear: both; }
.footer-info { margin: 4px 0; }
.footer-links { list-style: none; margin: 8px 0 0; padding: 0; display: flex; gap: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .mw-page { grid-template-columns: 1fr; }
  .mw-sidebar { display: none; }
  .mp-grid { grid-template-columns: 1fr; }
  .infobox { float: none; width: 100%; margin: 8px 0; }
  .mw-header-links { display: none; }
}
