/* Adelige: 2A – Wappen im Rahmen. Nichtadelige: rundes persönliches Zeichen. */
.bretonien-profile{box-sizing:border-box;position:relative;display:block;width:100%;max-width:740px;margin:46px 0 28px;padding:30px 31px 24px;border:1px solid #e5dfd2;border-radius:12px;background:#f8f4eb;color:#263e55;box-shadow:0 2px 7px #26344210;font:17px/1.6 Georgia,'Times New Roman',serif}
.bretonien-profile::before{content:'';position:absolute;inset:10px;border:1px solid #ad985f;border-radius:11px;pointer-events:none}
.bretonien-profile.has-image{display:block;grid-template-columns:none}
.bretonien-profile .bretonien-profile-emblem{position:absolute;top:-25px;left:50%;transform:translateX(-50%);z-index:1;display:flex;align-items:center;justify-content:center;width:60px;height:60px;padding:6px;background:#f8f4eb;margin:0}
.bretonien-profile .bretonien-profile-emblem::before,.bretonien-profile .bretonien-profile-emblem::after{content:'';position:absolute;top:26px;width:42px;height:14px;background:url(../assets/kurier-signature.svg) center/contain no-repeat}
.bretonien-profile .bretonien-profile-emblem::before{right:calc(100% + 4px);transform:scaleX(-1)}
.bretonien-profile .bretonien-profile-emblem::after{left:calc(100% + 4px)}
.bretonien-profile.is-commoner .bretonien-profile-emblem{border:1px solid #ad985f;border-radius:50%}
.bretonien-profile .bretonien-profile-image{display:block;width:auto;height:auto;max-width:38px;max-height:48px;object-fit:contain;margin:0}
.bretonien-profile .bretonien-profile-image.bretonien-profile-feather{width:32px;height:32px;max-height:32px}
.bretonien-profile .bretonien-profile-body{position:relative;min-width:0}
.bretonien-profile .bretonien-profile-heading{margin:0 0 12px;padding:0;text-align:center}
.bretonien-profile .bretonien-profile-heading .bretonien-profile-name{font:600 27px/1.25 Georgia,'Times New Roman',serif;letter-spacing:0;color:#263e55;text-align:center;margin:0 0 5px;padding:0;border:0;background:none;text-transform:none}
.bretonien-profile .bretonien-profile-heading .bretonien-profile-name::before,.bretonien-profile .bretonien-profile-heading .bretonien-profile-name::after{content:none}
.bretonien-profile .bretonien-profile-subtitle{font:italic 15px/1.5 Georgia,'Times New Roman',serif;color:#79633d;margin:0}
.bretonien-profile .bretonien-profile-fields{margin:0;padding:0}
.bretonien-profile .bretonien-profile-row{display:grid;grid-template-columns:minmax(90px,29%) minmax(0,1fr);gap:18px;padding:5px 0;border-top:1px solid #d7ccb2;align-items:baseline}
.bretonien-profile .bretonien-profile-row:first-child{border-top:0}
.bretonien-profile dt{font:600 11px/1.6 Georgia,'Times New Roman',serif;text-transform:uppercase;letter-spacing:1.5px;color:#79633d;margin:0}
.bretonien-profile dd{font:400 17px/1.5 Georgia,'Times New Roman',serif;margin:0;white-space:pre-line;overflow-wrap:anywhere}
.bretonien-profile .bretonien-profile-motto{font:italic 17px/1.6 Georgia,'Times New Roman',serif;color:#596674;margin:13px 0 0;padding:11px 0 0;border-top:1px solid #ccb783;white-space:pre-line}
.bretonien-profile-editor-field{padding:12px 0;border-top:1px solid #ddd}
.bretonien-profile-editor-hint{font:14px/1.6 Arial,sans-serif;color:#596674}
@media(max-width:500px){.bretonien-profile{padding:33px 23px 22px;margin-top:42px}.bretonien-profile .bretonien-profile-heading .bretonien-profile-name{font-size:25px}.bretonien-profile .bretonien-profile-row{grid-template-columns:minmax(75px,29%) minmax(0,1fr);gap:12px}.bretonien-profile dt{font-size:10px;letter-spacing:1px}.bretonien-profile dd{font-size:16px}}
@media(max-width:350px){.bretonien-profile .bretonien-profile-row{grid-template-columns:minmax(0,1fr);gap:1px}}

/* Die Registertafel liegt direkt auf dem Seitenpapier, ohne äußere Karte. */
.bretonien-profile{background:transparent;border:0;box-shadow:none}
.bretonien-profile .bretonien-profile-emblem{background-color:var(--wp--preset--color--paper,#f6f3ed)}
.bretonien-profile .bretonien-profile-emblem::before,.bretonien-profile .bretonien-profile-emblem::after{background-color:var(--wp--preset--color--paper,#f6f3ed)}

/* Freigegebener Rahmen aus der letzten Vorschau. */

.bretonien-profile{margin:24px auto 36px;padding:73px 41px 29px;border-radius:15px;background:#f8f5ed;box-shadow:0 3px 10px #26344218}
.bretonien-profile:before{inset:28px 15px 16px;border:1.3px solid #aa9450;border-radius:20px}
.bretonien-profile .bretonien-profile-emblem{top:-17px;width:82px;height:82px;padding:7px;background:#f8f5ed;z-index:1}
.bretonien-profile .bretonien-profile-emblem img{max-width:48px;max-height:64px}
.bretonien-profile .bretonien-profile-emblem:before,.bretonien-profile .bretonien-profile-emblem:after{top:35px;width:58px;height:23px;background:#f8f5ed url('../assets/profile-frame-scroll.svg') center/52px 22px no-repeat}
.bretonien-profile .bretonien-profile-emblem:before{right:calc(100% + 2px);transform:none}
.bretonien-profile .bretonien-profile-emblem:after{left:calc(100% + 2px);transform:scaleX(-1)}
.bretonien-profile.is-commoner .bretonien-profile-emblem{top:-17px;width:82px;height:82px;border:1.5px solid #aa9450}
.bretonien-profile.is-commoner .bretonien-profile-emblem img{width:51px;height:64px;max-width:51px;max-height:64px}
.bretonien-profile .bretonien-profile-heading .bretonien-profile-name{font:700 32px/1.15 Georgia,'Times New Roman',serif;margin-bottom:18px}
.bretonien-profile .bretonien-profile-row{grid-template-columns:minmax(120px,32%) minmax(0,1fr);gap:15px;padding:5px 0;border-top-color:#bcab78}
.bretonien-profile dt{font:600 13px/1.6 Georgia,serif;letter-spacing:1.6px}
.bretonien-profile dd{font:400 19px/1.35 Georgia,serif}
@media(max-width:500px){.bretonien-profile{padding:73px 28px 27px}.bretonien-profile .bretonien-profile-heading .bretonien-profile-name{font-size:27px}.bretonien-profile .bretonien-profile-row{grid-template-columns:minmax(90px,32%) minmax(0,1fr);gap:10px}.bretonien-profile dt{font-size:11px;letter-spacing:.8px}.bretonien-profile dd{font-size:17px}}
@media(max-width:350px){.bretonien-profile .bretonien-profile-row{grid-template-columns:minmax(0,1fr);gap:1px}}

/* Registertafel ohne abgesetzte Kartenfläche; gilt für beide Steckbriefe. */
.bretonien-profile{background:transparent;border:0;box-shadow:none}
.bretonien-profile .bretonien-profile-emblem{background-color:var(--wp--preset--color--paper,#f6f3ed)}
.bretonien-profile .bretonien-profile-emblem::before,.bretonien-profile .bretonien-profile-emblem::after{background-color:var(--wp--preset--color--paper,#f6f3ed)}
.bretonien-crest-zoom{display:block;cursor:zoom-in;border-radius:4px}
.bretonien-crest-zoom:focus-visible{outline:2px solid #b99a55;outline-offset:5px}
.bretonien-crest-dialog{border:1px solid #b99a55;border-radius:8px;background:#f6f3ed;padding:20px;max-width:90vw;max-height:90dvh;color:#263e55}
.bretonien-crest-dialog::backdrop{background:rgba(12,24,35,.8)}
.bretonien-crest-dialog button{display:block;margin:0 0 16px auto;border:0;background:transparent;color:#263e55;font:16px Georgia,serif;padding:6px;cursor:pointer}
.bretonien-crest-dialog img{display:block;max-width:80vw;max-height:70dvh;width:auto;height:auto;margin:auto}
/* Der sichtbare Rahmen darf keinen eigenen seitlichen Einzug haben. */
.bretonien-profile::before{left:0;right:0}
.personality-content .bretonien-profile{box-sizing:border-box;width:100%;max-width:none;margin-left:0!important;margin-right:0!important}
.personality-content .bretonien-profile::before{left:0;right:0}
.personality-content .bretonien-profile{padding-left:26px;padding-right:26px}
@media(max-width:500px){.personality-content .bretonien-profile{padding-left:18px;padding-right:18px}}
/* Freigegebene kompakte Register: 90 Prozent der Textbreite, exakt mittig. */
.bretonien-profile,
.personality-content .bretonien-profile{width:90%!important;max-width:90%!important;margin:24px auto!important;padding:44px 25px 19px;float:none;left:auto;right:auto;transform:none;font-family:Georgia,'Times New Roman',serif}
.bretonien-profile::before{inset:0;border-radius:20px}
.bretonien-profile .bretonien-profile-heading .bretonien-profile-name{font:700 26px/1.2 Georgia,'Times New Roman',serif;margin:0 0 17px}
.bretonien-profile .bretonien-profile-row{grid-template-columns:28% minmax(0,1fr);gap:15px;padding:3px 0;border-top-color:#d5c9a6}
.bretonien-profile dt{font:600 11px/1.6 Georgia,'Times New Roman',serif;letter-spacing:1.2px}
.bretonien-profile dd{font:400 17px/1.4 Georgia,'Times New Roman',serif}
.bretonien-profile .bretonien-profile-emblem{top:-34px;width:74px;height:64px;padding:3px}
.bretonien-profile .bretonien-profile-emblem img{width:auto;height:auto;max-width:43px;max-height:57px}
.bretonien-profile .bretonien-profile-emblem::before,
.bretonien-profile .bretonien-profile-emblem::after{top:23px;width:47px;height:20px;background-size:47px 20px}
.bretonien-profile.is-commoner .bretonien-profile-emblem{top:-34px;width:64px;height:64px}
.bretonien-profile.is-commoner .bretonien-profile-emblem img{width:39px;height:48px;max-width:39px;max-height:48px}
@media(max-width:500px){
.bretonien-profile,.personality-content .bretonien-profile{padding:44px 17px 19px}
.bretonien-profile .bretonien-profile-row{grid-template-columns:30% minmax(0,1fr);gap:12px}
.bretonien-profile dd{font-size:16px}.bretonien-profile dt{letter-spacing:.5px}
}
@media(max-width:350px){.bretonien-profile .bretonien-profile-row{grid-template-columns:minmax(0,1fr);gap:1px}}
