.wiki-main-inner {
  max-width: 1120px;
}

.catalog-hero-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.s-link-sub {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 12.5px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

.detail-top-bar {
  margin-bottom: 18px;
}

/* ===== Wiki 2-Column Layout ===== */
.wiki-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

/* Sidebar */
.wiki-sidebar {
  background: rgba(16, 18, 21, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  padding: 16px 14px;
  position: sticky;
  top: 18px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.wiki-sidebar::-webkit-scrollbar {
  width: 4px;
}

.wiki-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.35);
  border-radius: 4px;
}

.wiki-nav-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wiki-nav-heading {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lime);
  padding: 0 8px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wiki-nav-heading small {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 11px;
  color: var(--text-muted);
}

.wiki-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 4px;
  border: 1px solid transparent;
  color: #d6dae0;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.14s ease;
}

.wiki-nav-link small {
  font-size: 11px;
  color: var(--text-muted);
}

.wiki-nav-link:hover:not(.active) {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.wiki-nav-link.active {
  background: rgba(204, 255, 30, 0.1);
  border-color: rgba(204, 255, 30, 0.55);
  color: #ffffff;
  font-weight: 600;
}

/* Main Content */
.wiki-content {
  min-width: 0;
}

.wiki-head {
  margin-bottom: 22px;
}

.wiki-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.sync-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sync-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(16, 18, 21, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 10px;
  border-radius: 4px;
}

.sync-btn {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  background: var(--lime);
  border: none;
  color: #141618;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transform: skewX(-12deg);
  border-radius: 3px;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.sync-btn > span {
  display: inline-block;
  transform: skewX(12deg);
}

.sync-btn:hover:not(:disabled) {
  opacity: 0.9;
}

.sync-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.wiki-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 6px;
}

.wiki-h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(34px, 3.6vw, 48px);
  line-height: 1;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 12px;
}

.wiki-lead {
  font-size: 15.5px;
  line-height: 1.55;
  color: #d7dbe2;
  background: rgba(16, 18, 21, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 3px solid var(--lime);
  border-radius: 4px;
  padding: 14px 18px;
}

/* Prose / Article Content */
.wiki-article {
  background: rgba(16, 18, 21, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 24px 28px;
}

.prose {
  font-size: 14.5px;
  line-height: 1.65;
  color: #e2e6ec;
}

.prose h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 26px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #ffffff;
  margin: 26px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 20px;
  text-transform: uppercase;
  color: var(--lime);
  margin: 20px 0 8px;
}

.prose p {
  margin-bottom: 12px;
}

.prose ul,
.prose ol {
  margin: 8px 0 14px 22px;
}

.prose li {
  margin-bottom: 6px;
}

.prose a {
  color: var(--lime);
  text-decoration: none;
}

.prose a:hover {
  text-decoration: underline;
}

.prose strong {
  color: #ffffff;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 18px;
  font-size: 13.5px;
  background: rgba(12, 14, 16, 0.65);
  border-radius: 6px;
  overflow: hidden;
}

.prose th,
.prose td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  text-align: left;
}

.prose th {
  background: rgba(255, 255, 255, 0.06);
  color: var(--lime);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.04em;
}

/* Inline item cards / chips inside imported guides */
.prose .icards {
  list-style: none;
  margin: 16px 0 20px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 12px;
}

.prose .icard {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(20, 23, 27, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--rare, var(--lime));
  border-radius: 6px;
  padding: 14px 16px;
  margin: 0;
}

.prose .icard-art {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 5px;
  padding: 6px;
}

.prose .icard-art img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.prose .icard-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prose .icard-name {
  font-size: 15.5px;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  line-height: 1.25;
}

.prose .icard-name:hover {
  color: var(--lime);
}

.prose .icard-facts {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 6px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.prose .icard-facts > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.prose .icard-facts dt {
  color: var(--text-muted);
  font-weight: 500;
}

.prose .icard-facts dd {
  margin: 0;
  color: #ffffff;
  font-weight: 600;
  text-align: right;
}

.prose .icard-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.prose .icard-links a {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  background: rgba(204, 255, 30, 0.08);
  border: 1px solid rgba(204, 255, 30, 0.25);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--lime);
  text-decoration: none;
}

