.people-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.people-card{border:1px solid var(--line,#293343);background:var(--panel,#101722);border-radius:4px;overflow:hidden;min-width:0}.people-picture-link{display:block}.people-visual{margin:0;background:#e5e5e2;aspect-ratio:4/3;overflow:hidden;position:relative}.people-visual img{display:block;width:100%;height:100%;object-fit:contain}.people-card[data-kind=character] img{object-fit:cover}.people-card-body{padding:22px}.people-card h2{font-size:23px;margin:0 0 14px}.people-card h2 a{color:inherit;text-decoration:none}.people-card h2 a:hover{color:var(--accent,#a6e0da)}.people-card p{font-size:13px;line-height:1.65}.people-image-missing{background:#141e2b;display:flex;flex-direction:column;gap:10px;align-items:center;justify-content:center;height:100%;color:#8194a8}.people-image-missing>span{font-size:60px}.people-homeworlds>span{display:block;text-transform:uppercase;letter-spacing:.08em;font-size:10px;color:#91a4b9;margin-bottom:4px}.people-bounds{display:grid;grid-template-columns:1fr 1fr;gap:7px 15px;font-size:11px;margin:18px 0}.people-bounds div{display:flex;justify-content:space-between;border-bottom:1px solid #253141;padding:5px 0;gap:5px}.people-bounds dt{color:#aebdce}.people-bounds dd{margin:0;white-space:nowrap;color:#e7eeee}.people-bounds dd span{color:#708399;margin:0 3px}.people-related-counts{border-top:1px solid #293343;padding-top:13px;display:flex;flex-direction:column;gap:8px;font-size:12px}.people-related-counts a,.people-homeworlds a,.people-documentation a{color:var(--accent,#a6e0da)}.people-identity{font-size:12px}.people-identity div{display:flex;gap:10px;margin:7px 0}.people-identity dt{color:#91a4b9;min-width:45px}.people-identity dd{margin:0}.people-active-filters{display:flex;flex-wrap:wrap;gap:12px;font-size:13px;margin:15px 0}.people-active-filters span{background:#1c2a3a;padding:8px 12px;border-radius:3px}.people-detail-layout{display:grid;grid-template-columns:minmax(230px,.7fr) minmax(0,1.5fr);gap:28px;align-items:start}.people-visual-detail{aspect-ratio:auto;overflow:visible}.people-visual-detail img{max-height:580px;object-fit:contain}.people-visual-detail figcaption{background:#101722;padding:12px;color:#9caec0;font-size:11px;line-height:1.6}.people-visual-detail .people-image-missing{min-height:300px}.people-detail-layout .panel{margin:0}.people-documentation{margin:40px 0 15px;border-top:1px solid #293343;padding-top:16px;color:#8fa1b7;font-size:12px}.people-documentation summary{cursor:pointer;letter-spacing:.04em}.people-documentation p{max-width:1000px;margin:14px 0}.people-period-heading{display:flex;align-items:center;justify-content:space-between;gap:18px}.people-period-heading h2{text-align:center;margin:0}.people-period-heading button{padding:8px 16px;font-size:20px}.people-period-heading button:disabled{opacity:.3;cursor:default}.people-period[hidden]{display:none}.people-period .facts{margin-top:24px}.people-detail-layout+.profile-panel .people-bounds{max-width:700px;font-size:14px}.people-detail-layout h3{margin-top:25px}@media(max-width:1000px){.people-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.people-card-body{padding:16px}}@media(max-width:620px){.people-grid{grid-template-columns:minmax(0,1fr)}.people-detail-layout{grid-template-columns:minmax(0,1fr)}.people-visual-detail img{max-height:400px}.people-period-heading{gap:8px}.people-period-heading h2{font-size:18px}.people-bounds{font-size:12px}}

.people-detail-layout.people-detail-no-media{grid-template-columns:minmax(0,1fr)}

.people-image-credit{position:absolute;bottom:0;left:0;right:0;padding:7px 10px;background:#0b111ce8;color:#c4d0dd;font-size:10px}

/* Portraits de races : cinq ardoises sur ordinateur, sans agrandir les photos. */
.people-grid[data-people-kind="species"]{gap:16px}
.people-grid[data-people-kind="species"] .people-card-body{padding:14px}
.people-grid[data-people-kind="species"] .people-card h2{font-size:19px;overflow-wrap:anywhere}
.people-grid[data-people-kind="species"] .people-visual{aspect-ratio:1/1;background:radial-gradient(ellipse at 50% 40%,#29394b,#101722 80%)}
.people-grid[data-people-kind="species"] .people-visual img{padding:10px;box-sizing:border-box}
.people-grid[data-people-kind="species"] .people-bounds{grid-template-columns:minmax(0,1fr);gap:5px 8px}
@media(min-width:1200px){.people-grid[data-people-kind="species"]{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(min-width:1001px) and (max-width:1199px){.people-grid[data-people-kind="species"]{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* Ardoises compactes : trois lignes, deux couples attribut/valeur. */
.people-bounds-table{width:100%;border-collapse:collapse;margin:8px 0;font-size:10px}
.people-bounds-table th,.people-bounds-table td{padding:4px 2px;border-bottom:1px solid #253141;text-align:left}
.people-bounds-table th{font-weight:400;color:#aebdce}
.people-bounds-table td{white-space:nowrap;color:#e7eeee}
.people-bounds-table th:nth-child(3){padding-left:8px}
.people-grid[data-people-kind="species"] .people-card-body{padding:10px}
.people-grid[data-people-kind="species"] .people-card h2{margin-bottom:6px}
.people-grid[data-people-kind="species"] .species-height{margin:5px 0;font-size:11px}
.people-grid[data-people-kind="species"] .species-height div{padding:0;border:0;display:flex;gap:6px;justify-content:space-between}
.people-grid[data-people-kind="species"] .species-height dt{font-size:10px}
.people-grid[data-people-kind="species"] .species-height dd{margin:0;font-size:11px}
.people-grid[data-people-kind="species"] .people-homeworlds{margin:5px 0;font-size:11px;line-height:1.4}
.people-grid[data-people-kind="species"] .people-homeworlds>span{display:inline;letter-spacing:0;text-transform:none;margin-right:6px}
.people-grid[data-people-kind="species"] .people-related-counts{padding-top:7px;gap:4px;font-size:11px}
.people-detail-layout+.profile-panel .people-bounds-table{max-width:700px;font-size:14px}
.people-grid[data-people-kind="species"] .species-height dd{white-space:nowrap}.people-grid[data-people-kind="species"] .species-height dt{letter-spacing:0;text-transform:none}
/* Métiers : densité des races, description conservée, bonus du profil PJ. */
.people-grid[data-people-kind="profession"]{gap:16px}
.people-grid[data-people-kind="profession"] .people-card-body{padding:10px}
.people-grid[data-people-kind="profession"] .people-card h2{font-size:19px;margin-bottom:6px;overflow-wrap:anywhere}
.people-grid[data-people-kind="profession"] .people-visual{aspect-ratio:1/1;background:#15202d}
.people-grid[data-people-kind="profession"] .people-visual img{object-fit:cover}
.people-grid[data-people-kind="profession"] .people-related-counts{padding-top:7px;gap:4px;font-size:11px}
.profession-pj{border-top:1px solid #293343;padding:10px 0;margin-top:10px;font-size:12px}
.profession-pj-title{font-size:11px;color:var(--accent,#a6e0da);letter-spacing:.04em}
.profession-pj p{margin:5px 0;font-size:11px;line-height:1.45}
.profession-pj .profession-pj-rules{color:#91a4b9;font-size:10px}
.profession-pj ul{list-style:none;padding:0;margin:5px 0}
.profession-pj li{display:flex;justify-content:space-between;gap:6px;padding:3px 0}
.profession-pj strong{white-space:nowrap}
@media(min-width:1200px){.people-grid[data-people-kind="profession"]{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(min-width:1001px) and (max-width:1199px){.people-grid[data-people-kind="profession"]{grid-template-columns:repeat(4,minmax(0,1fr))}}
/* Photos existantes détourées : même ardoise sombre que les races. */
.people-visual.people-visual-cutout{background:radial-gradient(ellipse at 50% 40%,#29394b,#101722 80%);aspect-ratio:1/1}
.people-visual.people-visual-cutout img{object-fit:contain;padding:14px;box-sizing:border-box}
.people-visual-detail.people-visual-cutout{aspect-ratio:auto}
.people-visual-detail.people-visual-cutout img{height:580px;max-height:580px}
@media(max-width:620px){.people-visual-detail.people-visual-cutout img{height:400px;max-height:400px}}
/* Galeries de personnages : même densité que les races et créatures. */
.people-grid[data-people-kind="character"]{gap:16px}
.people-grid[data-people-kind="character"] .people-card-body{padding:14px}
.people-grid[data-people-kind="character"] .people-card h2{font-size:19px;overflow-wrap:anywhere}
.people-grid[data-people-kind="character"] .people-identity dd{min-width:0;overflow-wrap:anywhere}
@media(min-width:1200px){.people-grid[data-people-kind="character"]{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(min-width:1001px) and (max-width:1199px){.people-grid[data-people-kind="character"]{grid-template-columns:repeat(4,minmax(0,1fr))}}
/* Fiche de création intégrée à l'identité v1.A. */
.example-controls{display:flex;flex-wrap:wrap;gap:16px;align-items:end;margin:20px 0}
.example-controls label{display:grid;gap:8px;flex:1;min-width:180px}
.example-controls input,.example-controls select{padding:12px;background:#111d28;color:#e7f1f3;border:1px solid #52707c;border-radius:6px}
.character-example{scroll-margin-top:90px}
.example-sheet{margin-top:24px;padding-top:24px;border-top:1px solid #35525c;color:#e2edf0}
.example-pdf-header{display:none}
.example-identity{display:grid;grid-template-columns:2fr 1fr 1fr;gap:18px}
.example-sheet label,.example-name-field>label{display:grid;gap:8px;font-size:12px;font-weight:600;color:#b9cbd0}
.example-sheet input,.example-sheet textarea,.example-sheet select{box-sizing:border-box;width:100%;min-width:0;border:1px solid #38515e;border-radius:5px;padding:10px;background:#0d1925;color:#edf6f7;font:inherit;resize:vertical}
.example-sheet input::placeholder,.example-sheet textarea::placeholder{color:#94aab4;opacity:1}
.example-name-control{display:flex;gap:8px;margin-top:8px}.example-name-control input{flex:1}
.example-regenerate{flex:0 0 42px;min-height:42px;border:1px solid #527783;border-radius:5px;background:#16323d;color:#9de4df;font-size:25px;cursor:pointer}
.example-regenerate:hover{background:#244955}.example-sheet :is(input,select,textarea,button):focus-visible{outline:2px solid #8de2da;outline-offset:3px}
.example-attributes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:26px 0}
.example-attributes section{min-width:0;border:1px solid #35525c;border-radius:8px;overflow:hidden;padding:14px;background:#0d1a26}
.example-attributes h4{display:flex;justify-content:space-between;gap:8px;align-items:center;background:#18343f;color:#a3e8e0;padding:12px 14px;margin:-14px -14px 10px;font-size:13px;letter-spacing:.06em}
.example-attributes h4 strong{color:#fff;white-space:nowrap;font-size:18px}
.example-attributes>section>small{color:#b4c7ce;font-size:11px}
.example-attributes dl{margin-bottom:0}.example-attributes dl div{display:flex;justify-content:space-between;border-bottom:1px solid #243d49;padding:7px 0;gap:12px;font-size:12px}
.example-attributes dt{color:#d5e2e8;min-width:0;overflow-wrap:anywhere}.example-attributes dt small{display:block;color:#8ad8d0;font-size:10px}.example-attributes dd{margin:0;white-space:nowrap;font-weight:600;color:#eaf3f5}
.example-totals{font-weight:600;font-size:13px;color:#c2d8df}
.example-notes{display:grid;grid-template-columns:1fr 1fr;gap:16px}.example-notes textarea{margin-top:3px}
.example-sheet footer{font-size:11px;line-height:1.6;margin-top:20px;border-top:1px solid #35525c;padding-top:12px;color:#a3bcc6}
@media(max-width:800px){.example-attributes{grid-template-columns:repeat(2,minmax(0,1fr))}.example-identity{grid-template-columns:1fr 1fr}.example-name-field{grid-column:1/-1}}
@media(max-width:540px){.example-attributes,.example-identity,.example-notes{grid-template-columns:1fr}.example-controls label{min-width:0;flex-basis:100%}.example-name-field{grid-column:auto}}
@media print{
 @page{size:A4;margin:12mm}
 body{background:white!important;color:#17242d!important}body *{visibility:hidden}
 .prototype-bar,.header-dock,.mobile-nav,.site-footer,.skip-link,.toast{display:none!important}
 .site-shell,.main-content,#character-example{display:block!important;position:static!important;width:auto!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;background:white!important}
 .main-content>:not(#character-example),#character-example>:not(.example-sheet){display:none!important}
 #character-example .example-sheet,#character-example .example-sheet *{visibility:visible}
 #character-example .example-sheet{position:static!important;width:100%;box-sizing:border-box;margin:0;padding:0;border:0;background:white;color:#17242d;font-size:10pt}
 .example-sheet .example-pdf-header{display:block;border-bottom:2px solid #17434b;margin-bottom:16px;color:#17242d}.example-pdf-header span{letter-spacing:.15em;font-weight:bold}.example-pdf-header h3{margin:6px 0;font-size:22px;color:#17242d}.example-pdf-header p{margin:5px 0;color:#344a52}
 .example-identity{grid-template-columns:2fr 1fr 1fr;gap:10px}.example-name-field{grid-column:auto}
 .example-sheet label,.example-name-field>label{color:#344a52}
 .example-sheet input,.example-sheet select,.example-sheet textarea{background:white;color:#17242d;border:0;border-bottom:1px solid #839b9e;border-radius:0;padding:5px;font-size:10px;appearance:none}
 .example-sheet input::placeholder,.example-sheet textarea::placeholder{color:#627078}.example-regenerate{display:none!important}.example-name-control{margin-top:0}
 .example-attributes{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:18px 0}.example-attributes section{background:white;border-color:#9daead;padding:10px;break-inside:avoid}
 .example-attributes h4{background:white;color:#17434b;border-bottom:2px solid #17434b;margin:-10px -10px 8px;padding:9px;font-size:10px}.example-attributes h4 strong{color:#17242d;font-size:14px}
 .example-attributes dl div{font-size:9px;padding:4px 0;border-color:#c7d3d2}.example-attributes dt,.example-attributes dd{color:#17242d}.example-attributes dt small,.example-attributes>section>small{color:#44666a;font-size:8px}
 .example-totals{font-size:10px;color:#17242d}.example-notes{grid-template-columns:1fr 1fr;gap:10px}.example-notes label{break-inside:avoid}.example-sheet textarea{min-height:35px}.example-sheet footer{display:block!important;color:#344a52;border-color:#839b9e;font-size:8px}
}

/* Fond des portraits sur les fiches de races et créatures. */
.species-classification{margin-top:16px}.species-classification .button{width:100%;white-space:normal;font-size:12px;line-height:1.4;min-height:44px}
.creature-combat-heading{font-size:13px;margin:16px 0 8px}.creature-attributes td{white-space:normal;overflow-wrap:anywhere}.creature-combat-variant,.creature-combat-reserves{margin:16px 0;border-top:1px solid var(--line,#293343);padding-top:14px}.creature-combat-variant summary,.creature-combat-reserves summary{cursor:pointer;min-height:44px;display:list-item;padding:8px 0}.creature-combat-source{margin-top:20px}#creature-combat{scroll-margin-top:130px}#creature-combat .creature-attributes{max-width:720px}#creature-combat .facts dd{overflow-wrap:anywhere}
.creature-differences{width:100%;table-layout:fixed;border-collapse:collapse;font-size:12px}.creature-differences th,.creature-differences td{padding:8px;text-align:left;overflow-wrap:anywhere;border-bottom:1px solid var(--line,#293343)}.creature-differences th:first-child{width:24%}
.people-detail-layout[data-people-kind=species] > .people-visual{background:radial-gradient(ellipse at 50% 40%,#29394b,#101722 80%)}
