/* Scoped presentation for the transferred rules library. */
.sg2-library { --accent: #d85769; }
.sg2-library h1 { font-size: 2.5rem; line-height: 1.15; letter-spacing: 0; overflow-wrap: anywhere; }
.sg2-library h2 { font-size: 1.6rem; letter-spacing: 0; }
.sg2-library h3 { font-size: 1.25rem; letter-spacing: 0; }
.sg2-library .grid-3 h2 { font-size: 1.3rem; }
.sg2-library .card { border-radius: 8px; min-width: 0; }
.sg2-library .card a { overflow-wrap: anywhere; }
.sg2-library .subhero { padding: 2rem 0; }
.sg2-library .article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 2rem; align-items: start; }
.sg2-library .article-body, .sg2-library .meta-panel, .sg2-library .article-content { min-width: 0; }
.sg2-library .article-body { background: transparent; border: 0; border-radius: 0; padding: 0; box-shadow: none; }
.sg2-library .table-wrap { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
.sg2-library table { width: 100%; border-collapse: collapse; }
.sg2-library th, .sg2-library td { padding: .65rem; border: 1px solid var(--line); text-align: left; color: var(--text); }
.sg2-library th { background: #252327; }
.sg2-library td { background: #121416; }
.sg2-library caption { color: var(--muted); text-align: left; padding: .5rem 0; }
.sg2-library .rules-note, .sg2-library .meta-panel { background: #17191b; border: 1px solid var(--line); color: var(--text); padding: 1rem; border-radius: 8px; }
.sg2-library .rules-note p, .sg2-library .article-body h4 { color: var(--text); }
.sg2-library .btn { display: inline-block; padding: .65rem .8rem; border: 1px solid #743040; border-radius: 6px; }
.sg2-library img { height: auto; max-width: 100%; }
.sg2-library .breadcrumb { display: flex; flex-wrap: wrap; gap: .4rem; }
.sg2-library a:focus-visible, .sg2-library .table-wrap:focus-visible { outline: 2px solid #f0c0c5; outline-offset: 3px; }
@media (max-width: 760px) {
  .sg2-library .article-layout { grid-template-columns: minmax(0, 1fr); }
  .sg2-library h1 { font-size: 2rem; }
  .sg2-library .wrap { width: calc(100% - 2rem); }
  .sg2-library .topbar-inner { flex-wrap: wrap; gap: .7rem; padding-block: .6rem; }
  .sg2-library .nav { gap: .5rem .9rem; }
  .sg2-library .table-wrap { scrollbar-width: auto; }
}