.prose .icard-links a:hover {
  background: var(--lime);
  color: #141618;
  text-decoration: none;
}

.prose .ichip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 9px;
  background: rgba(204, 255, 30, 0.08);
  border: 1px solid rgba(204, 255, 30, 0.32);
  border-radius: 4px;
  margin: 0 3px;
  font-size: 13px;
  font-weight: 600;
  vertical-align: middle;
  line-height: 1.35;
}

.prose .ichip img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.prose .icard-note {
  font-size: 12.5px;
  color: #aeb6c2;
  line-height: 1.4;
}

.prose .muted {
  color: var(--text-muted);
}

.prose .sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.prose .maplink {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--lime);
  font-weight: 600;
  font-size: 13.5px;
  margin: 4px 0;
}

/* ===== Price Info Tooltip Button (.sell-info) ===== */
.prose .sell-info {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 6px;
  padding: 0;
  border-radius: 50%;
  background: rgba(204, 255, 30, 0.14);
  border: 1px solid rgba(204, 255, 30, 0.5);
  color: var(--lime);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 800;
  font-style: italic;
  line-height: 1;
  cursor: help;
  vertical-align: middle;
}

.prose .sell-info:hover,
.prose .sell-info:focus {
  background: var(--lime);
  color: #101214;
  outline: none;
}

.prose .sell-info-tip {
  display: none;
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  width: 240px;
  background: #0d0f12;
  border: 1px solid rgba(204, 255, 30, 0.45);
  border-radius: 6px;
  padding: 12px 14px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.78);
  color: #e4e8ee;
  font-style: normal;
  font-weight: 400;
  font-size: 12.5px;
  text-align: left;
  z-index: 60;
  pointer-events: none;
}

.prose .sell-info:hover .sell-info-tip,
.prose .sell-info:focus .sell-info-tip {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.prose .sell-info-tip strong {
  color: var(--lime);
  font-size: 12.5px;
  margin-bottom: 3px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 4px;
}

.prose .sell-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
}

.prose .sell-info-row span {
  color: var(--text-muted);
}

.prose .sell-info-row b {
  color: #ffffff;
}

.prose .sell-info-tip small {
  margin-top: 4px;
  font-size: 11px;
  color: #828a96;
  line-height: 1.35;
}

/* ===== Plantation / Lab Production Grades (.pgrades / .pgrade) ===== */
.prose .pgrades {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 16px 0 22px;
}

.prose .pgrade {
  background: rgba(18, 21, 25, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 3px solid var(--rare, var(--lime));
  border-radius: 6px;
  padding: 16px 18px;
}

.prose .pgrade-head {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--rare, var(--lime));
  margin-bottom: 14px;
}

.prose .pgrade-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.prose .pgrade-steps > li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(12, 14, 17, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 5px;
  padding: 12px 14px;
  margin: 0;
}

.prose .pg-art {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 5px;
  padding: 5px;
}

.prose .pg-art img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.prose .pg-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.prose .pg-name {
  font-weight: 700;
  font-size: 14px;
  color: #ffffff;
}

.prose .pg-count {
  font-size: 12.5px;
  color: #aeb6c2;
}

