/* The deity window (PC) and the phone list share these rules; art is never cropped in the card.
   2026-11-11 (owner): a tidy window and a clear alignment sign per god (Legacy: alignment grid, Remaster: sanctification). */
.pb-deity-window{display:flex!important;position:fixed;inset:0;z-index:1500;--deity-line:#323d4b;--deity-muted:#9aa6b5;--deity-hover:rgba(255,255,255,.045);--deity-pick:#2a3442;--deity-accent:#ff5722;--deity-off:rgba(255,255,255,.13)}
.pb-deity-window .modal-content{display:flex;flex-direction:column;color:#edf1f7}
.pb-deity-window button,.pb-deity-window input,.pb-deity-window select{font:inherit;color:inherit}
.pb-deity-window button{cursor:pointer}
.pb-deity-window .div-topbar_holder{padding:0 1.25em .9em;border-bottom:1px solid var(--deity-line)}
.pb-deity-window .dialog-title{margin:.75em 0 .7em}
.pb-deity-window .tabbed-area-menu-sb{display:flex;overflow-x:auto;flex-shrink:0}
.pb-deity-window .section-menu{flex:0 0 auto;width:auto;background:transparent;border:0;white-space:nowrap}
.pb-deity-window .pb-list-toolbar{display:flex;gap:.6em}
.pb-deity-window input{min-width:0;border:1px solid #3b4b5e;border-radius:6px;background:#171a1e;padding:.55em .7em;box-sizing:border-box}
.pb-deity-window [data-deity-search]{flex:1}
.pb-deity-window .pb-deity-body{display:flex;flex:1;min-height:0;overflow:hidden!important}
.pb-deity-left{display:flex;flex-direction:column;min-width:17em;width:36%;border-right:1px solid var(--deity-line)}
html body .pb-deity-window .div-listview-scroller{width:100%!important;max-width:none!important;min-width:0!important;flex:1!important;border:0!important;padding:.35em 0;scrollbar-gutter:stable}
.pb-deity-window .div-listview-info{flex:1;min-width:0;overflow:auto;padding:1.6em 2em!important}
/* list rows: picture, name, the stance in words, the sign */
.pb-deity-window .pb-deity-row{display:flex;align-items:center;gap:.8em;width:100%;min-height:3.3em;padding:.4em 1.2em .4em calc(1em - 3px)!important;box-sizing:border-box;border:0;border-left:3px solid transparent;background:transparent;color:inherit;text-align:left}
.pb-deity-window .pb-deity-row:hover{background:var(--deity-hover)}
.pb-deity-window .pb-deity-row[aria-pressed=true]{background:var(--deity-pick);border-left-color:var(--deity-accent)}
.pb-deity-window .pb-deity-custom-row{border-bottom:1px solid var(--deity-line);min-height:3.6em}
.pb-deity-thumb{display:inline-flex;align-items:center;justify-content:center;flex:none;width:2.5em;height:2.5em;border-radius:50%;object-fit:cover;object-position:50% 14%;background:#232a33;box-shadow:0 0 0 1px var(--deity-line,#323d4b)}
.pb-deity-thumb-custom svg{width:1.25em;height:1.25em;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;opacity:.85}
.pb-deity-name{flex:1;min-width:0;font-weight:600}
.pb-deity-window .pb-deity-row .pb-deity-stance-text{flex:0 1 auto;max-width:48%;color:color-mix(in srgb,var(--tone) 75%,var(--deity-muted));font-size:.82em;text-align:right;line-height:1.25}
/* the stance sign: colour = the moral side (Legacy) or holy / unholy (Remaster) */
.pb-deity-stance{display:inline-flex;flex:none;width:1.7em;height:1.7em;--tone:#9aa6b5;--off:var(--deity-off,rgba(255,255,255,.13))}
.pb-deity-stance svg{width:100%;height:100%;overflow:visible}
[data-tone=good],[data-tone=holy]{--tone:#e3b64c}
[data-tone=evil],[data-tone=unholy]{--tone:#e0574d}
[data-tone=neutral],[data-tone=none]{--tone:#9aa6b5}
[data-tone=both]{--tone:#d58a4c}
.pb-deity-stance rect.pb-dim{fill:var(--off)}
.pb-deity-stance rect.pb-lit{fill:var(--tone)}
.pb-deity-stance .h,.pb-deity-stance .u,.pb-deity-stance .n{stroke-width:2.4;stroke-linejoin:round}
.pb-deity-stance .h{stroke:#e3b64c;fill:#e3b64c}
.pb-deity-stance .u{stroke:#e0574d;fill:#e0574d}
.pb-deity-stance .n{stroke:#9aa6b5;fill:none;stroke-linecap:round}
.pb-deity-stance[data-required=false] .h,.pb-deity-stance[data-required=false] .u{fill:none}
/* the card */
.pb-deity-custom{display:flex;flex-direction:column;gap:.65em;max-width:32em}
.pb-deity-card{display:flow-root;overflow-wrap:anywhere;line-height:1.55}
.pb-deity-head h2{margin:0 0 .45em;font-size:1.65em;line-height:1.2}
.pb-deity-pill{display:inline-flex;align-items:center;gap:.5em;padding:.3em .8em .3em .6em;border-radius:999px;border:1px solid color-mix(in srgb,var(--tone) 55%,transparent);background:color-mix(in srgb,var(--tone) 13%,transparent);font-size:.92em}
.pb-deity-pill-label{color:var(--deity-muted,#9aa6b5);font-size:.78em;letter-spacing:.06em;text-transform:uppercase}
.pb-deity-pill .pb-deity-stance{width:1.35em;height:1.35em}
.pb-deity-pill .pb-deity-stance-text{font-weight:600}
.pb-deity-art{float:right;width:38%;max-width:260px;max-height:440px;object-fit:contain;margin:0 0 1em 1.6em;border-radius:10px}
.pb-deity-facts{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:.5em 1.3em;margin:1.3em 0 1.1em}
.pb-deity-facts dt{color:var(--deity-muted,#9aa6b5);font-weight:600}
.pb-deity-facts dd{margin:0}
.pb-deity-desc{clear:both;margin:.6em 0;padding-top:.9em;border-top:1px solid var(--deity-line,#323d4b)}
.pb-deity-desc+.pb-deity-desc{border-top:0;padding-top:0}
.pb-deity-src{margin:1em 0 0;color:var(--deity-muted,#9aa6b5);font-size:.85em}
/* light theme */
:root.light .pb-deity-window{--deity-line:#dcc39a;--deity-muted:#6f6253;--deity-hover:rgba(80,0,0,.05);--deity-pick:#eddfc7;--deity-accent:#500000;--deity-off:rgba(60,40,20,.14)}
:root.light .pb-deity-window .modal-content{color:#292523}
:root.light .pb-deity-window input{background:#f9f7ec;border-color:#dcc39a}
:root.light .pb-deity-thumb{background:#eadfca}
:root.light [data-tone=good],:root.light [data-tone=holy]{--tone:#a77a12}
:root.light [data-tone=evil],:root.light [data-tone=unholy]{--tone:#a8322b}
:root.light [data-tone=neutral],:root.light [data-tone=none]{--tone:#6f7784}
:root.light [data-tone=both]{--tone:#a75d22}
:root.light .pb-deity-stance .h{stroke:#a77a12;fill:#a77a12}
:root.light .pb-deity-stance .u{stroke:#a8322b;fill:#a8322b}
:root.light .pb-deity-stance .n{stroke:#6f7784}
:root.light .pb-deity-stance[data-required=false] .h,:root.light .pb-deity-stance[data-required=false] .u{fill:none}
.pb-deity-window :focus-visible{outline:2px solid rgb(var(--ui-glow));outline-offset:-2px}
@media(max-width:700px){.pb-deity-left{min-width:10em;width:42%}.pb-deity-window .pb-deity-row .pb-deity-stance-text{display:none}.pb-deity-art{width:45%;margin-left:.8em}.pb-deity-window .div-listview-info{padding:.9em!important}}
/* The phone shell supplies its theme variables and ancestry row layout. */
.pbm .pbm-deity{--deity-line:var(--pbm-line);--deity-muted:var(--pbm-muted);--deity-off:color-mix(in srgb,var(--pbm-fg) 14%,transparent)}
.pbm .pbm-deity .ch-tabs{overflow-x:auto;flex-shrink:0}
.pbm .pbm-deity .ch-tab{white-space:nowrap}
.pbm .pbm-deity .ch-filters{display:flex;flex-wrap:wrap}
.pbm .pbm-deity .ch-filters input{flex:1;min-width:130px}
.pbm .pbm-deity .pb-deity-custom input{font:inherit;font-size:16px;min-height:44px;box-sizing:border-box;width:100%;color:var(--pbm-fg);background:var(--pbm-surface);border:1px solid var(--pbm-line);border-radius:8px;padding:8px}
.pbm .pbm-deity .featrow .pb-deity-name{display:block;font-weight:600}
.pbm .pbm-deity .featrow .pb-deity-stance-text{display:block;margin-top:2px;font-weight:400;color:color-mix(in srgb,var(--tone) 75%,var(--pbm-muted));font-size:13px;line-height:1.3}
.pbm .pbm-deity .featrow .pb-deity-stance{width:24px;height:24px;margin-left:8px}
.pbm .pbm-deity .pb-deity-art{float:none;display:block;width:auto;max-width:70%;max-height:260px;margin:.2em auto .9em}
.pbm .pbm-deity .pb-deity-head h2{font-size:22px}
.pbm .pbm-deity .pb-deity-pill{font-size:14px}
.pbm .pbm-deity .pb-deity-facts{grid-template-columns:minmax(0,1fr);gap:0;margin:1em 0 .6em}
.pbm .pbm-deity .pb-deity-facts dt{margin-top:.6em;font-size:13px}
