/* ============================================================
   Anima Mundi — the photo-led Explore pages: Discover, Fiction and Theories.
   Shared kit (xk-), Discover (dx-), Fiction (fx-), Theories (tx-).
   ============================================================ */
:root { --xk-ink: #0a0d17; --xk-card: #10141f; --xk-card2: #141a28; --xk-line: var(--line, #26304a); --xk-text: var(--ink-text, #e9e4d6); --xk-dim: var(--ink-dim, #9aa3b8); --xk-faint: var(--ink-faint, #67708a); --xk-gold: var(--gold, #c9a24b); --xk-goldb: var(--gold-bright, #e7c877); }
html[data-theme=light] { --xk-ink: #fbf8f1; --xk-card: #fffdf8; --xk-card2: #f4efe3; }

/* ---------- photos ---------- */
.xk-ph { position: relative; display: block; overflow: hidden; background: radial-gradient(120% 90% at 30% 20%, color-mix(in srgb, var(--xc, #c9a24b) 30%, #1a2133), #0c1019 75%); background-size: cover; background-position: center; }
html[data-theme=light] .xk-ph { background-color: #e9e2d2; }
.xk-img { position: absolute; inset: 0; background-size: cover; background-position: center 30%; opacity: 0; transition: opacity .5s ease; }
.xk-ph.xk-on .xk-img { opacity: 1; }
.xk-ph.xk-on .xk-fb { opacity: 0; }
.xk-fb { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: color-mix(in srgb, var(--xc, #c9a24b) 80%, #fff); opacity: .75; transition: opacity .4s; }
.xk-fb svg { filter: drop-shadow(0 2px 8px rgba(0,0,0,.4)); }
.xk-credit { position: absolute; right: 6px; bottom: 6px; z-index: 2; max-width: calc(100% - 12px); font: 500 10px/1.3 'Manrope', system-ui, sans-serif; color: rgba(255,255,255,.85); background: rgba(5,7,12,.62); padding: 3px 7px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xk-credit a { color: inherit; text-decoration: underline; text-decoration-color: rgba(255,255,255,.35); }

/* ---------- chips ---------- */
.xk-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.xk-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--xk-line); background: transparent; color: var(--xk-dim); font: 500 13px 'Manrope', system-ui, sans-serif; cursor: pointer; transition: border-color .15s, color .15s, background .15s, transform .15s; }
.xk-chip:hover { border-color: var(--xk-gold); color: var(--xk-text); }
.xk-chip:active { transform: scale(.97); }
.xk-chip em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--xk-faint); background: rgba(255,255,255,.06); border-radius: 999px; padding: 1px 7px; }
.xk-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--xc); }
.xk-chip.on { background: var(--xk-gold); border-color: var(--xk-gold); color: #1a1206; font-weight: 700; }
.xk-chip.on em { background: rgba(0,0,0,.14); color: #1a1206; }
.xk-chip.zero { opacity: .45; }
.xk-chip:focus-visible, .dx-btn:focus-visible, .dx-fb:focus-visible, .dx-card:focus-visible, .xk-lk:focus-visible, .fx-card:focus-visible, .tx-card:focus-visible { outline: 2px solid var(--xk-goldb); outline-offset: 2px; }

/* ---------- link cards ---------- */
.xk-lks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.xk-lk { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 6px 10px 6px 6px; border-radius: 12px; border: 1px solid var(--xk-line); background: var(--xk-card); color: var(--xk-text); text-align: left; cursor: pointer; transition: transform .18s, border-color .18s, box-shadow .18s; font: inherit; }
.xk-lk:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--xc) 60%, transparent); box-shadow: 0 8px 22px rgba(0,0,0,.3); }
.xk-lk:active { transform: translateY(0) scale(.98); }
.xk-lk-ph { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 9px; }
.xk-lk-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.xk-lk-t b { font: 600 13.5px/1.3 'Manrope', system-ui, sans-serif; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.xk-lk-t em { font: 500 11px 'Manrope', system-ui, sans-serif; font-style: normal; color: var(--xc); letter-spacing: .02em; }
.xk-lk-go { color: var(--xk-faint); }

/* ---------- toast and motion ---------- */
.xk-toast { position: fixed; left: 50%; bottom: 28px; z-index: 4000; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; max-width: min(440px, calc(100vw - 32px)); padding: 11px 16px; border-radius: 12px; background: #1b2232; color: #f2ecdc; border: 1px solid var(--xk-gold); font: 500 13.5px/1.4 'Manrope', system-ui, sans-serif; box-shadow: 0 12px 36px rgba(0,0,0,.5); transition: opacity .25s, transform .25s; }
.xk-toast.on { opacity: 1; transform: translate(-50%, 0); }
.xk-rise { opacity: 0; transform: translateY(14px); transition: opacity .45s ease, transform .45s ease; }
.xk-rise.xk-up { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .xk-rise { opacity: 1; transform: none; transition: none; }
  .xk-lk, .dx-card, .fx-card, .tx-card, .xk-chip, .xk-img, .dx-spot { transition: none !important; animation: none !important; }
}

/* ================= DISCOVER ================= */
.dx-box { width: min(1180px, 100%); }
.dx { font-family: 'Manrope', system-ui, sans-serif; color: var(--xk-text); }
.dx-head { display: flex; gap: 14px 24px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; margin: 4px 0 16px; }
.dx-h { font: 500 clamp(22px, 3vw, 30px)/1.15 'Fraunces', Georgia, serif; margin: 0 0 6px; color: var(--xk-text); }
.dx-sub { margin: 0; color: var(--xk-dim); font-size: 14px; max-width: 640px; }
.dx-sub b { color: var(--xk-goldb); }
.dx-how { max-width: 520px; font-size: 13px; color: var(--xk-dim); }
.dx-how summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; border: 1px solid var(--xk-line); border-radius: 999px; color: var(--xk-dim); font-weight: 600; }
.dx-how summary::-webkit-details-marker { display: none; }
.dx-how[open] summary { color: var(--xk-gold); border-color: var(--xk-gold); }
.dx-how p { margin: 10px 0 0; line-height: 1.55; }

/* the two ends */
.dx-pair { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; height: 128px; background: #05070c; }
.dx-pair.big { height: clamp(180px, 30vw, 280px); border-radius: 14px; overflow: hidden; }
.dx-end { position: relative; min-width: 0; }
.dx-end .xk-ph { position: absolute; inset: 0; }
.dx-end::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,6,12,0) 40%, rgba(4,6,12,.85)); pointer-events: none; }
.dx-endl { position: absolute; left: 8px; right: 8px; bottom: 6px; z-index: 1; font: 600 11.5px/1.25 'Manrope', system-ui, sans-serif; color: #f2ecdc; text-shadow: 0 1px 4px rgba(0,0,0,.8); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dx-end:last-of-type .dx-endl { text-align: right; }
.dx-endc { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; display: flex; flex-direction: column; gap: 2px; text-shadow: 0 1px 6px rgba(0,0,0,.9); }
.dx-end:nth-child(2) .dx-endc { text-align: right; }
.dx-endc b { font: 500 clamp(15px, 2vw, 20px)/1.2 'Fraunces', Georgia, serif; color: #f6efdc; }
.dx-endc span { font-size: 12px; color: rgba(242,236,220,.8); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.dx-pair.big .xk-credit { bottom: auto; top: 8px; }
.dx-pair.big .dx-end:first-child .xk-credit { right: auto; left: 8px; }
.dx-knot { position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -50%); width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #0b0f19; color: var(--c); border: 2px solid var(--c); box-shadow: 0 0 0 4px rgba(5,7,12,.6), 0 6px 18px rgba(0,0,0,.5); }
.dx-pair.big .dx-knot { width: 52px; height: 52px; }

/* the type label, meters and the chain */
.dx-type { display: inline-flex; align-items: center; gap: 5px; font: 700 10.5px 'Manrope', system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--c); }
.dx-meter { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--xk-dim); }
.dx-ml { flex: 0 0 auto; width: 58px; font-weight: 600; }
.dx-mt { flex: 1; height: 6px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; display: flex; }
.dx-mt b { display: block; height: 100%; background: var(--m, var(--xk-gold)); border-radius: 999px; transition: width .6s ease; }
.dx-meter em { flex: 0 0 auto; min-width: 62px; text-align: right; font-style: normal; font-weight: 700; color: var(--m, var(--xk-gold)); }
.dx-meter.big { font-size: 13px; }
.dx-meter.big .dx-mt { height: 9px; }
.dx-vm .dx-mt b { border-radius: 0; }
.dx-vm b.y { background: #7fd18b; }
.dx-vm b.n { background: #e0645a; }
.dx-vm em { color: var(--xk-dim); }
.dx-chain { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 0; margin: 8px 0 6px; font-size: 11.5px; line-height: 1.25; }
.dx-cn { max-width: 46%; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--xk-line); color: var(--xk-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dx-cn.mid { border-color: color-mix(in srgb, var(--c) 55%, transparent); color: var(--c); background: color-mix(in srgb, var(--c) 10%, transparent); }
.dx-cl { flex: 0 0 14px; height: 2px; background: color-mix(in srgb, var(--c) 60%, transparent); }
.dx-gap { font-size: 11.5px; color: var(--xk-faint); margin: 0 0 8px; }

/* spotlight */
.dx-spot { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 22px; align-items: center; padding: 14px; margin: 0 0 18px; border-radius: 18px; border: 1px solid color-mix(in srgb, var(--c) 35%, var(--xk-line)); background: linear-gradient(135deg, color-mix(in srgb, var(--c) 9%, var(--xk-card)), var(--xk-card)); }
.dx-spot.dx-flip { animation: dxFlip .45s ease; }
@keyframes dxFlip { from { opacity: .2; transform: translateY(10px) scale(.99); } to { opacity: 1; transform: none; } }
.dx-sb h3 { font: 500 clamp(19px, 2.4vw, 25px)/1.22 'Fraunces', Georgia, serif; margin: 8px 0 4px; color: var(--xk-text); }
.dx-sact { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
.dx-sact .dx-votes { margin-left: auto; }

/* buttons */
.dx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 9px 16px; border-radius: 11px; border: 1px solid var(--xk-line); background: rgba(255,255,255,.03); color: var(--xk-text); font: 600 13.5px 'Manrope', system-ui, sans-serif; cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.dx-btn:hover { border-color: var(--xk-gold); color: var(--xk-goldb); }
.dx-btn:active { transform: scale(.97); }
.dx-btn.pri { background: var(--xk-gold); border-color: var(--xk-gold); color: #1a1206; }
.dx-btn.pri:hover { background: var(--xk-goldb); color: #1a1206; }
.dx-btn.sm { min-height: 36px; padding: 6px 12px; font-size: 12.5px; }
.dx-btn[aria-pressed=true] { color: var(--xk-goldb); border-color: var(--xk-gold); }
.dx-ib { width: 40px; height: 40px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--xk-line); background: transparent; color: var(--xk-dim); cursor: pointer; font-size: 18px; }
.dx-ib:hover:not([disabled]) { color: var(--xk-goldb); border-color: var(--xk-gold); }
.dx-ib[disabled] { opacity: .35; cursor: default; }
.dx-ib.on { color: #1a1206; background: var(--xk-gold); border-color: var(--xk-gold); }
.dx-votes { display: inline-flex; border: 1px solid var(--xk-line); border-radius: 11px; overflow: hidden; }
.dx-v { display: inline-flex; align-items: center; gap: 5px; min-height: 40px; padding: 6px 11px; border: 0; background: transparent; color: var(--xk-dim); font: 600 12.5px 'Manrope', system-ui, sans-serif; cursor: pointer; transition: background .15s, color .15s; }
.dx-v + .dx-v { border-left: 1px solid var(--xk-line); }
.dx-v em { font-style: normal; font-size: 11px; color: var(--xk-faint); }
.dx-v.up:hover, .dx-v.up.on { color: #7fd18b; background: rgba(127,209,139,.1); }
.dx-v.down:hover, .dx-v.down.on { color: #f08a7e; background: rgba(224,100,90,.1); }
.dx-v.on em { color: inherit; }
.dx-votes.big { margin: 4px 0 6px; }
.dx-votes.big .dx-v { min-height: 46px; padding: 8px 18px; font-size: 14px; }

/* tools: search, sort, themes, facets */
.dx-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.dx-search { flex: 1 1 280px; display: flex; align-items: center; gap: 8px; padding: 0 12px; min-height: 44px; border-radius: 12px; border: 1px solid var(--xk-line); background: rgba(255,255,255,.02); color: var(--xk-faint); }
.dx-search:focus-within { border-color: var(--xk-gold); }
.dx-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--xk-text); font: 14px 'Manrope', system-ui, sans-serif; outline: none; min-height: 40px; }
.dx-seg { display: flex; flex-wrap: nowrap; overflow-x: auto; border: 1px solid var(--xk-line); border-radius: 12px; padding: 3px; gap: 2px; scrollbar-width: none; max-width: 100%; }
.dx-seg::-webkit-scrollbar { display: none; }
.dx-seg button { flex: 0 0 auto; min-height: 36px; padding: 6px 11px; border: 0; border-radius: 9px; background: transparent; color: var(--xk-dim); font: 600 12.5px 'Manrope', system-ui, sans-serif; cursor: pointer; white-space: nowrap; }
.dx-seg button.on { background: rgba(201,162,75,.16); color: var(--xk-goldb); }
.dx-themes { margin-bottom: 8px; }
.dx-types { margin: 0 0 8px; padding-left: 10px; border-left: 2px solid rgba(201,162,75,.3); }
.dx-types .xk-chip { min-height: 32px; font-size: 12.5px; }
.dx-facets { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px; }
.dx-facet { position: relative; }
.dx-fb { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 6px 12px; border-radius: 10px; border: 1px dashed var(--xk-line); background: transparent; color: var(--xk-dim); font: 500 12.5px 'Manrope', system-ui, sans-serif; cursor: pointer; }
.dx-fb b { color: var(--xk-text); font-weight: 700; }
.dx-fb em { font-style: normal; font-size: 11px; color: var(--xk-faint); }
.dx-fb:hover, .dx-fb[aria-expanded=true] { border-color: var(--xk-gold); border-style: solid; }
.dx-facet.set .dx-fb, .dx-savedtab.on { border-style: solid; border-color: var(--xk-gold); background: rgba(201,162,75,.1); }
.dx-facet.set .dx-fb b, .dx-savedtab.on b { color: var(--xk-goldb); }
.dx-pop { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; width: max-content; max-width: min(420px, 86vw); padding: 10px; border-radius: 14px; border: 1px solid var(--xk-line); background: #121827; box-shadow: 0 18px 44px rgba(0,0,0,.55); animation: dxFlip .18s ease; }
html[data-theme=light] .dx-pop { background: #fffdf8; }
.dx-status { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 0 12px; font-size: 13px; color: var(--xk-dim); }
.dx-status b { color: var(--xk-text); }
.dx-clear { border: 0; background: none; color: var(--xk-gold); font: 600 13px 'Manrope', system-ui, sans-serif; cursor: pointer; min-height: 36px; text-decoration: underline; text-underline-offset: 3px; }

/* the grid of cards */
.dx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.dx-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 16px; border: 1px solid var(--xk-line); background: var(--xk-card); cursor: pointer; transition: opacity .45s ease, transform .2s ease, border-color .2s, box-shadow .2s; }
.dx-card.xk-up:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 55%, transparent); box-shadow: 0 14px 32px rgba(0,0,0,.4); }
.dx-card.xk-up:active { transform: translateY(-1px) scale(.99); }
.dx-cb { display: flex; flex-direction: column; flex: 1; padding: 12px 14px 12px; }
.dx-cb h3 { font: 500 16.5px/1.28 'Fraunces', Georgia, serif; margin: 6px 0 0; color: var(--xk-text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dx-cb .dx-meter { margin-top: auto; padding-top: 4px; }
.dx-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.dx-more { display: flex; justify-content: center; margin: 18px 0 6px; }
.dx-empty { text-align: center; padding: 40px 16px; color: var(--xk-dim); }
.dx-empty svg { color: var(--xk-faint); }

/* detail */
.dx-d { max-width: 860px; margin: 0 auto; }
.dx-dnav { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--xk-faint); font-size: 12.5px; }
.dx-dnav span { margin-left: auto; }
.dx-back { min-height: 40px; padding: 6px 12px 6px 8px; border-radius: 10px; border: 1px solid var(--xk-line); background: transparent; color: var(--xk-text); font: 600 13px 'Manrope', system-ui, sans-serif; cursor: pointer; }
.dx-back:hover { border-color: var(--xk-gold); color: var(--xk-goldb); }
.dx-d > .dx-type { margin-top: 18px; }
.dx-dt { font: 500 clamp(22px, 3.2vw, 32px)/1.18 'Fraunces', Georgia, serif; margin: 6px 0 14px; color: var(--xk-text); }
.dx-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.dx-stat { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--xk-line); background: var(--xk-card); }
.dx-stat .dx-meter { flex-wrap: wrap; }
.dx-stat .dx-ml { width: auto; flex: 1 1 auto; }
.dx-stat .dx-mt { order: 3; flex: 1 1 100%; }
.dx-lead { font-size: 15.5px; line-height: 1.65; color: var(--xk-text); margin: 0 0 12px; }
.dx-sec { margin: 22px 0 0; padding-top: 16px; border-top: 1px solid var(--xk-line); }
.dx-sec h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font: 600 12px 'Manrope', system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--xk-gold); }
.dx-steps { list-style: none; margin: 0 0 10px; padding: 0; display: flex; align-items: flex-start; gap: 0; overflow-x: auto; scrollbar-width: thin; }
.dx-steps li { position: relative; flex: 1 1 0; min-width: 130px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 0 6px; }
.dx-steps li::before { content: ''; position: absolute; top: 19px; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 50%, transparent), color-mix(in srgb, var(--c) 50%, transparent)); z-index: 0; }
.dx-steps li:first-child::before { left: 50%; }
.dx-steps li:last-child::before { right: 50%; }
.dx-sdot { position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #0b0f19; border: 2px solid var(--xc); color: var(--xc); }
.dx-steps li.mid .dx-sdot { width: 34px; height: 34px; margin-top: 3px; border-style: dashed; }
.dx-steps b { font: 600 13px/1.3 'Manrope', system-ui, sans-serif; color: var(--xk-text); }
.dx-steps em { font-style: normal; font-size: 11px; color: var(--xc); }
.dx-ev { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dx-ev li { position: relative; padding: 10px 12px 10px 36px; border-radius: 10px; background: var(--xk-card); border: 1px solid var(--xk-line); font-size: 14px; line-height: 1.5; }
.dx-ev li::before { content: ''; position: absolute; left: 13px; top: 15px; width: 10px; height: 10px; border-radius: 3px; background: var(--c); opacity: .8; }
.dx-caution ul { margin: 0; padding-left: 20px; color: var(--xk-dim); font-size: 14px; line-height: 1.6; }
.dx-caution li::marker { color: #e0904a; }
.dx-note { margin: 0 0 10px; color: var(--xk-dim); font-size: 13px; line-height: 1.5; }
.dx-doc { list-style: none; margin: 0; padding: 0 0 0 4px; }
.dx-doc li { position: relative; padding: 0 0 12px 22px; }
.dx-doc li::before { content: ''; position: absolute; left: 5px; top: 12px; bottom: -2px; width: 2px; background: var(--xk-line); }
.dx-doc li:last-child::before { display: none; }
.dx-dn { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 4px 10px 4px 0; border: 0; background: none; color: var(--xk-text); font: 600 14px 'Manrope', system-ui, sans-serif; cursor: pointer; text-align: left; }
.dx-dn i { position: absolute; left: 0; top: 11px; width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px #0a0d17; }
.dx-dn:hover { color: var(--xk-goldb); }
.dx-why { display: block; font-size: 12.5px; color: var(--xk-dim); line-height: 1.45; }
.dx-endcards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.dx-endcard { display: flex; gap: 12px; padding: 10px; border-radius: 14px; border: 1px solid var(--xk-line); background: var(--xk-card); }
.dx-endcard .xk-lk-ph { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 10px; }
.dx-ect { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dx-ect b { font: 500 15px/1.25 'Fraunces', Georgia, serif; }
.dx-ect em { font-style: normal; font-size: 11.5px; color: var(--xc); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.dx-eca { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.dx-mini { display: inline-flex; align-items: center; gap: 5px; min-height: 34px; padding: 4px 10px; border-radius: 9px; border: 1px solid var(--xk-line); background: transparent; color: var(--xk-text); font: 600 12px 'Manrope', system-ui, sans-serif; cursor: pointer; }
.dx-mini:hover { border-color: var(--xk-gold); color: var(--xk-goldb); }
.dx-tests { display: flex; flex-wrap: wrap; gap: 8px; }
.dx-dact { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 8px; padding-top: 16px; border-top: 1px solid var(--xk-line); }

@media (max-width: 760px) {
  .dx-spot { grid-template-columns: 1fr; gap: 12px; padding: 10px; }
  .dx-sact .dx-votes { margin-left: 0; }
  .dx-stats { grid-template-columns: 1fr; gap: 6px; }
  .dx-endcards { grid-template-columns: 1fr; }
  .dx-steps { flex-direction: column; align-items: stretch; }
  .dx-steps li { flex-direction: row; text-align: left; min-width: 0; gap: 10px; padding: 0 0 12px; align-items: center; flex-wrap: wrap; }
  .dx-steps li::before { top: 0; bottom: 0; left: 19px; right: auto; width: 2px; height: auto; }
  .dx-steps li:first-child::before { top: 20px; left: 19px; }
  .dx-steps li:last-child::before { bottom: auto; height: 20px; right: auto; }
  .dx-steps li.mid .dx-sdot { margin: 0 3px; }
  .dx-steps em { flex-basis: 100%; padding-left: 50px; margin-top: -6px; }
  .dx-pair { height: 116px; }
  .dx-dact .dx-btn { flex: 1 1 calc(50% - 8px); }
}
@media (max-width: 420px) {
  .dx-grid { grid-template-columns: 1fr; }
  .dx-sact .dx-btn { flex: 1 1 100%; }
}

/* ---------- honesty and the invitation to experts ---------- */
.dx-honest ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 13.5px; line-height: 1.55; color: var(--xk-dim); }
.dx-honest b { color: var(--xk-text); font-weight: 600; }
.xk-inv { margin: 24px 0 8px; padding: 16px; border-radius: 16px; border: 1px solid rgba(201,162,75,.35); background: linear-gradient(135deg, rgba(201,162,75,.09), rgba(201,162,75,.02)); }
.xk-inv-h { display: flex; gap: 12px; align-items: flex-start; color: var(--xk-gold); }
.xk-inv-h svg { flex: 0 0 auto; margin-top: 3px; }
.xk-inv-h b { display: block; font: 500 17px/1.3 'Fraunces', Georgia, serif; color: var(--xk-text); }
.xk-inv-h p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--xk-dim); }
.xk-fields { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 0 0 28px; }
.xk-fields span { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--xk-faint); margin-right: 4px; }
.xk-fields em { font-style: normal; font-size: 12px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--xk-line); color: var(--xk-text); }
.xk-inv-a { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0 28px; }
@media (max-width: 520px) { .xk-fields, .xk-inv-a { margin-left: 0; } .xk-inv-a .dx-btn { flex: 1 1 100%; } }

/* ================= FICTION ================= */
#fictionBody { max-width: 1240px !important; width: 100%; margin: 0 auto; padding: 22px clamp(14px, 3vw, 32px) 60px !important; box-sizing: border-box; }
.fx { font-family: 'Manrope', system-ui, sans-serif; color: var(--xk-text); }
.fx-hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 28px; margin-bottom: 10px; }
.fx-ht { flex: 1 1 420px; }
.fx-eyebrow { display: inline-flex; align-items: center; gap: 6px; font: 700 11px 'Manrope', system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--xk-gold); }
.fx-ht h2 { font: 500 clamp(28px, 4.4vw, 46px)/1.08 'Fraunces', Georgia, serif; margin: 8px 0 8px; color: var(--xk-text); }
.fx-ht p { margin: 0; max-width: 620px; color: var(--xk-dim); font-size: 15px; line-height: 1.55; }
.fx-stats { display: flex; gap: 10px; }
.fx-stats div { min-width: 92px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--xk-line); background: var(--xk-card); }
.fx-stats b { display: block; font: 500 26px/1 'Fraunces', Georgia, serif; color: var(--xk-goldb); }
.fx-stats span { font-size: 11.5px; color: var(--xk-dim); }
.fx-tl { margin: 10px 0 16px; padding: 10px 12px 8px; border-radius: 16px; border: 1px solid var(--xk-line); background: linear-gradient(180deg, rgba(201,162,75,.05), transparent); }
.fx-tl svg { display: block; width: 100%; height: auto; max-height: 190px; overflow: visible; }
.fx-axis { stroke: rgba(201,162,75,.45); stroke-width: 1.5; }
.fx-ticks line { stroke: rgba(201,162,75,.45); }
.fx-ticks text { fill: var(--xk-faint); font: 11px 'Manrope', system-ui, sans-serif; text-anchor: middle; }
.fx-arc { fill: none; stroke-width: 2; opacity: .55; cursor: pointer; transition: opacity .15s, stroke-width .15s; }
.fx-arc:hover { opacity: 1; stroke-width: 3.5; }
.fx-dot { cursor: pointer; transition: r .15s; }
.fx-dot:hover { r: 7; }
.fx-dot.real { pointer-events: none; }
.fx-tlkey { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 11.5px; color: var(--xk-faint); padding: 2px 4px; }
.fx-tlkey i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.fx-tlkey i.o { border: 2px solid var(--xk-gold); }
.fx-tlkey i.f { background: var(--xk-gold); }
.fx-tools { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.fx-frow { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.fx-fl { flex: 0 0 82px; padding-top: 10px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--xk-faint); }
.fx-frow .xk-chips { flex: 1; }
.fx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.fx-card { position: relative; display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; border: 1px solid var(--xk-line); background: var(--xk-card); cursor: pointer; transition: opacity .45s ease, transform .2s ease, border-color .2s, box-shadow .2s; }
.fx-card.xk-up:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--c) 55%, transparent); box-shadow: 0 16px 34px rgba(0,0,0,.45); }
.fx-card.xk-up:active { transform: translateY(-1px) scale(.99); }
.fx-poster { aspect-ratio: 2 / 3; width: 100%; }
.fx-poster .xk-img { background-position: center top; }
.fx-badge { position: absolute; top: 8px; left: 8px; z-index: 2; padding: 3px 9px; border-radius: 999px; font: 700 10.5px 'Manrope', system-ui, sans-serif; color: #10131b; background: var(--c); box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.fx-badge.in { position: static; display: inline-block; }
.fx-cb { display: flex; flex-direction: column; flex: 1; padding: 10px 12px 12px; }
.fx-med { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c); }
.fx-cb h3 { font: 500 15.5px/1.25 'Fraunces', Georgia, serif; margin: 4px 0 2px; color: var(--xk-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fx-by { font-size: 12px; color: var(--xk-dim); }
.fx-mini { margin-top: auto; padding-top: 10px; }
.fx-mt { position: relative; height: 6px; border-radius: 999px; background: rgba(255,255,255,.08); }
.fx-mt b { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: color-mix(in srgb, var(--c) 70%, transparent); }
.fx-mt i { position: absolute; top: 50%; width: 10px; height: 10px; border-radius: 50%; transform: translate(-50%, -50%); }
.fx-mt i.o { background: #0a0d17; border: 2px solid var(--c); }
.fx-mt i.f { background: var(--c); }
.fx-mt.big { height: 8px; margin-top: 4px; }
.fx-mt.big i { width: 14px; height: 14px; }
.fx-my { display: flex; justify-content: space-between; align-items: baseline; gap: 4px; margin-top: 5px; font-size: 11px; color: var(--xk-dim); font-variant-numeric: tabular-nums; }
.fx-my em { font-style: normal; color: var(--c); font-weight: 600; text-align: center; }
.fx-foot { margin-top: 26px; }
.fx-box { width: min(900px, 100%); }
.fx-d { color: var(--xk-text); font-family: 'Manrope', system-ui, sans-serif; }
.fx-dtop { display: grid; grid-template-columns: minmax(150px, 240px) 1fr; gap: 22px; align-items: start; }
.fx-dposter { aspect-ratio: 2 / 3; border-radius: 14px; box-shadow: 0 14px 36px rgba(0,0,0,.5); }
.fx-dposter .xk-img { background-position: center top; }
.fx-dhead h2 { font: 500 clamp(24px, 3.4vw, 34px)/1.15 'Fraunces', Georgia, serif; margin: 10px 0 4px; }
.fx-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 12px; }
.fx-side { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--xk-line); background: var(--xk-card); }
.fx-side span { display: flex; align-items: center; gap: 6px; font: 700 11px 'Manrope', system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--xk-dim); }
.fx-side.real { border-color: color-mix(in srgb, var(--c) 45%, var(--xk-line)); }
.fx-side.real span { color: var(--c); }
.fx-side p { margin: 6px 0 0; font-size: 14px; line-height: 1.55; }
.fx-rel { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.fx-rc { display: flex; flex-direction: column; gap: 4px; padding: 0; border: 0; background: none; color: var(--xk-text); text-align: left; cursor: pointer; font: inherit; }
.fx-rph { aspect-ratio: 2 / 3; border-radius: 10px; transition: transform .18s; }
.fx-rc:hover .fx-rph { transform: translateY(-3px); }
.fx-rc b { font: 500 13px/1.25 'Fraunces', Georgia, serif; }
.fx-rc em { font-style: normal; font-size: 11px; color: var(--xk-faint); }
@media (max-width: 640px) {
  #fictionBody { padding-top: 14px !important; }
  .fx-stats { width: 100%; }
  .fx-stats div { flex: 1; min-width: 0; }
  .fx-frow { flex-direction: column; gap: 4px; }
  .fx-fl { padding-top: 0; flex-basis: auto; }
  .fx-frow .xk-chips { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 4px; scrollbar-width: none; }
  .fx-frow .xk-chip { flex: 0 0 auto; }
  .fx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .fx-cb { padding: 8px 9px 10px; }
  .fx-cb h3 { font-size: 14px; }
  .fx-dtop { grid-template-columns: 1fr; gap: 14px; }
  .fx-dposter { width: 150px; }
  .fx-two { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .fx-tl { overflow-x: auto; }
  .fx-tl svg { min-width: 760px; max-height: none; }
  .fx-tlkey { position: sticky; left: 0; }
}

/* ================= THEORIES ================= */
.tx-box { width: min(1180px, 100%); }
.tx { font-family: 'Manrope', system-ui, sans-serif; color: var(--xk-text); }
.tx-head { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: flex-start; justify-content: space-between; margin: 4px 0 12px; }
.tx-head > div { flex: 1 1 420px; }
.tx-h { font: 500 clamp(22px, 3vw, 30px)/1.15 'Fraunces', Georgia, serif; margin: 0 0 6px; }
.tx-sub { margin: 0; max-width: 700px; color: var(--xk-dim); font-size: 14px; line-height: 1.55; }
.tx-sub b { color: var(--xk-goldb); }
.tx-scale { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 16px; font-size: 11.5px; color: var(--xk-dim); }
.tx-scale span { display: inline-flex; align-items: center; gap: 6px; }
.tx-scale i { display: inline-block; width: 30px; height: 6px; border-radius: 999px; background: rgba(255,255,255,.08); position: relative; overflow: hidden; }
.tx-scale span i { background: linear-gradient(90deg, var(--c) 0 var(--w, 100%), rgba(255,255,255,.08) 0); }
.tx-scale span.faith i { background: repeating-linear-gradient(135deg, var(--c) 0 4px, transparent 4px 7px); }
.tx-cats { margin-bottom: 8px; }
.tx-stats { margin-bottom: 10px; }
.tx-stats .xk-chip { min-height: 32px; font-size: 12.5px; }
.tx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.tx-card { position: relative; display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; border: 1px solid var(--xk-line); background: var(--xk-card); cursor: pointer; transition: opacity .45s ease, transform .2s ease, border-color .2s, box-shadow .2s; }
.tx-card.xk-up:hover { transform: translateY(-4px); border-color: rgba(201,162,75,.5); box-shadow: 0 14px 32px rgba(0,0,0,.42); }
.tx-card.xk-up:active { transform: translateY(-1px) scale(.99); }
.tx-cover { aspect-ratio: 16 / 10; width: 100%; }
.tx-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,6,12,.55), rgba(4,6,12,0) 40%); pointer-events: none; }
.tx-ccat { position: absolute; top: 9px; left: 10px; z-index: 2; max-width: calc(100% - 110px); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; display: inline-flex; align-items: center; gap: 5px; font: 700 10px 'Manrope', system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #f2ecdc; text-shadow: 0 1px 4px rgba(0,0,0,.8); }
.tx-ccat.in { position: static; max-width: none; white-space: normal; color: var(--xk-gold); text-shadow: none; }
.tx-year { position: absolute; top: 8px; right: 9px; z-index: 2; font: 600 11px 'Manrope', system-ui, sans-serif; color: #f2ecdc; background: rgba(5,7,12,.6); border-radius: 999px; padding: 2px 8px; }
.tx-cb { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 12px 14px 14px; }
.tx-cb h3 { margin: 0; font: 500 17px/1.25 'Fraunces', Georgia, serif; }
.tx-spread { display: flex; gap: 3px; height: 7px; }
.tx-spread i { flex: 1; border-radius: 999px; }
.tx-cm { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 11.5px; color: var(--xk-dim); }
.tx-cm em { font-style: normal; font-weight: 700; color: var(--c); }
.tx-best { margin-top: auto; font-size: 12.5px; line-height: 1.4; color: var(--xk-text); }
.tx-best span { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--xk-faint); }
.tx-d { max-width: 900px; margin: 0 auto; }
.tx-hero { position: relative; border-radius: 16px; overflow: hidden; }
.tx-hph { height: clamp(190px, 32vw, 320px); }
.tx-hph .xk-credit { bottom: auto; top: 8px; }
.tx-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,6,12,0) 35%, rgba(4,6,12,.9)); pointer-events: none; }
.tx-ht { position: absolute; left: 18px; right: 18px; bottom: 14px; z-index: 2; }
.tx-ht .tx-ccat.in { color: var(--xk-goldb); }
.tx-ht .th-title { margin: 6px 0 0; font: 500 clamp(22px, 3.4vw, 34px)/1.15 'Fraunces', Georgia, serif; color: #f6efdc; text-shadow: 0 2px 10px rgba(0,0,0,.7); }
.tx-d .dx-lead { margin-top: 16px; }
.tx-bars { display: grid; gap: 6px; }
.tx-bar { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(80px, 1fr) auto; align-items: center; gap: 12px; min-height: 44px; padding: 6px 10px; border-radius: 10px; border: 1px solid transparent; background: var(--xk-card); color: var(--xk-text); text-align: left; cursor: pointer; font: inherit; transition: border-color .15s; }
.tx-bar:hover { border-color: color-mix(in srgb, var(--c) 55%, transparent); }
.tx-bn { font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.tx-bt { height: 10px; border-radius: 999px; background: rgba(255,255,255,.07); overflow: hidden; }
.tx-bt b { display: block; height: 100%; border-radius: 999px; background: var(--c); }
.tx-bar.faith .tx-bt b { background: repeating-linear-gradient(135deg, var(--c) 0 6px, transparent 6px 11px); opacity: .7; }
.tx-bar em { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--c); min-width: 120px; text-align: right; }
.tx-sum { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin-top: 12px; font-size: 12px; color: var(--xk-dim); }
.tx-pill { padding: 4px 11px; border-radius: 999px; font-weight: 700; color: #10131b; background: var(--c); }
.tx-cnt { display: inline-flex; align-items: center; gap: 6px; }
.tx-cnt i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.tx-list { display: grid; gap: 12px; }
.tx-th { border-radius: 14px; border: 1px solid var(--xk-line); border-left: 4px solid var(--c); background: var(--xk-card); padding: 14px 16px; scroll-margin-top: 70px; }
.tx-th.tx-flash { animation: txFlash 1.2s ease; }
@keyframes txFlash { 0% { box-shadow: 0 0 0 0 var(--c); } 30% { box-shadow: 0 0 0 3px var(--c); } 100% { box-shadow: 0 0 0 0 transparent; } }
.tx-thh { display: flex; gap: 12px; align-items: flex-start; }
.tx-rank { flex: 0 0 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font: 700 12px 'Manrope', system-ui, sans-serif; color: var(--c); border: 1.5px solid var(--c); }
.tx-thh h3 { margin: 2px 0 6px; font: 500 17px/1.3 'Fraunces', Georgia, serif; }
.tx-thb { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; margin-top: 10px; }
.tx-part > span { display: block; margin: 0 0 3px; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--xk-faint); }
.tx-part p { margin: 0 0 10px; font-size: 14px; line-height: 1.55; }
.tx-part p:last-child { margin-bottom: 0; }
.tx-who { color: var(--xk-dim); font-size: 13px !important; }
.tx-evi { align-self: start; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--c) 7%, transparent); border: 1px solid color-mix(in srgb, var(--c) 22%, transparent); }
.tx-evi > span { color: var(--c); }
.dx-honest a { color: var(--xk-goldb); }
.tx-grp { margin-bottom: 12px; }
.tx-grp > span { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--xk-faint); }
.tx-rel { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.tx-rc { display: flex; flex-direction: column; gap: 6px; padding: 0; border: 0; background: none; color: var(--xk-text); text-align: left; cursor: pointer; font: inherit; }
.tx-rph { aspect-ratio: 16 / 10; border-radius: 12px; transition: transform .18s; }
.tx-rc:hover .tx-rph { transform: translateY(-3px); }
.tx-rc b { font: 500 14px/1.3 'Fraunces', Georgia, serif; }
@media (max-width: 700px) {
  .tx-thb { grid-template-columns: 1fr; }
  .tx-bar { grid-template-columns: 1fr auto; row-gap: 6px; }
  .tx-bt { grid-column: 1 / -1; grid-row: 2; }
  .tx-bar em { min-width: 0; }
  .tx-grid { grid-template-columns: 1fr; }
  .tx-cats, .tx-stats { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .tx-cats .xk-chip, .tx-stats .xk-chip { flex: 0 0 auto; }
}