.prose .pg-price {
  font-size: 13px;
  color: var(--lime);
  font-weight: 600;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

/* ===== Collections (.csets / .cset / .ctier) ===== */
.prose .ctier {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(20, 23, 27, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--lime);
  border-radius: 5px;
  margin: 14px 0 10px;
  cursor: pointer;
}

.prose .ctier-n {
  font-size: 12.5px;
  color: var(--lime);
  font-weight: 700;
}

.prose .csets {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 12px 0 20px;
}

.prose .cset {
  background: rgba(18, 21, 25, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  padding: 14px 16px;
}

.prose .cset-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.prose .cset-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 18px;
  color: var(--text-muted);
}

.prose .cset-reward {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.prose .cset-rname {
  font-weight: 700;
  color: #ffffff;
}

.prose .cset-price {
  font-weight: 700;
  color: var(--lime);
  display: inline-flex;
  align-items: center;
}

.prose .cset-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 8px;
}

.prose .cset-items > li {
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(12, 14, 17, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 2px solid var(--rare, #9a9894);
  border-radius: 4px;
  padding: 7px 9px;
  margin: 0;
}

.prose .cset-art {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prose .cset-art img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.prose .cset-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.prose .cset-name {
  font-size: 12.5px;
  font-weight: 600;
  color: #eef1f5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prose .cset-count {
  font-size: 11.5px;
  color: var(--lime);
  font-weight: 700;
}

/* ===== District / Detail Cards (.dcard) ===== */
.prose .dcard {
  background: rgba(18, 21, 25, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--lime);
  border-radius: 6px;
  padding: 15px 18px;
  margin: 12px 0;
}

.prose .dcard-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 20px;
  color: #ffffff;
  margin-bottom: 10px;
}

.prose .dcard-facts {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0 0 10px;
}

.prose .dcard-facts > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.prose .dcard-facts dt {
  color: var(--text-muted);
}

.prose .dcard-facts dd {
  margin: 0;
  color: #ffffff;
  font-weight: 600;
}

.prose .dcard-need {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
}

/* ===== Barter Recipes (.recipes / .recipe) ===== */
.prose .recipes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0 20px;
}

.prose .recipe {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: rgba(18, 21, 25, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  padding: 12px 16px;
}

.prose .recipe-in,
.prose .recipe-out {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.prose .recipe-arrow {
  color: var(--lime);
  font-weight: 800;
  font-size: 18px;
}

.prose .recipe-paused,
.prose .paused {
  opacity: 0.65;
  border-style: dashed;
}

/* ===== Fills / Cumulative (.fills / .fill) ===== */
.prose .fills {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin: 14px 0 20px;
}

.prose .fill {
  background: rgba(18, 21, 25, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  padding: 14px 16px;
}

.prose .fill-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

/* ===== Scrollable Tables (.cargo-scroll / .cartable / .dtable) ===== */
.prose .cargo-scroll {
  overflow-x: auto;
  margin: 14px 0 18px;
}

.prose .num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ===== Tiles inside updates/articles ===== */
.prose .tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.prose .tile {
  display: flex;
  flex-direction: column;
  background: #121416;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 2px solid var(--rare, var(--lime));
  border-radius: 4px;
  padding: 10px;
  text-decoration: none;
}

.prose .tile-art {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prose .tile-art img {
  max-height: 80px;
  object-fit: contain;
}

.prose .tile-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 8px;
}

.prose .tile-body strong {
  font-size: 13px;
  color: #ffffff;
}

.prose .tile-body small {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* FAQ */
.faq-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 22px;
}

.faq-pill {
  padding: 6px 12px;
  background: rgba(20, 22, 25, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  color: #dde1e6;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.14s ease;
}

.faq-pill:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.faq-sec {
  margin-bottom: 26px;
}

.faq-group-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 24px;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 10px;
}

.faq-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-card {
  background: rgba(16, 18, 21, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  overflow: hidden;
}

.faq-card[open] {
  border-color: rgba(204, 255, 30, 0.4);
}

.faq-card summary {
  padding: 14px 18px;
  font-weight: 600;
  font-size: 15px;
  color: #ffffff;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-card summary::after {
  content: '+';
  color: var(--lime);
  font-size: 20px;
  font-weight: 700;
}

.faq-card[open] summary::after {
  content: '−';
}

.faq-answer {
  padding: 0 18px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 12px;
}

/* Updates */
.updates-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.update-card {
  background: rgba(16, 18, 21, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-left: 3px solid var(--lime);
  border-radius: 6px;
  padding: 18px 22px;
}

.update-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.update-tag {
  background: rgba(204, 255, 30, 0.14);
  color: var(--lime);
  padding: 2px 8px;
  border-radius: 3px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
}

.update-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 26px;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 10px;
}

@media (max-width: 900px) {
  .wiki-layout {
    grid-template-columns: 1fr;
  }

  .wiki-sidebar {
    position: static;
    max-height: none;
  }
}
