/* V83 — Wiki redesign: cabeçalho, sidebar com busca, breadcrumb, artigos e TOC */

/* ===== Cabeçalho ===== */
html body.wiki-v83-body .wiki-page-heading{
  max-width:900px;
  margin:0 auto 28px;
  padding:0 20px;
  text-align:center;
}
html body.wiki-v83-body .wiki-kicker{
  display:inline-block;
  font-size:12px;
  font-weight:900;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:#eab64b;
  padding:6px 16px;
  border:1px solid rgba(213,170,70,.4);
  border-radius:999px;
  background:rgba(234,182,75,.08);
  margin-bottom:16px;
}
html body.wiki-v83-body .wiki-page-heading h1{
  font-family:"Vollkorn",serif;
  font-size:42px;
  font-weight:700;
  color:#f7ead2;
  margin:0 0 12px;
  text-shadow:0 2px 18px rgba(0,0,0,.5);
}
html body.wiki-v83-body .wiki-page-heading p{
  font-size:15px;
  line-height:1.6;
  color:rgba(240,227,219,.68);
  margin:0;
}
@media(max-width:680px){
  html body.wiki-v83-body .wiki-page-heading h1{font-size:30px;}
}

/* ===== Layout geral =====
   O layout inteiro é reconstruído com CSS Grid num container próprio, em
   vez de reaproveitar o sistema flex antigo de ".wiki" (que tem regras
   escondidas e conflitantes em pro-mmorpg-v78/v79/v80.css). Como grid usa
   propriedades completamente diferentes de flex (grid-template-columns em
   vez de flex-basis/align-self), essas regras antigas deixam de ter
   qualquer efeito sobre o dimensionamento das colunas. */
html body.wiki-v83-body .wiki.wiki-v83{
  display:grid!important;
  grid-template-columns:320px minmax(0,1fr)!important;
  align-items:start!important;
  gap:24px!important;
  width:100%!important;
}
@media(max-width:1024px){
  html body.wiki-v83-body .wiki.wiki-v83{grid-template-columns:1fr!important;}
}

/* ===== Sidebar =====
   .wiki__nav-col é o item de grid (sem nenhuma bagagem flex antiga) e é o
   único elemento visualmente estilizado (fundo, borda, sombra, scroll).
   .wiki__nav em si é resetado para um wrapper neutro logo abaixo. */
html body.wiki-v83-body .wiki__nav-col{
  box-sizing:border-box!important;
  display:flex!important;
  flex-direction:column!important;
  position:sticky!important;
  top:16px!important;
  max-height:calc(100vh - 32px)!important;
  background:linear-gradient(160deg,rgba(10,14,20,.88),rgba(16,20,26,.82))!important;
  border:1px solid rgba(213,170,70,.28)!important;
  border-radius:16px!important;
  box-shadow:0 18px 44px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.04)!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  scrollbar-width:thin;
  scrollbar-color:#c99127 rgba(255,255,255,.06);
}
html body.wiki-v83-body .wiki__nav-col::-webkit-scrollbar{width:7px;}
html body.wiki-v83-body .wiki__nav-col::-webkit-scrollbar-track{background:rgba(255,255,255,.04);}
html body.wiki-v83-body .wiki__nav-col::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#f7cf57,#c99127);border-radius:8px;}
@media(max-width:1024px){
  html body.wiki-v83-body .wiki__nav-col{position:relative!important;top:0!important;max-height:70vh!important;}
}

html body.wiki-v83-body .wiki__nav{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
  flex:0 0 auto!important;
  align-self:auto!important;
  height:auto!important;
  max-height:none!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  overflow:visible!important;
  padding-bottom:10px!important;
}

.wiki-search-box{
  display:flex;
  align-items:center;
  gap:6px;
  box-sizing:border-box;
  width:100%;
  flex:0 0 auto;
  position:sticky;
  top:0;
  z-index:2;
  padding:6px 10px;
  border-bottom:1px solid rgba(213,170,70,.22);
  background:rgba(10,14,20,.96);
  border-radius:16px 16px 0 0;
}
.wiki-search-box i{color:rgba(234,182,75,.5);font-size:10px;flex:0 0 auto;}
.wiki-search-input{
  flex:1;
  min-width:0;
  width:100%;
  background:transparent;
  border:0;
  outline:0;
  color:#f0e3db;
  font-size:11px;
  padding:4px 0;
}
.wiki-search-input::placeholder{color:rgba(240,227,219,.4);}

