/* Sacralib V2.26 — readable fallback typography and focused content fixes.
   Decorative colors/illustrations are left unchanged. All article changes are
   scoped to the owner's V2 article preview. */

/* Telegram sentence is ordinary prose: do not inherit nowrap from the
   desktop hero. The channel button must remain within the same panel. */
#patch-notesView .patch-notes-hero,
#patch-notesView .patch-notes-hero-top {
  min-width:0!important;max-width:100%!important;
}
#patch-notesView .patch-notes-intro {
  display:block!important;min-width:0!important;max-width:100%!important;
  white-space:normal!important;overflow-wrap:break-word!important;
  word-break:normal!important;
}
#patch-notesView .patch-notes-channel {
  box-sizing:border-box!important;max-width:100%!important;
  white-space:normal!important;overflow-wrap:anywhere!important;
}

/* FAQ category headers are separate article blocks. The editor may have
   saved a small inline blockWidth on an h4 or callout, making a two-line title
   although the full article width is free. Override only in a FAQ article. */
body.sv218-page-theme.codex-article-v2-active .cv2-layout
.article-body:has(.faq-item) :is(h4,.content-callout,.content-callout > strong) {
  box-sizing:border-box!important;width:100%!important;max-width:100%!important;
  min-width:0!important;justify-self:stretch!important;
}
body.sv218-page-theme.codex-article-v2-active .cv2-layout
.article-body:has(.faq-item) :is(h4,.content-callout > strong) {
  white-space:normal!important;overflow-wrap:normal!important;
  word-break:normal!important;
}
@media(min-width:900px) {
  body.sv218-page-theme.codex-article-v2-active .cv2-layout
  .article-body:has(.faq-item) :is(h4,.content-callout > strong) {
    white-space:nowrap!important;font-size:clamp(16px,1.18vw,21px)!important;
  }
}
/* FAQ category banners use article blockquotes (red left stripe),
   not a <strong> title inside callout. Some retain a narrow editor width. */
body.sv218-page-theme.codex-article-v2-active .cv2-layout
.article-body:has(.faq-item) .content-columns:has(.content-column > blockquote) {
  display:grid!important;grid-template-columns:minmax(0,1fr)!important;
  min-width:0!important;max-width:100%!important;width:100%!important;
}
body.sv218-page-theme.codex-article-v2-active .cv2-layout
.article-body:has(.faq-item) :is(.content-column > blockquote,.article-body > blockquote) {
  box-sizing:border-box!important;display:block!important;
  width:100%!important;min-width:0!important;max-width:100%!important;
  justify-self:stretch!important;align-self:start!important;
  margin:0!important;padding:10px 14px!important;
  white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important;
}
body.sv218-page-theme.codex-article-v2-active .cv2-layout
.article-body:has(.faq-item) :is(.content-column,.content-callout,.faq-list) {
  min-width:0!important;max-width:100%!important;
}

/* Weapons from real library item cards only — no changes to armor, skills,
   bestiary, sets, fitting-room or editor. Layout characteristics as concise
   paired cells, with the extensive bonus text retaining full available width. */
body.sv218-page-theme.codex-article-v2-active .cv2-layout
.article-body .database-card-type-items.sv226-weapon-card {
  box-sizing:border-box!important;display:grid!important;
  grid-template-columns:62px minmax(0,1fr)!important;
  align-content:start!important;align-items:start!important;
  gap:8px 12px!important;padding:12px!important;
  width:100%!important;max-width:100%!important;height:auto!important;
  min-height:0!important;
  --card-title-size:1.16rem!important;--card-meta-size:.9rem!important;
  --card-line-font-size:.89rem!important;
}
body.sv218-page-theme.codex-article-v2-active .cv2-layout
.article-body .sv226-weapon-card > .database-card-image {
  box-sizing:border-box!important;grid-column:1!important;grid-row:1!important;
  display:block!important;width:60px!important;height:60px!important;
  min-height:60px!important;max-width:60px!important;
  background-size:contain!important;
}
body.sv218-page-theme.codex-article-v2-active .cv2-layout
.article-body .sv226-weapon-card > .database-card-content {
  display:grid!important;grid-column:2!important;grid-row:1!important;
  grid-template-columns:minmax(0,1fr)!important;
  align-content:start!important;gap:5px!important;min-width:0!important;
  width:100%!important;
}
body.sv218-page-theme.codex-article-v2-active .cv2-layout
.article-body .sv226-weapon-card .database-card-content > strong {
  grid-column:1!important;margin:0!important;line-height:1.15!important;
  font-size:clamp(18px,1.28vw,22px)!important;
}
body.sv218-page-theme.codex-article-v2-active .cv2-layout
.article-body .sv226-weapon-card .database-card-content > span {
  grid-column:1!important;min-width:0!important;
  white-space:normal!important;overflow:visible!important;
  text-overflow:clip!important;font-size:clamp(13px,.98vw,15px)!important;
}
body.sv218-page-theme.codex-article-v2-active .cv2-layout
.article-body .sv226-weapon-card .database-card-lines {
  display:grid!important;grid-column:1!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  align-items:start!important;gap:5px 8px!important;
  min-width:0!important;margin-top:6px!important;padding-top:8px!important;
  border-top:1px solid rgba(109,79,48,.18)!important;
}
body.sv218-page-theme.codex-article-v2-active .cv2-layout
.article-body .sv226-weapon-card .database-card-lines > div {
  box-sizing:border-box!important;display:flex!important;flex-direction:row!important;
  flex-wrap:wrap!important;align-items:baseline!important;
  grid-template-columns:none!important;gap:1px 6px!important;
  min-width:0!important;max-width:100%!important;min-height:0!important;
  margin:0!important;padding:5px 8px!important;
  border:1px solid #e1d2bd!important;background:rgba(255,253,245,.6)!important;
  font-size:clamp(13px,.92vw,15px)!important;line-height:1.3!important;
}
body.sv218-page-theme.codex-article-v2-active .cv2-layout
.article-body .sv226-weapon-card .database-card-lines > div :is(b,span) {
  display:inline!important;min-width:0!important;margin:0!important;
  white-space:normal!important;overflow-wrap:break-word!important;
  word-break:normal!important;line-height:1.35!important;
}
body.sv218-page-theme.codex-article-v2-active .cv2-layout
.article-body .sv226-weapon-card .database-card-lines > div > b {
  color:#793328!important;
}
body.sv218-page-theme.codex-article-v2-active .cv2-layout
.article-body .sv226-weapon-card .database-card-lines > .sv226-weapon-wide {
  grid-column:1 / -1!important;
}
@media(max-width:900px) {
  body.sv218-page-theme.codex-article-v2-active .cv2-layout
  .article-body .sv226-weapon-card .database-card-lines {
    grid-template-columns:minmax(0,1fr)!important;
  }
}
@media(max-width:550px) {
  body.sv218-page-theme.codex-article-v2-active .cv2-layout
  .article-body .sv226-weapon-card {
    grid-template-columns:54px minmax(0,1fr)!important;gap:7px!important;
    padding:9px!important;
  }
  body.sv218-page-theme.codex-article-v2-active .cv2-layout
  .article-body .sv226-weapon-card > .database-card-image {
    width:52px!important;height:52px!important;min-height:52px!important;
  }
}
