/* Horadric affixes database pages (/database/horadric-affixes — S16) + the shared set cards (also in next-season.css for /ptr) */
.hx { margin-top: 2rem; }
.hx-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1rem; padding-bottom: 0.5rem; margin-bottom: 0.75rem; border-bottom: 1px solid var(--border-color); }
.hx-title { margin: 0; font-family: var(--font-heading); font-size: 1.35rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-primary); }
.hx-sub { font-size: 0.85rem; color: var(--text-dimmed); }
.hx-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.hx-tab {
    display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.85rem 0.4rem 0.45rem; cursor: pointer;
    background: rgba(10, 10, 15, 0.55); border: 1px solid rgba(196, 162, 78, 0.2); border-radius: 999px;
    color: var(--text-secondary); font-size: 0.9rem; font-weight: 600; transition: border-color 0.15s, color 0.15s;
}
.hx-tab:hover { border-color: rgba(196, 162, 78, 0.5); color: var(--text-primary); }
.hx-tab.is-on { border-color: #2fc08d; color: var(--text-primary); background: rgba(25, 158, 112, 0.14); }
.hx-tab__icon { width: 32px; height: 32px; object-fit: contain; }
.hx-panel { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1rem; }
.hx-panel[hidden] { display: none; }
.hx-set { display: flex; flex-direction: column; gap: 0.55rem; padding: 1rem 1.15rem 1.1rem; background: rgba(10, 10, 15, 0.55); border: 1px solid rgba(196, 162, 78, 0.18); border-radius: var(--border-radius-lg, 8px); }
.hx-set__name { margin: 0; font-family: var(--font-heading); font-size: 1.1rem; letter-spacing: 0.02em; }
.hx-set__name a { color: #2fc08d; text-decoration: none; }
.hx-set__name a:hover { text-decoration: underline; }
.hx-jewel { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.5rem 0.65rem; background: rgba(25, 158, 112, 0.1); border: 1px solid rgba(25, 158, 112, 0.35); border-radius: 6px; }
.hx-jewel__icon { flex: 0 0 22px; width: 22px; height: 22px; margin-top: 2px; }
.hx-jewel__text { display: block; font-size: 0.92rem; color: var(--text-primary); }
.hx-label { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dimmed); }
.hx-label--gear { margin-top: 0.15rem; }
.hx-gear { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.hx-gear li { position: relative; padding-left: 0.9rem; font-size: 0.9rem; line-height: 1.45; color: var(--text-secondary); }
.hx-gear li::before { content: ''; position: absolute; left: 0; top: 0.58em; width: 5px; height: 5px; transform: rotate(45deg); background: #2fc08d; opacity: 0.85; }
.hx-gear .gt-c_number { color: #e2c48a; font-weight: 600; }
.hx-gear .gt-c_important { color: var(--text-primary); }
.hx-gear--fallback { padding: 0 1.35rem 1.1rem; }
.hx-fallback { margin-top: 1.25rem; }
.hxdb-lead { margin: 0 0 1rem; max-width: 80ch; color: var(--text-secondary); line-height: 1.55; }
.hxdb-jump { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.5rem; }
.hxdb-jump a { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.3rem 0.8rem 0.3rem 0.35rem; border: 1px solid rgba(196, 162, 78, 0.2); border-radius: 999px; color: var(--text-secondary); text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.hxdb-jump a:hover { border-color: #2fc08d; color: var(--text-primary); }
.hxdb-jump img { width: 28px; height: 28px; object-fit: contain; }
.hxdb-class { margin: 0 0 2rem; scroll-margin-top: 90px; }
.hxdb-class__name { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 0.9rem; font-family: var(--font-heading); font-size: 1.35rem; text-transform: uppercase; letter-spacing: 0.03em; }
.hxdb-class__name img { width: 40px; height: 40px; object-fit: contain; }
.hxdb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1rem; }
.hxdb-fallback { padding: 0; }
.hxdb-note { margin: 1rem 0; font-size: 0.85rem; color: var(--text-dimmed); }
.hxdb-detail__grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 1rem; align-items: start; margin-bottom: 1rem; }
.hx-set--big { position: relative; padding-top: 1.25rem; }
.hxdb-detail__class { position: absolute; top: 0.8rem; right: 0.9rem; width: 48px; height: 48px; object-fit: contain; }
.hxdb-detail__bonus p { margin: 0.2rem 0 0.4rem; font-size: 0.92rem; line-height: 1.5; color: var(--text-secondary); }
.hxdb-detail__bonus a { font-size: 0.88rem; font-weight: 700; color: var(--cr-gold, #c4a24e); }
.hxdb-sib { text-decoration: none; }
.hxdb-sib:hover { border-color: #2fc08d; }
.hxdb-sib__n { font-size: 0.85rem; color: var(--text-dimmed); }
.hxdb-back { margin: 1.5rem 0 0; }
@media (max-width: 767px) { .hxdb-detail__grid { grid-template-columns: minmax(0, 1fr); } }

/* Horadric blocks in articles ([horadric-sets], [horadric-examples] — MarkdownRenderer, md-embeds.js); same look as /ptr */
.md-hx { margin: 1.5rem 0; }
.md-hx .hx-set__name { border: 0; padding: 0; }
.hx-db { margin: 1.25rem 0 0; }
.hx-ex { margin-top: 1.5rem; }
.hx-ex__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1.25rem; align-items: start; }
.hx-ex__card { margin: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.hx-ex__card[hidden] { display: none; }
.hx-ex__tip { width: 100%; max-width: 380px; margin: 0 auto; }
.hx-ex__tip .d4tt-chrome { width: 100%; }
.hx-ex__tip .ws-loading { margin: 0; padding: 2rem 1rem; text-align: center; color: var(--text-dimmed); }
.hx-ex__card figcaption { display: flex; align-items: center; gap: 0.5rem; justify-content: center; font-size: 0.88rem; color: var(--text-secondary); text-align: center; }
.hx-ex__class { width: 24px; height: 24px; object-fit: contain; }

/* article base styles (guides-public.css) would add list indents, image margins and h4 spacing inside the blocks */
.md-hx .hx-set__name { margin: 0; }
.md-hx .hx-gear { margin: 0; padding: 0; }
.md-hx .hx-gear li { margin: 0; }
.guide-view__markdown .md-hx img, .guide-view__markdown .md-hx-ex img { margin: 0; border-radius: 0; cursor: default; }
.md-hx .hx-tab { font-family: inherit; }