html body.wiki-v83-body .wiki__nav-category{
  margin:16px 14px 6px;
  padding:0 0 6px;
  border-bottom:1px solid rgba(213,170,70,.22);
  color:#eab64b;
  font-size:11px;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
}
html body.wiki-v83-body .wiki__nav-category:first-of-type{margin-top:12px;}

html body.wiki-v83-body .wiki__nav-item{
  width:auto!important;
  margin:2px 8px!important;
  padding:9px 10px 9px 12px!important;
  border:0!important;
  border-left:3px solid transparent!important;
  border-radius:9px!important;
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  transition:.16s!important;
}
html body.wiki-v83-body .wiki__nav-item:hover{
  background:rgba(234,182,75,.09)!important;
  border-left-color:rgba(234,182,75,.5)!important;
}
html body.wiki-v83-body .wiki__nav-item.active{
  background:linear-gradient(90deg,rgba(234,182,75,.16),rgba(234,182,75,.04))!important;
  border-left-color:#eab64b!important;
}
html body.wiki-v83-body .wiki__nav-item-icon{
  width:34px!important;height:34px!important;
  border-radius:50%!important;
  flex:0 0 auto!important;
}
html body.wiki-v83-body .wiki__nav-item-icon:after{display:none!important;}
html body.wiki-v83-body .wiki__nav-item-icon.wiki-v82-24-real-icon{
  border-radius:50%!important;
  width:34px!important;height:34px!important;
}
html body.wiki-v83-body .wiki__nav-item-info{width:auto!important;flex:1;padding-left:0!important;min-width:0;}
html body.wiki-v83-body .wiki__nav-item-name{
  font-size:12.5px!important;
  line-height:1.3!important;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
html body.wiki-v83-body .wiki__nav-item-desc{
  font-size:11px!important;
  margin-top:1px!important;
}
@media(max-width:1024px){
  html body.wiki-v83-body .wiki__nav-item{width:calc(50% - 16px)!important;}
}
@media(max-width:560px){
  html body.wiki-v83-body .wiki__nav-item{width:calc(100% - 16px)!important;}
}

/* ===== Conteúdo ===== */
html body.wiki-v83-body .wiki__box{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
  background:transparent!important;
}

html body.wiki-v83-body .wiki__content{
  position:static!important;
  opacity:1!important;
  pointer-events:auto!important;
  background:linear-gradient(160deg,rgba(10,14,20,.86),rgba(16,20,26,.8))!important;
  border:1px solid rgba(213,170,70,.26)!important;
  border-radius:16px!important;
  box-shadow:0 18px 44px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.04)!important;
}
html body.wiki-v83-body .wiki__content-title{
  background:rgba(234,182,75,.06)!important;
  border-bottom:1px solid rgba(213,170,70,.22)!important;
  border-radius:16px 16px 0 0!important;
  padding:18px 22px!important;
}
html body.wiki-v83-body .wiki__content-title-icon{
  width:44px!important;height:44px!important;
  border:1px solid rgba(213,170,70,.35)!important;
  border-radius:12px!important;
  background:rgba(0,0,0,.3)!important;
}
html body.wiki-v83-body .wiki__content-title-icon:after{display:none!important;}
html body.wiki-v83-body .wiki__content-title-name{
  font-size:19px!important;
  color:#f7ead2!important;
  letter-spacing:.02em!important;
}
html body.wiki-v83-body .wiki__content-title-desc{
  color:rgba(234,182,75,.7)!important;
  font-size:12px!important;
  letter-spacing:.04em!important;
  text-transform:uppercase!important;
  font-weight:700!important;
}
html body.wiki-v83-body .wiki__content-main{
  padding:24px 26px 30px!important;
}

/* ===== Wiki em construção ===== */
html body.wiki-v83-body .wiki-under-construction{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:14px;
  padding:70px 24px;
  text-align:center;
  border:1px dashed rgba(213,170,70,.3);
  border-radius:12px;
  background:rgba(234,182,75,.04);
}
html body.wiki-v83-body .wiki-under-construction i{
  font-size:30px;
  color:#eab64b;
}
html body.wiki-v83-body .wiki-under-construction p{
  margin:0;
  max-width:460px;
  color:#e7dcc6;
  font-size:16px;
  font-weight:700;
  line-height:1.6;
}

