/* Class articles and the Chronicles information page. */
.chronicles-article-page{
  --article-accent: #62b850;
  --article-surface: #fff;
}
[data-theme="dark"] .chronicles-article-page{ --article-surface: #343635; }
.chronicles-article-page .general-head,
.chronicles-article-page .lore-shell{
  width: min(800px, 95%);
  max-width: 800px;
}
.chronicles-article-page .lore-doc{ padding-top: 12px; margin-bottom: 56px; }
.chronicles-article-page .lore-article{
  font-family: inherit;
  font-size: 16px;
  line-height: 1.95;
}
.chronicles-article-page .lore-article > .gap{ display: none; }
.chronicles-article-page .lore-article p{ margin: 0 0 16px; }
.chronicles-article-page .lore-article h2{
  margin: 48px 0 22px;
  font-size: 25px;
}
.chronicles-article-page .lore-article h2.news-article-heading{
  padding: 0 0 12px;
  border-bottom: 2px solid var(--article-accent);
  color: var(--lore-text);
  font-family: inherit;
  font-size: 25px;
  font-weight: 700;
}
.chronicles-article-page .lore-article h2.news-article-heading::before{ display: none; }
.chronicles-article-page .lore-article > :first-child{ margin-top: 0; }
.chronicles-article-page .chronicles-lore-doc .lore-article h3{
  margin: 40px 0 20px;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--lore-line);
  color: var(--lore-text);
  font-size: 22px;
}
.chronicles-article-page .chronicles-lore-doc .lore-article h4{
  margin: 24px 0 12px;
  padding: 0 0 8px;
  border-bottom: 1px solid var(--lore-line);
  color: var(--lore-text);
  font-size: 17px;
}
.chronicles-article-page .lore-article :is(h2,h3,h4){ scroll-margin-top: 100px; }
.chronicles-article-page .lore-article ul{ margin: 12px 0 28px 1.4em; }
.chronicles-article-page .lore-article li{ margin: 8px 0; }
.chronicles-guide-toc{ margin: 28px 0; padding: 20px 0; border-top: 1px solid var(--lore-line); border-bottom: 1px solid var(--lore-line); }
.chronicles-article-page .lore-article .chronicles-guide-toc ul{ margin: 10px 0 0; padding-left: 1.4em; }
.chronicles-article-page .lore-article .chronicles-guide-toc li{ margin: 4px 0; }
.chronicles-article-page .lore-article .chronicles-guide-toc ul ul{ margin-top: 4px; font-size: .9em; }
.chronicles-article-page .chronicles-guide-facts{
  display: grid;
  grid-template-columns: max-content minmax(0,1fr);
  gap: 8px 24px;
  margin: 0 0 28px;
}
.chronicles-article-page .chronicles-guide-facts dt{
  color: var(--lore-muted);
  font-weight: 500;
}
.chronicles-article-page .chronicles-guide-facts dd{ margin: 0; }
.chronicles-article-page .plain-figure{ margin: 24px 0 30px; }
.chronicles-article-page .plain-figure img{ height: auto; border-radius: 0; }
.chronicles-article-page .plain-figure.chronicles-guide-map{
  width: 80%;
  margin-inline: auto;
}
.chronicles-article-page .plain-figure.chronicles-guide-map--full{ width: 100%; }
.chronicles-article-page .chronicles-guide-map img{
  width: 100%;
  max-width: 100%;
}
.chronicles-article-page .chronicles-guide-table-wrap{
  max-width: 100%;
  margin: 0 0 24px;
  overflow-x: auto;
}
.chronicles-guide-data-table{
  width: 100%;
  border-collapse: collapse;
  background: var(--article-surface);
  color: var(--lore-text);
  font-size: 14px;
  line-height: 1.6;
}
.chronicles-guide-data-table th,
.chronicles-guide-data-table td{
  padding: 10px 12px;
  border: 1px solid var(--lore-line);
  text-align: left;
  vertical-align: middle;
}
.chronicles-guide-data-table thead th{
  background: #EFEFEF;
  color: #2f343c;
  text-align: center;
  font-weight: 700;
}
[data-theme="dark"] .chronicles-guide-data-table thead th{ background: #424744; color: #e5e7eb; }
.chronicles-guide-data-table thead th[data-grade="2"]{ color: #48b873; }
.chronicles-guide-data-table thead th[data-grade="3"]{ color: #5b9bd5; }
.chronicles-guide-data-table thead th[data-grade="4"]{ color: #a978d8; }
.chronicles-guide-data-table thead th[data-grade="5"]{ color: #d7aa3c; }
.chronicles-guide-rank{ font-weight: 700; }
.chronicles-guide-rank[data-grade="2"]{ color: #48b873; }
.chronicles-guide-rank[data-grade="3"]{ color: #5b9bd5; }
.chronicles-guide-rank[data-grade="4"]{ color: #a978d8; }
.chronicles-guide-rank[data-grade="5"]{ color: #d7aa3c; }
.chronicles-guide-translation{ display: block; color: var(--lore-muted); font-size: 12px; }
.chronicles-guide-data-table--center :is(th,td){ text-align: center; }
.chronicles-guide-data-table--wide{ min-width: 680px; }
.chronicles-guide-proficiency-name{ display: inline-flex; align-items: center; gap: 10px; }
.chronicles-guide-icon-heading{ display: flex; align-items: center; gap: 12px; }
.chronicles-article-page .chronicles-lore-doc .lore-article .chronicles-guide-icon-heading--spaced{ margin-top: 72px; }
.chronicles-guide-reward > span:last-child{ font-weight: inherit; }
.chronicles-guide-reward-label{ align-self: center; }
.chronicles-guide-proficiency-name small{ display: block; color: var(--lore-muted); font-size: 12px; }
.chronicles-guide-proficiency-icon{
  display: inline-block;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  background: var(--lore-text);
  -webkit-mask: var(--proficiency-icon) center / contain no-repeat;
  mask: var(--proficiency-icon) center / contain no-repeat;
}
.chronicles-guide-proficiency-icon--crafting{ mask-mode: luminance; }
.chronicles-guide-recipe-table{
  width: 100%;
  min-width: 800px;
  table-layout: fixed;
  border-collapse: collapse;
  background: var(--article-surface);
  color: var(--lore-text);
  font-size: 14px;
  line-height: 1.6;
}
.chronicles-guide-recipe-table th,
.chronicles-guide-recipe-table td{
  padding: 12px;
  border: 1px solid var(--lore-line);
  text-align: left;
  vertical-align: middle;
}
.chronicles-guide-recipe-table thead th{
  background: #EFEFEF;
  font-weight: 700;
}
.chronicles-guide-recipe-table th{ background: #EFEFEF; color: #2f343c; text-align: center; }
[data-theme="dark"] .chronicles-guide-recipe-table th{ background: #424744; color: #e5e7eb; }
.chronicles-guide-recipe-table thead th:nth-child(1){ width: 40%; }
.chronicles-guide-recipe-table thead th:nth-child(2){ width: 35%; }
.chronicles-guide-recipe-table thead th:nth-child(3){ width: 25%; }
.chronicles-guide-recipe-table .chronicles-guide-product{ text-align: center; font-weight: 500; }
.chronicles-guide-item{ display: flex; align-items: center; justify-content: center; gap: 10px; }
.chronicles-guide-item-icon{
  display: inline-flex;
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  overflow: hidden;
  background-color: #242424;
  background-blend-mode: screen;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}
.chronicles-guide-item-icon[data-grade="1"]{ background-image: url('/images/chronicles/guide/resource/UI_Inventory_Slot_Item_bg_Grade1.webp'); }
.chronicles-guide-item-icon[data-grade="2"]{ background-image: url('/images/chronicles/guide/resource/UI_Inventory_Slot_Item_bg_Grade2.webp'); }
.chronicles-guide-item-icon[data-grade="3"]{ background-image: url('/images/chronicles/guide/resource/UI_Inventory_Slot_Item_bg_Grade3.webp'); }
.chronicles-guide-item-icon[data-grade="4"]{ background-image: url('/images/chronicles/guide/resource/UI_Inventory_Slot_Item_bg_Grade4.webp'); }
.chronicles-guide-item-icon img{ display: block; width: 100%; height: 100%; object-fit: contain; }
.chronicles-article-page .lore-article .chronicles-guide-materials{
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.chronicles-article-page .lore-article .chronicles-guide-materials li{
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.chronicles-guide-material-count{ margin-left: auto; padding-left: 8px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.chronicles-guide-item-icon + span{ font-weight: 700; }
.chronicles-guide-item-icon[data-grade="2"] + span{ color: #48b873; }
.chronicles-guide-item-icon[data-grade="3"] + span{ color: #5b9bd5; }
.chronicles-guide-item-icon[data-grade="4"] + span{ color: #a978d8; }
.chronicles-guide-material-cost{ padding-top: 6px; border-top: 1px solid var(--lore-line); }
.chronicles-guide-gold-icon{
  display: inline-flex;
  flex: 0 0 32px;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 5px;
  position: relative;
  isolation: isolate;
}
.chronicles-guide-gold-icon::before{
  content: "";
  position: absolute;
  inset: 5px;
  z-index: -1;
  border-radius: 50%;
  background: #303030;
}
.chronicles-guide-gold-icon img{ display: block; width: 100%; height: 100%; object-fit: contain; }
[data-theme="dark"] .chronicles-guide-gold-icon::before{ background: transparent; }
.chronicles-guide-performance{ display: grid; gap: 6px; margin: 0; font-size: 12px; white-space: nowrap; }
.chronicles-guide-performance > div{ display: flex; justify-content: space-between; gap: 12px; }
.chronicles-guide-performance dt{ color: var(--lore-muted); }
.chronicles-guide-performance dd{ margin: 0; }
.chronicles-article-page .lore-article .chronicles-guide-back{ margin-top: 40px; }
.chronicles-article-page .chronicles-class-intro{ margin-top: 24px; }
.chronicles-article-page .chronicles-class-intro .plain-figure{ margin: 0; }
.chronicles-article-page .news-steam-widget{
  display: block;
  width: min(100%, 700px);
  height: 190px;
  margin: 24px auto;
  border: 0;
}
.chronicles-article-page .chronicles-info-note{
  margin: 24px 0;
  padding: 18px 22px;
  border-left: 3px solid var(--article-accent);
  background: var(--article-surface);
  color: var(--lore-text);
}
.chronicles-article-page .chronicles-info-note > strong{ color: var(--article-accent); font-size: 14px; }
.chronicles-article-page .chronicles-info-note p{ margin: 0; font-size: 14px; }
.chronicles-article-page .chronicles-requirements-grid{ gap: 20px; margin: 24px 0; }
.chronicles-article-page .chronicles-requirements-grid > section{
  min-width: 0;
  padding: 22px 24px;
  border: 1px solid var(--lore-line);
  background: var(--article-surface);
}
.chronicles-article-page .chronicles-requirements-grid h3{ margin-top: 0; font-size: 19px; }
.chronicles-article-page .chronicles-requirements-grid ul{ margin-bottom: 0; font-size: 14px; }
.chronicles-article-page .chronicles-compare-button,
.chronicles-article-page .chronicles-compare-button:is(:hover,:focus,:active){
  padding: 12px 20px;
  border: 1px solid var(--lore-line);
  background: var(--article-surface);
  color: var(--lore-text);
  box-shadow: none;
  transform: none;
}
.chronicles-article-page .chronicles-compare-button:hover{
  border-color: var(--article-accent);
  color: var(--article-accent);
}
.chronicles-article-page .chronicles-compare-dialog{
  border: 1px solid var(--lore-line);
  border-radius: 0;
  background: var(--article-surface);
  color: var(--lore-text);
}
.chronicles-article-page .chronicles-compare-dialog__head{ border-color: var(--lore-line); }
.chronicles-article-page .chronicles-compare-dialog__head h2{ color: var(--lore-text); font-family: inherit; }
.chronicles-article-page .chronicles-compare-dialog :is(th,td){ border-color: var(--lore-line); }
.chronicles-article-page .chronicles-compare-dialog :is(thead th,tbody th){
  background: transparent;
  color: var(--lore-text);
}
.chronicles-article-page .chronicles-compare-dialog thead th{ border-top: 2px solid var(--article-accent); }
.chronicles-article-page .chronicles-compare-dialog__additional{
  border-color: var(--lore-line);
  background: transparent;
  color: var(--lore-muted);
}
@media(max-width:860px){
  .chronicles-article-page .chronicles-class-intro{ grid-template-columns: 1fr; gap: 20px; }
  .chronicles-article-page .chronicles-requirements-grid{ grid-template-columns: 1fr; }
  .chronicles-article-page .chronicles-requirements-grid > section{ padding: 18px; }
}
@media(max-width:600px){
  .chronicles-article-page .general-head,
  .chronicles-article-page .lore-shell{ width: calc(100% - 32px); }
  .chronicles-article-page .lore-article{ font-size: 15px; line-height: 1.7; }
  .chronicles-article-page .lore-article h2,
  .chronicles-article-page .lore-article h2.news-article-heading{ margin-top: 36px; font-size: 22px; }
  .chronicles-article-page .lore-article > :first-child{ margin-top: 0; }
  .chronicles-article-page .chronicles-lore-doc .lore-article h3{ font-size: 20px; }
  .chronicles-article-page .lore-article :is(h2,h3,h4){ scroll-margin-top: 165px; }
  .chronicles-article-page .plain-figure img{ width: 100%; }
  .chronicles-article-page .chronicles-info-note{ padding: 16px; }
}
