/* ARSANIANN_WIKI_OBJETS_1107 : wiki (objets, monstres, donjons, regions). Charge par les pages du wiki seulement (style.css
   intact) ; memes couleurs et boites que le site (.boite, .table, .onglets), prefixe wk-. Mobile d'abord.
   Chris 07/11 : objets SANS fond (icone transparente sur le panneau sombre du site), infobulle claire comme en jeu au survol
   (wiki.js, .wk-pop) ; noms de rarete eclaircis sur fond sombre, couleurs exactes du jeu dans l'infobulle. */
.wk-onglets { margin: 0 0 10px; }
.wk-recherche { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; align-items: end; }
.wk-recherche label { display: grid; gap: 3px; font: bold 11px Tahoma, sans-serif; color: #9fb7d6; }
.wk-recherche .wk-q { grid-column: 1 / -1; }
.wk-recherche input, .wk-recherche select, .wk-recherche button {
  width: 100%; min-height: 32px; padding: 4px 6px; font: 13px Tahoma, sans-serif; color: #dfe8f5; background: #0b1d38;
  border: 1px solid #5d8cc0; border-radius: 3px;
}
.wk-recherche input:focus, .wk-recherche select:focus { outline: 2px solid #ffe9a8; outline-offset: 0; }
.wk-recherche .wk-niv { display: flex; gap: 4px; }
.wk-recherche button { cursor: pointer; font-weight: bold; color: #fff; background: linear-gradient(#cf3f32, #7a140f); border-color: #e0786a; }
.wk-recherche button:hover { background: linear-gradient(#e04c3e, #8d1a13); }
.wk-raz { align-self: center; color: #ffe9a8; font-size: 12px; }
.wk-total { margin: 10px 0 6px; color: #9fb7d6; }
/* liste : lignes sur le panneau sombre du site, icone sans case */
.wk-liste { list-style: none; margin: 0; padding: 4px; display: grid; gap: 2px; background: rgba(5, 13, 28, .72);
  border: 1px solid rgba(111, 159, 208, .45); border-radius: 6px; }
.wk-liste li > a {
  display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 4px 8px;
  text-decoration: none; color: #dfe8f5; border-radius: 3px;
}
.wk-liste li > a:hover, .wk-liste li > a:focus-visible { background: rgba(111, 159, 208, .16); outline: 1px solid rgba(255, 233, 168, .6); }
.wk-liste b { font-size: 13px; }
.wk-liste small { display: block; color: #9fb7d6; font-size: 11px; }
.wk-liste .wk-niv { font: bold 12px Tahoma, sans-serif; color: #ffe9a8; white-space: nowrap; text-align: right; }
.wk-ico { display: block; width: 32px; height: 32px; flex: none; }
.wk-ico.wk-vide { visibility: hidden; }
/* rarete : couleurs du jeu (dwName0/1, rouge) dans l'infobulle claire ; eclaircies sur le fond sombre */
.wk-r0 { color: #8fdc5a; } .wk-r1 { color: #9db4ff; } .wk-r2 { color: #ff7a6e; }
.wk-bulle .wk-r0 { color: #3d8900; } .wk-bulle .wk-r1 { color: #375aff; } .wk-bulle .wk-r2 { color: #e11919; }
.wk-pages { display: flex; flex-wrap: wrap; gap: 4px; margin: 10px 0; }
.wk-pages a, .wk-pages b { min-width: 32px; padding: 6px 8px; text-align: center; color: #dfe8f5; text-decoration: none;
  background: linear-gradient(#21497c, #0d2546); border: 1px solid #5d8cc0; border-radius: 3px; }
.wk-pages b { color: #ffe9a8; }
/* lien d'objet partout : icone + nom dans le meme lien (survol / toucher = infobulle) */
a.wk-obj { display: inline-flex; gap: 6px; align-items: center; font-weight: bold; text-decoration: none; vertical-align: middle; }
a.wk-obj:hover, a.wk-obj:focus-visible { text-decoration: underline; }
a.wk-obj .wk-ico { width: 24px; height: 24px; }
/* infobulle (fiche et survol) : fond clair et texte noir comme en jeu */
.wk-fiche { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.wk-bulle { padding: 10px 12px; color: #000; background: linear-gradient(#fbfcfe, #e7eef7); border: 1px solid #a9c2df;
  border-radius: 4px; box-shadow: 0 4px 12px rgba(0, 0, 0, .45); font: 13px/1.5 Tahoma, Verdana, sans-serif; }
.wk-bulle .wk-tete { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.wk-bulle .wk-tete .wk-ico { width: 48px; height: 48px; image-rendering: pixelated; }
.wk-bulle .wk-nom { display: block; font: bold 15px Tahoma, Verdana, sans-serif; }
.wk-bulle p { margin: 0; }
.wk-bulle .wk-pano { margin-top: 8px; }
.wk-bulle .wk-gris { color: #777; }
.wk-bulle .wk-set { color: #c46a00; }
.wk-id { display: block; color: #5a6f8a; font-size: 10px; }
.wk-pop { position: absolute; z-index: 1000; width: max-content; max-width: min(320px, calc(100vw - 16px)); }
.wk-pop[hidden] { display: none; }
.wk-pop .wk-bulle { box-shadow: 0 6px 18px rgba(0, 0, 0, .7); }
.wk-pop .wk-tete .wk-ico { width: 32px; height: 32px; }
.wk-pop .wk-voir { display: block; margin-top: 4px; padding: 8px; text-align: center; font: bold 13px Tahoma, sans-serif; color: #fff;
  background: linear-gradient(#cf3f32, #7a140f); border: 1px solid #e0786a; border-radius: 3px; text-decoration: none; }
.wk-sources h2 { margin: 14px 0 6px; font: 900 15px 'Cinzel', Georgia, serif; color: #fff; text-shadow: 0 0 2px #000; }
.wk-sources .table td a:not(.wk-obj), .wk-donjon a { color: #ffe9a8; }
.wk-note { color: #9fb7d6; font-size: 11px; margin: 4px 0 0; }
details.wk-plus summary { cursor: pointer; color: #ffe9a8; margin: 6px 0; }
.wk-donjons { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.wk-donjons a { display: block; padding: 10px 12px; text-decoration: none; color: #dfe8f5;
  background: rgba(5, 13, 28, .72); border: 1px solid rgba(111, 159, 208, .55); border-radius: 4px; }
.wk-donjons a:hover, .wk-donjons a:focus-visible { outline: 2px solid #ffe9a8; }
.wk-donjons b { display: block; font: 900 15px 'Cinzel', Georgia, serif; color: #fff; }
.wk-donjons small { color: #9fb7d6; }
.wk-mode { margin-top: 12px; }
.wk-mode h2 { font-size: 15px; }
.wk-mode dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 12px; margin: 0 0 8px; }
.wk-mode dt { color: #9fb7d6; font-weight: bold; }
.wk-mode dd { margin: 0; }
/* listes d'objets (donjons, regions, monstres) : sans fond, nom + chance en dessous */
.wk-objets { list-style: none; margin: 4px 0 10px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 10px; }
.wk-objets li { display: grid; gap: 0; padding: 2px 0; }
.wk-objets li > small { padding-left: 30px; color: #9fb7d6; font-size: 11px; }
@media (min-width: 760px) {
  .wk-fiche { grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); align-items: start; }
  .wk-recherche .wk-q { grid-column: span 2; }
}
