/* REL : galerie publique des publications du forum « Univers de JdR » */
.rel-univers{box-sizing:border-box;position:relative;color:#f6e8cc;background:#291609 url("board/wood-board-desktop.webp") center top/cover no-repeat;border:8px solid #160d07;box-shadow:0 18px 55px rgba(0,0,0,.4);border-radius:8px;padding:clamp(18px,3.7vw,54px);font-family:Georgia, "Times New Roman",serif;isolation:isolate;overflow:hidden;margin:24px auto;max-width:1440px}
.rel-univers *{box-sizing:border-box}
.rel-univers:before{content:"";pointer-events:none;position:absolute;inset:0;background:linear-gradient(180deg,rgba(15,8,4,.2),rgba(18,9,4,.4));z-index:-1}
.rel-univers__header{text-align:center;margin:0 auto 24px;max-width:760px;text-shadow:0 2px 7px #130903}
.rel-univers__eyebrow{font:600 11px/1.6 Georgia,serif;letter-spacing:.2em;text-transform:uppercase;color:#e4ba72}
.rel-univers__header h2{font:700 clamp(23px,3vw,42px)/1.2 Georgia,serif;letter-spacing:.09em;color:#ffefd4;margin:7px 0 9px;text-transform:uppercase}
.rel-univers__header p{font-size:15px;color:#f8e9d2;margin:0}
.rel-univers__line{display:block;width:140px;height:1px;margin:19px auto 0;background:#cda469}
.rel-univers__filters{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin:0 0 22px;padding:12px;background:rgba(15,9,5,.76);border:1px solid #a57c4f;border-radius:5px}
.rel-univers__search-label,.rel-univers__tag-label{font:600 13px Georgia,serif;color:#ffebc9}
.rel-univers__filters input,.rel-univers__filters select{appearance:auto;min-height:40px;max-width:100%;border:1px solid #b99763;border-radius:4px;background:#f7eedf;color:#302014;font:15px Georgia,serif;padding:8px 12px}
.rel-univers__filters input{flex:1 1 235px}.rel-univers__filters select{flex:0 1 240px}
.rel-univers__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.rel-univers__card{min-width:0;background:#f2e4c6;color:#302219;border:1px solid #c4a477;border-radius:4px;box-shadow:0 9px 15px rgba(0,0,0,.33);display:flex;flex-direction:column;overflow:hidden;transition:transform .2s ease,box-shadow .2s ease}
.rel-univers__card:hover{transform:translateY(-3px);box-shadow:0 13px 24px rgba(0,0,0,.37)}
.rel-univers__visual{display:block;background:#3b2b21;height:220px;overflow:hidden;text-decoration:none!important}
.rel-univers__visual img{display:block;width:100%;height:100%;object-fit:cover}
.rel-univers__placeholder{display:grid;place-content:center;height:100%;background:radial-gradient(circle at 50% 45%,#765d3f,#251910 85%);color:#e8bc7f}
.rel-univers__placeholder span{font-size:65px}
.rel-univers__paper{padding:18px 19px 20px;display:flex;flex-direction:column;gap:10px;flex:1;background:linear-gradient(135deg,rgba(255,255,255,.23),transparent 70%),url("board/parchment-fibers.webp") repeat,#f2e4c6}
.rel-univers__tags{display:flex;flex-wrap:wrap;gap:5px}.rel-univers__tags span{font:700 10px/1.4 Georgia,serif;letter-spacing:.07em;text-transform:uppercase;border:1px solid #b9935f;padding:4px 7px;border-radius:2px;color:#6b3c20;background:#fff5df96}
.rel-univers__paper h3{font:bold 22px/1.26 Georgia,serif!important;margin:0;color:#392316!important;overflow-wrap:anywhere}.rel-univers__paper h3 a{color:inherit!important;text-decoration:none!important}
.rel-univers__meta{display:flex;justify-content:space-between;flex-wrap:wrap;gap:5px;font:italic 12px Georgia,serif;color:#68513f;border-bottom:1px solid #c7ac82;padding-bottom:8px}
.rel-univers__excerpt{font:15px/1.57 Georgia,serif!important;color:#463223!important;margin:0!important;overflow-wrap:anywhere;white-space:pre-line}
.rel-univers__excerpt--empty{font-style:italic!important;color:#725841!important}
.rel-univers__more{font:14px/1.5 Georgia,serif;color:#443122}
.rel-univers__more summary{cursor:pointer;color:#744a25;text-decoration:underline;text-underline-offset:3px;margin:0 0 8px}
.rel-univers__more div{max-height:260px;overflow-y:auto;white-space:pre-wrap;overflow-wrap:anywhere;padding:10px;background:#f8f0dc;border:1px solid #ceb58f}
.rel-univers__button{display:block;text-align:center;align-self:stretch;margin-top:auto;text-decoration:none!important;border:1px solid #8d5934;padding:11px 10px;background:#3d2616;color:#fce3ae!important;font:bold 12px/1.3 Georgia,serif;letter-spacing:.03em}
.rel-univers__button:hover,.rel-univers__button:focus-visible{background:#6e4527;color:#fff8ea!important}
.rel-univers__foot,.rel-univers__none,.rel-univers__empty{text-align:center;color:#f5dfc0;margin-top:22px;font:14px/1.5 Georgia,serif}
.rel-univers__none[hidden],.rel-univers__card[hidden]{display:none!important}
.rel-univers--notice{padding:22px;background:#f4e8cd;border:1px solid #b99564;box-shadow:none;color:#463221}.rel-univers--notice p{margin:0}
@media(max-width:960px){.rel-univers__grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.rel-univers{padding:22px 14px;background-image:url("board/wood-board-mobile.webp");border-width:5px}.rel-univers__grid{grid-template-columns:1fr;gap:16px}.rel-univers__visual{height:220px}.rel-univers__search-label,.rel-univers__tag-label{width:100%}.rel-univers__filters input,.rel-univers__filters select{flex:1 1 100%;width:100%}}
@media(prefers-reduced-motion:reduce){.rel-univers__card{transition:none}.rel-univers__card:hover{transform:none}}

.rel-univers__pager{display:flex;gap:14px;align-items:center;justify-content:center;flex-wrap:wrap;margin:22px 0 0;font:15px Georgia,serif;color:#f8e2b8}
.rel-univers__pager a{background:#f3e4c7;color:#442a16!important;padding:9px 15px;border:1px solid #c09e63;border-radius:3px;text-decoration:none!important;font-weight:700}
.rel-univers__pager a:hover{background:#fff4d9}

/* Lien croisé vers la fiche Système, distinct du lien vers le sujet Discord. */
.rel-univers__button--system{margin-top:auto;background:#eee0c0;color:#49311d!important;border-color:#ae8b62}
.rel-univers__button--system:hover,.rel-univers__button--system:focus-visible{background:#d6c095;color:#271507!important}
.rel-univers__button--system + .rel-univers__button{margin-top:0}

/* 1.9.24 : fond personnalisable du shortcode, galerie et recherches globales. */
.rel-univers.rel-univers--custom-bg{background-image:linear-gradient(rgba(9,6,4,var(--rel-univers-bg-veil,.35)),rgba(9,6,4,var(--rel-univers-bg-veil,.35))),var(--rel-univers-bg)!important;background-position:center center!important;background-size:cover!important;background-repeat:no-repeat!important}
.rel-univers__filter-button,.rel-univers__link button,.rel-univers__interest button{min-height:40px;border:1px solid #bc955a;color:#fceacd;background:#633a20;border-radius:4px;cursor:pointer;font:700 13px Georgia,serif;padding:8px 12px}
.rel-univers__filter-button:hover,.rel-univers__link button:hover,.rel-univers__interest button:hover{background:#86502b}
.rel-univers__count{color:#ffedc9;font:14px Georgia,serif;text-align:center;margin:0 0 14px}
.rel-univers__interest{display:flex;justify-content:center;align-items:center;gap:10px;flex-wrap:wrap;margin:10px 0;color:#3a2416;font:700 13px Georgia,serif}
.rel-univers__interest button[aria-pressed=true]{background:#24664a;border-color:#32845f;color:#fff}
.rel-univers__interest a{color:#5a3421;text-decoration:underline}
.rel-univers__paper .rel-univers__interest{padding:8px 0;margin-top:auto}
.rel-univers__detail-tags{display:flex;flex-wrap:wrap;justify-content:center;gap:9px;margin:0 0 18px}
.rel-univers__detail-tags span{border:1px solid #d0ad70;background:#302115;color:#ffe7bb;padding:5px 12px;border-radius:5px}
.rel-univers__gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr));gap:12px;margin:22px 0}
.rel-univers__gallery a{display:block;border:3px solid #b48c50;background:#211710;min-width:0}
.rel-univers__gallery img{width:100%;height:260px;object-fit:contain;display:block}
.rel-univers__detail-text{max-width:900px;margin:20px auto;padding:23px;background:#f4e7cf;border:1px solid #c49c63;border-radius:4px;color:#352518;font:17px/1.65 Georgia,serif;white-space:normal;overflow-wrap:anywhere}
.rel-univers__detail-text p{margin:0 0 12px}
.rel-univers--detail>.rel-univers__interest{color:#ffe7c3}
.rel-univers__return{color:#ffe5b3!important;text-decoration:underline}
.rel-univers__link{margin-top:22px;display:flex;gap:10px;align-items:center;flex-wrap:wrap;background:#2b1c13;padding:16px;border:1px solid #b18a58;color:#f6e9cb}
.rel-univers__link h3{width:100%;margin:0;color:#ffe7b4;font:700 19px Georgia,serif}
.rel-univers__link select{background:#f5ecda;color:#271c12;padding:8px;border:1px solid #b58e59;max-width:100%}
@media(max-width:620px){.rel-univers--custom-bg{background-image:linear-gradient(rgba(9,6,4,var(--rel-univers-bg-veil,.35)),rgba(9,6,4,var(--rel-univers-bg-veil,.35))),var(--rel-univers-bg)!important}.rel-univers__gallery img{height:210px}}

/* 1.9.25 — vote discret, thème parchemin, sans couleur verte imposée par le thème. */
:is(body,.rel-app,#rel-annonces-app) .rel-univers__interest {
    display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:7px;
    margin:7px 0!important;padding:4px 0!important;color:#5b4434!important;
    font:normal 12px/1.35 Georgia,serif!important;
}
:is(body,.rel-app,#rel-annonces-app) .rel-univers__interest button[type="submit"] {
    appearance:none!important;-webkit-appearance:none!important;display:inline-flex!important;align-items:center;justify-content:center;
    flex:0 0 auto!important;width:auto!important;max-width:100%;min-width:0!important;min-height:30px!important;height:auto!important;
    margin:0!important;padding:5px 11px!important;border:1px solid #9c7950!important;border-radius:3px!important;
    background:#f6ead3!important;color:#543720!important;box-shadow:none!important;
    font:600 12px/1.35 Georgia,serif!important;letter-spacing:.01em!important;text-transform:none!important;
    white-space:normal!important;cursor:pointer!important;transition:background .18s ease,border-color .18s ease!important;
}
:is(body,.rel-app,#rel-annonces-app) .rel-univers__interest button[type="submit"]:hover,
:is(body,.rel-app,#rel-annonces-app) .rel-univers__interest button[type="submit"]:focus-visible {
    background:#e6d2ad!important;border-color:#765331!important;color:#382314!important;
}
:is(body,.rel-app,#rel-annonces-app) .rel-univers__interest button[type="submit"][aria-pressed="true"] {
    background:#d7c6a8!important;color:#382517!important;border-color:#876543!important;
}
:is(body,.rel-app,#rel-annonces-app) .rel-univers__interest button[type="submit"]:disabled{opacity:.55!important;cursor:wait!important}
:is(body,.rel-app,#rel-annonces-app) .rel-interest-count{font-size:12px!important;color:#6b5137!important;white-space:nowrap}
:is(body,.rel-app,#rel-annonces-app) .rel-interest-feedback{color:#6a482b;font-size:11px;font-style:italic;max-width:100%}
.rel-univers__paper .rel-univers__interest {margin-top:auto!important}
.rel-univers__layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(205px,255px);gap:22px;align-items:start}
.rel-univers__main{min-width:0}
.rel-univers__layout .rel-univers__grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.rel-univers__aside{min-width:0}
.rel-top10{min-width:0;max-width:100%;padding:18px 14px;background:#201914;border:1px solid #99734d;color:#f2dfbd;box-shadow:0 7px 16px rgba(0,0,0,.15);border-radius:3px}
.rel-top10__title{font:700 15px/1.4 Georgia,serif!important;letter-spacing:.09em;text-transform:uppercase;color:#e5bc7b!important;margin:0 0 3px!important}
.rel-top10__subtitle{font:italic 12px/1.3 Georgia,serif;color:#cdb18e;margin:0 0 13px!important}
.rel-top10__list{padding-left:25px!important;margin:0!important;list-style:decimal!important}
.rel-top10__item{display:list-item;min-width:0;list-style:decimal!important;padding:7px 0;border-top:1px solid rgba(199,164,112,.22);font:13px/1.35 Georgia,serif;color:#ecd5ae}
.rel-top10__item::marker{color:#c7a16d}
.rel-top10__item a{display:inline!important;color:#f1dfc2!important;text-decoration:none!important;overflow-wrap:anywhere}
.rel-top10__item a:hover{text-decoration:underline!important}
.rel-top10__item strong{float:right;margin:0 0 2px 8px;padding:2px 6px;border:1px solid #80623d;background:#37291c;color:#f4dfbc;border-radius:2px;font:700 12px Georgia,serif}
.rel-top10__empty{font:italic 13px/1.45 Georgia,serif;color:#d5b998;list-style:none}
@media(max-width:980px){.rel-univers__layout{grid-template-columns:1fr}.rel-univers__aside{max-width:none}.rel-univers__layout .rel-univers__grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.rel-univers__layout .rel-univers__grid{grid-template-columns:1fr}.rel-top10{margin-top:12px}}

/* REL 1.9.26 : réinitialisation accessible de tous les filtres et de la pagination. */
.rel-univers__reset {display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:7px 12px;
    border:1px solid rgba(227,197,146,.65);background:transparent;color:#f9dfb2;
    text-decoration:none;font:600 12px Georgia,serif;letter-spacing:.04em;}
.rel-univers__reset:hover,.rel-univers__reset:focus-visible {background:rgba(227,197,146,.16);color:#fff;}

/* 1.9.32 — bandeau des membres intéressés (réservé MJ/CA, données chargées par AJAX protégé). */
:is(.rel-app,.rel-univers) .rel-interest-people{display:block;max-width:100%;min-width:0;margin:9px 0 0;padding:12px 13px;border:1px solid #ac8252;border-radius:5px;background:linear-gradient(135deg,#342519,#19130f);color:#f8e7c9;box-shadow:0 3px 12px #0003;font:13px/1.4 Georgia,serif}
:is(.rel-app,.rel-univers) .rel-interest-people[hidden]{display:none!important}
.rel-interest-people__heading{font:bold 12px/1.4 Georgia,serif;letter-spacing:.035em;color:#f1d09b;margin:0 0 9px}
.rel-interest-people__heading span{color:#e6d5ba;font-weight:normal}
.rel-interest-people__members{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;min-width:0}
.rel-interest-people__member{display:inline-flex;align-items:center;gap:6px;max-width:100%;padding:4px 9px 4px 4px;border:1px solid #74563d;background:#493527;border-radius:99px;color:#fff0d6;font:12px/1.2 Georgia,serif;overflow-wrap:anywhere}
.rel-interest-people__member img{width:27px;height:27px;flex:none;border-radius:50%;object-fit:cover;background:#231912;border:1px solid #bb9b71}
.rel-interest-people__more{font:italic 12px Georgia,serif;color:#e6ca9d}
:is(.rel-app,#rel-annonces-app) .rel-sys-card>.rel-interest-people{margin:0;border-radius:0 0 6px 6px}
:is(.rel-app,#rel-annonces-app) .rel-sys-detail .rel-interest-people{width:100%}
@media(max-width:620px){.rel-interest-people__members{gap:5px}.rel-interest-people__member{font-size:11px}}


/* 1.9.42 — grille épurée, noms et avatars seulement sur la fiche. */
.rel-univers { width: 100%; max-width: var(--rel-page-max-width, 1440px); }
.rel-univers__layout .rel-univers__grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--rel-grid-card-min, 250px)), 1fr));
    align-items: start;
}
.rel-univers__card .rel-univers__paper { gap: 9px; }
.rel-univers__card .rel-univers__visual { height: clamp(140px, 17vw, 210px); }
.rel-univers__card .rel-univers__button--detail { margin-top: 0; }
.rel-univers__card .rel-univers__interest { margin-top: auto!important; }
@media(max-width:620px){
    .rel-univers__layout .rel-univers__grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--rel-grid-card-min, 250px)),1fr)); }
    .rel-univers__card .rel-univers__visual { height:180px; }
}