/* ===== Aviso / message ===== */
html body.wiki-v83-body .message{
  border-radius:10px!important;
  border-left:3px solid transparent;
  box-shadow:0 8px 20px rgba(0,0,0,.2);
}
html body.wiki-v83-body .message.green{border-left-color:#53d39d;}
html body.wiki-v83-body .message.red{border-left-color:#ff7c7c;}
html body.wiki-v83-body .message.yellow{border-left-color:#fbd581;}
html body.wiki-v83-body .message__icon:after{display:none!important;}

/* ===== Sumário "Nesta página" ===== */
.wiki-toc{
  margin:0 0 22px;
  padding:14px 16px;
  border:1px solid rgba(213,170,70,.24);
  border-radius:12px;
  background:rgba(234,182,75,.05);
}
.wiki-toc-title{
  font-size:12px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#eab64b;
  margin-bottom:8px;
  display:flex;
  align-items:center;
  gap:7px;
}
.wiki-toc-list{list-style:none;margin:0;padding:0;columns:2;column-gap:20px;}
.wiki-toc-list li{break-inside:avoid;margin:4px 0;}
.wiki-toc-list li.wiki-toc-sub{padding-left:14px;}
.wiki-toc-list a{
  color:rgba(240,227,219,.72);
  font-size:13px;
  text-decoration:none;
  border-bottom:1px dotted transparent;
}
.wiki-toc-list a:hover{color:#eab64b;border-bottom-color:rgba(234,182,75,.5);}
@media(max-width:680px){
  .wiki-toc-list{columns:1;}
}

/* ===== Tipografia do artigo (prose) ===== */
html body.wiki-v83-body .wiki-guide-prose{
  max-width:840px;
  color:rgba(240,227,219,.86);
}
html body.wiki-v83-body .wiki-guide-prose h2{
  font-family:"Vollkorn",serif;
  font-size:22px;
  color:#f7ead2;
  border-bottom:1px solid rgba(213,170,70,.28);
  padding-bottom:8px;
  margin:26px 0 14px;
}
html body.wiki-v83-body .wiki-guide-prose h2:first-child{margin-top:0;}
html body.wiki-v83-body .wiki-guide-prose h3{
  font-size:16px;
  color:#eab64b;
  margin:20px 0 10px;
}
html body.wiki-v83-body .wiki-guide-prose a{color:#eab64b;}
html body.wiki-v83-body .wiki-guide-prose strong{color:#f7ead2;}
html body.wiki-v83-body .wiki-guide-prose img{
  border:1px solid rgba(255,220,130,.18)!important;
  box-shadow:0 10px 26px rgba(0,0,0,.3);
}
html body.wiki-v83-body .wiki-guide-prose table{
  border-collapse:collapse!important;
  width:100%!important;
  background:rgba(255,255,255,.02)!important;
  border:1px solid rgba(213,170,70,.24)!important;
}
html body.wiki-v83-body .wiki-guide-prose table[style]{border-color:rgba(213,170,70,.3)!important;}
html body.wiki-v83-body .wiki-guide-prose td,
html body.wiki-v83-body .wiki-guide-prose th{
  border:1px solid rgba(255,255,255,.08)!important;
  background:transparent!important;
  color:rgba(240,227,219,.82)!important;
  padding:8px 10px!important;
}
html body.wiki-v83-body .wiki-guide-prose td[bgcolor],
html body.wiki-v83-body .wiki-guide-prose th[bgcolor]{
  background:linear-gradient(180deg,rgba(234,182,75,.18),rgba(234,182,75,.06))!important;
  color:#ffe9a8!important;
}
html body.wiki-v83-body .wiki-guide-prose blockquote{
  border-left:3px solid #c99652!important;
  padding-left:14px!important;
  color:rgba(240,227,219,.65)!important;
  margin:14px 0!important;
}
html body.wiki-v83-body .wiki-guide-note{
  border-radius:10px!important;
}

@media(max-width:1024px){
  html body.wiki-v83-body .wiki__content-main{padding:18px!important;}
}
