/* Shared, restricted typography for biographies. No changes to other pages. */
.bio-rich{overflow-wrap:anywhere;min-width:0;line-height:1.75;white-space:normal}
.bio-rich strong,.bio-rich b{font-weight:750;color:#f0f5fb}
.bio-rich em{font-style:italic}.bio-rich u{text-decoration:underline;text-underline-offset:3px}
.bio-rich s{text-decoration:line-through}.bio-rich mark,.bio-toolbar mark{background:#ffe08a;color:#172435;border-radius:3px;padding:0 .1em}
.bio-rich p,.bio-rich div{margin:0 0 .65em}.bio-rich p:last-child,.bio-rich div:last-child{margin-bottom:0}
.bio-rich h2,.bio-rich h3{color:#eef5fc;font-size:1.2em;line-height:1.4;margin:1em 0 .45em;font-weight:750;letter-spacing:normal}
.bio-rich h3{font-size:1.08em}.bio-rich h2:first-child,.bio-rich h3:first-child{margin-top:0}
.bio-rich ul,.bio-rich ol{padding-left:1.6em;margin:.55em 0 .8em}.bio-rich li{padding-left:.1em;margin:.15em 0}
.bio-rich a{color:#a9d5ff;text-decoration:underline;text-underline-offset:3px}.bio-rich a:hover{color:#fff}
.bio-field{display:grid;gap:8px;min-width:0}.bio-field [hidden]{display:none!important}
.bio-editor-shell{border:1px solid #2c4158;border-radius:11px;overflow:hidden;background:#091625}
.bio-editor-shell:focus-within{border-color:#3f7fb9;box-shadow:0 0 0 3px #2b6da52c}
.bio-toolbar{display:flex;align-items:center;gap:5px;flex-wrap:wrap;padding:9px;background:#14263b;border-bottom:1px solid #2c4158}
.bio-toolbar button,.bio-toolbar select{font:inherit;font-size:12px;font-weight:600;color:#e5edf7;border:1px solid #31465e;border-radius:6px;background:#0d1b2d;padding:7px 9px;min-height:32px;cursor:pointer;max-width:100%}
.bio-toolbar button:hover,.bio-toolbar button[aria-pressed=true],.bio-toolbar button[aria-expanded=true]{background:#25466b;border-color:#5c9bd7}
.bio-toolbar button:focus-visible,.bio-toolbar select:focus-visible{outline:2px solid #83bfff;outline-offset:2px}
.bio-tool-separator{height:24px;width:1px;background:#364b62;margin:0 3px}
.bio-editable{min-height:250px;max-height:550px;overflow:auto;padding:16px;outline:none;color:#e0eaf5;font-size:14px;font-weight:400}
.bio-editable:empty:before{content:'Saisissez la biographie…';color:#8297ae;pointer-events:none}
.bio-status{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:10px 13px;background:#14263b;border-top:1px solid #2c4158}
.bio-status .bio-count-error{color:#ff9aa7}.bio-preview-box{border-top:1px solid #2c4158;padding:16px;background:#0e1d30;color:#b5c2d0}
.bio-preview-title{color:#9db1c6;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;margin-bottom:12px}
@media(max-width:600px){.bio-editable{min-height:220px;padding:12px}.bio-toolbar{gap:4px;padding:7px}.bio-toolbar button,.bio-toolbar select{padding:7px}.bio-tool-separator{display:none}}

/* Keep yellow highlights legible in the editor, previews and published biographies.
   The editor uses a temporary inline span; saved biographies use semantic mark tags. */
.bio-rich :is(mark,span[style*="background-color: rgb(255, 224, 138)"],span[style*="background-color: #ffe08a" i]) {color:#172435!important}
.bio-rich :is(mark,span[style*="background-color: rgb(255, 224, 138)"],span[style*="background-color: #ffe08a" i]) * {color:#172435!important}
