/* Banner-only exception; all dossier controls and columns keep KiwiPedia styles. */
:is(.faction-profile-page,.faction-title-preview) .fp-banner-logo{display:flex;align-items:center;justify-content:flex-start;margin:24px 0 16px;min-width:0}
:is(.faction-profile-page,.faction-title-preview) .fp-banner-logo img{position:static;display:block;width:auto;height:auto;max-width:min(180px,48vw);max-height:132px;object-fit:contain;border:0;border-radius:0;background:none;box-shadow:none}
:is(.faction-profile-page,.faction-title-preview) .fp-logo-empty{display:inline-block;padding:12px 0;color:#8d9d92;font:500 11px/1.6 Inter,sans-serif}
:is(.faction-profile-page,.faction-title-preview) .fp-title-word{color:#f1f6f2}
:is(.faction-profile-page,.faction-title-preview) .fp-title-word--green{color:var(--green,#9aff56);text-shadow:0 0 22px #9aff5630,0 3px 38px #9aff5618}
.faction-profile-page .pf-hero h1{max-width:22ch;overflow-wrap:anywhere}
.faction-profile-page .pf-hero h1[data-profile-title-size]{font-size:var(--faction-profile-title-size)}
@media(max-width:700px){.faction-profile-page .pf-hero h1[data-profile-title-size]{font-size:min(var(--faction-profile-title-size),clamp(32px,9vw,64px))}}
.kv-faction-editor .faction-title-preview h2[data-profile-title-size]{font-size:calc(var(--faction-profile-title-size)*.4)}
.fe-title-size{display:grid;gap:10px;margin-bottom:16px;min-width:0}
.fe-title-size output{color:#9aff56;font-size:11px}.fe-title-size input[type=range]{accent-color:#9aff56}
.faction-profile-page .pf-hero-shade{background:linear-gradient(0deg,var(--bg-main,#050907),#05090790 24%,transparent 85%),linear-gradient(90deg,#050907f5,#050907c9 45%,#05090735)}
.faction-title-field{min-width:0;border:1px solid #ffffff16;border-radius:10px;padding:18px;margin:0}
.faction-title-field legend{padding:0 8px;font-weight:650;font-size:14px;color:#dce8df}
.faction-title-field>p,.faction-title-field>small{color:#96a79b;font-size:12px;line-height:1.7}
.faction-title-choices{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}
.faction-title-choices label{display:inline-flex;align-items:center;gap:7px;margin:0;padding:8px 10px;border:1px solid #ffffff1c;border-radius:8px;cursor:pointer;font-size:12px}
.faction-title-choices input[type=checkbox]{width:16px!important;height:16px!important;min-height:0!important;padding:0!important;margin:0;appearance:auto!important;accent-color:#9aff56}
.faction-title-choices label:has(:checked){border-color:#9aff5655;color:#9aff56;background:#9aff5608}
.faction-title-preview{position:relative;isolation:isolate;overflow:hidden;border:1px solid #9aff5626;border-radius:12px;background:#071009}
.faction-title-preview .fp-title-preview-banner{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover;opacity:.6}
.faction-title-preview::before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#050907ed,#05090780)}
.faction-title-preview .fp-title-preview-copy{padding:24px}
.faction-title-preview h2{max-width:22ch;margin:0;font:800 italic clamp(30px,3vw,56px)/.96 Inter,sans-serif;letter-spacing:-.055em;overflow-wrap:anywhere}
.faction-title-preview .fp-title-line{display:block;margin-top:4px}.faction-title-preview .fp-title-line:first-child{margin-top:0}
.faction-title-preview .fp-banner-logo{margin:0 0 16px}
.faction-title-field [hidden]{display:none!important}
.faction-current-logo{display:block;width:auto;height:auto;max-width:140px;max-height:120px;object-fit:contain;margin:10px 0}
@media(max-width:700px){:is(.faction-profile-page,.faction-title-preview) .fp-banner-logo img{max-width:130px;max-height:100px}}
@media(max-width:700px){.faction-profile-page .pf-left{grid-template-columns:minmax(0,1fr)}}
@media(prefers-reduced-motion:no-preference){.faction-profile-page .fp-banner-logo{--heading-rise-distance:8px;animation:ac-title-rise .55s .25s cubic-bezier(.2,.65,.2,1) backwards}}
