/* One collection frame, shared by public pages and the member shell. */
:root{--library-width:1504px;--library-ink:#23382d;--library-green:#244e3b;--library-gold:#bc943f;--library-line:#b8a36e;--library-paper:#fffdf4;--library-text:'Trebuchet MS','Segoe UI',Arial,sans-serif}
html:root{--archive-width:min(var(--library-width),calc(100vw - 64px))}
html body main.archive-main.catalogue,html body main.central-project,html body main.compte-main,html body main.test-main{width:var(--archive-width);max-width:var(--library-width)}
html body footer.site-footer.portal-footer.shell-footer>.content{width:100%;max-width:none;padding:0}
html body footer.site-footer.portal-footer.shell-footer{width:var(--archive-width);max-width:var(--library-width);margin:38px auto 24px;padding:32px;border:1px solid #68794d;border-top:3px solid #ba984c;border-radius:6px;background:#203e31;box-sizing:border-box}
@media(max-width:760px){html body footer.site-footer.portal-footer.shell-footer{padding:22px 18px}}
html body:has(#site-header){background:#e9e6cc;background-image:radial-gradient(ellipse at top,#f7f5e4 0%,transparent 64%),linear-gradient(90deg,#dbe0bf,#f1edd8 48%,#dbe0bf);color:var(--library-ink);font-family:var(--library-text)}
html body #site-header,html body #site-navigation,html body main.archive-workspace,html body main.archive-home,html body .shell-footer{width:min(var(--library-width),calc(100% - 64px));max-width:var(--library-width);margin-inline:auto;box-sizing:border-box}
html body #site-header{border-radius:6px 6px 0 0;border:1px solid #62794a;border-top:3px solid #cfad59;border-bottom:0;box-shadow:0 8px 28px #18382c20;background:linear-gradient(90deg,#173d2ffb,#254d39ef 43%,#29493255),url('/assets/souvenirs/village-2005-jol.jpg') right 50%/620px auto no-repeat}
html body #site-navigation{border:1px solid #547247;border-top:1px solid #a5b886;border-bottom:3px solid #a78c45;border-radius:0 0 6px 6px;background:#204b35;box-shadow:0 6px 18px #17332616}
html body #site-navigation .portal-register{border:1px solid #efd484;background:#eed590;color:#243b29;box-shadow:inset 0 1px #fff5c7}
html body .shell-footer{border:1px solid #68794d;border-top:3px solid #ba984c;border-radius:6px;background:#203e31;color:#e9e5c9;padding:32px;margin-top:38px}
html body .shell-footer a{color:#f4df9b}html body .shell-footer p,html body .shell-footer small{color:#e0dfc3}
html body main.archive-workspace{padding:26px 0 0;font-family:var(--library-text);font-size:1rem;--archive-border:#b4a06e;--archive-paper:#fffdf5}
.library-games{margin:0 0 12px;border:0}.library-games>summary{display:none}.library-games>nav{display:grid!important;grid-template-columns:repeat(8,minmax(0,1fr));gap:8px}
@media(min-width:761px){.library-games::details-content{content-visibility:visible;display:block;height:auto}}
.library-games a{--game:#386944;display:flex;align-items:center;justify-content:center;min-height:55px;padding:9px 12px;border:1px solid #adab85;border-top:4px solid var(--game);border-radius:5px;background:#f9f7e9;color:#344531;font-size:.9375rem;font-weight:700;text-align:center;text-decoration:none;box-shadow:0 2px 2px #263f2110}
[data-game=arena]{--game:#467488!important}[data-game=pocket]{--game:#986035!important}[data-game=arena-pocket]{--game:#61869a!important}[data-game=battles]{--game:#ad5e2d!important}[data-game=battles-2]{--game:#86546e!important}[data-game=gardiens]{--game:#657e3c!important}[data-game=tous]{--game:#69735f!important}
.library-games a[aria-current=true]{color:#fff9db;background:var(--game);border-color:var(--game);box-shadow:inset 0 1px #ffffff30,0 3px 8px #28472420}.library-games a:hover{box-shadow:0 0 0 2px #c6b57e}
html body .archive-workspace .archive-sections{display:flex;flex-wrap:wrap;gap:0;margin:0 0 24px;border:1px solid #a99a6d;border-radius:5px;background:#e8e0bd;padding:4px}
html body .archive-workspace .archive-sections a{flex:1;padding:12px 16px;min-height:45px;font-family:var(--library-text);font-weight:700;line-height:1.4}
html body .archive-workspace .archive-sections a[aria-current]{background:#315840;color:#fff7d6;border:1px solid #214630;box-shadow:inset 0 1px #5a7857}
html body .archive-workspace .catalogue-introduction{padding:6px 0 20px;margin:0;border-bottom:2px solid #b8ab76;max-width:none;display:block}
html body .archive-workspace .catalogue-introduction h1{font:700 clamp(1.85rem,2.5vw,2.65rem)/1.15 Georgia,serif;color:#264b36;margin:0 0 12px;letter-spacing:-.025em}
html body .archive-workspace .catalogue-introduction p{max-width:85ch;font:400 1rem/1.65 var(--library-text);margin:0;color:#53614a}
html body .archive-workspace .archive-search{margin-top:22px;background:#f7f3df;border:1px solid #ac9b65;border-radius:5px;box-shadow:inset 0 2px #fff9e8;padding:18px 20px}
html body .archive-workspace .archive-search-row{gap:16px;align-items:end}html body .archive-workspace .archive-search :is(input,select){background:#fffef6;border:1px solid #9c9f78;border-radius:4px;min-height:46px;font:400 1rem var(--library-text);color:#294635}
html body .archive-workspace .archive-search button{background:#3f6942;border:1px solid #2e5234;box-shadow:inset 0 1px #82a66e;color:#fff9e5;min-height:46px;font:700 1rem var(--library-text);border-radius:4px}
html body .archive-workspace .archive-refine{margin-top:14px;padding-top:10px}.archive-workspace .archive-refine summary{font-size:.9375rem}
html body .archive-workspace :is(.source-results,.source-results.source-gallery,.ch-list){grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;align-items:stretch}
html body .archive-workspace :is(.source-entry,.ch-preview){--game:#5a7a47;display:flex;flex-direction:column;border:1px solid #a99b6f;border-top:4px solid var(--game);border-radius:6px;background:#fffdf3;box-shadow:0 3px 0 #d5cbaa,0 7px 17px #3247280c;overflow:hidden}
html body .archive-workspace :is(.source-entry-copy,.ch-preview-copy){display:flex;flex-direction:column;flex:1;padding:22px}
html body .archive-workspace :is(.source-entry-copy,.ch-preview-copy)>p{font:400 1rem/1.65 var(--library-text)}
html body .archive-workspace :is(.source-entry-copy,.ch-preview-copy) :is(h2,h3){font:700 1.3rem/1.35 Georgia,serif;letter-spacing:0;margin:8px 0 14px;color:#294a32}
html body .archive-workspace .archive-card-action{margin-top:auto!important;padding-top:17px;border-top:1px solid #d3c69c}
html body .archive-workspace :is(.source-kind,.archive-card-meta,.source-dating){font:400 .875rem/1.55 var(--library-text)!important;color:#5e694e}
.library-game-label{display:block;color:#47653c;font:700 .875rem/1.4 var(--library-text);margin-bottom:5px}
html body .archive-workspace :is(.source-visual,.ch-preview-image){height:226px;background:linear-gradient(#edf0d8,#e0e4c0);border-bottom:1px solid #b9bd91;padding:16px}
html body .archive-workspace :is(.source-visual,.ch-preview-image) img{max-height:100%;max-width:100%;object-fit:contain;filter:none}
html body .archive-workspace .source-results.source-single,html body .archive-workspace .ch-list.ch-single{grid-template-columns:minmax(0,1fr);max-width:1100px}
html body .archive-workspace .catalogue-grid{gap:12px;margin-top:20px}html body .archive-workspace details.catalogue-version{border:1px solid #a7a578;border-left:5px solid #5c8048;box-shadow:0 2px 0 #d8d0ac;border-radius:5px}
html body .archive-workspace .catalogue-version>summary{padding:18px 22px;background:linear-gradient(100deg,#e7edca,#faf8e9 60%);grid-template-columns:minmax(150px,.65fr) minmax(190px,1fr) minmax(210px,.8fr)}
html body .archive-workspace .catalogue-version[open]>summary{background:#dce5b8;border-bottom:1px solid #aab682}html body .archive-workspace .version-columns{background:#fffdf4}
html body .archive-workspace :is(.provenance-record,.ch-caution,.fresco-event>article,.source-site-context,.ch-version,.archive-scope){border:1px solid #b7a875;border-left:4px solid #849459;border-radius:5px;background:#f7f4df;padding:18px}
html body .archive-workspace :is(.source-record,.archive-help,.ch-method,.ch-evidence,.archive-document,.historical-complement,.archive-legacy-note){border:1px solid #b4a578;border-radius:5px;background:#f5f1dc;overflow:hidden}
html body .archive-workspace :is(.archive-help,.ch-method,.ch-evidence)>summary{padding:16px 20px;background:#e9e3c5;font:700 .9375rem/1.5 var(--library-text)}
html body .archive-workspace :is(.provenance-record,.source-record) dl>div{padding:12px 0;border-bottom:1px solid #d6cda8}html body .archive-workspace :is(.provenance-record,.source-record) dt{font-weight:700;color:#415a38}html body .archive-workspace :is(.provenance-record,.source-record) dd{line-height:1.65}
html body .archive-home :is(.home-fresco,.ah-entry,.ah-card,.home-update){border-color:#b9a46b;box-shadow:0 3px 0 #d4c8a4}
@media(min-width:1800px){:root{--library-width:1664px}}
@media(max-width:760px){html:root{--archive-width:calc(100vw - 24px)}}
@media(max-width:1100px){.library-games>nav{grid-template-columns:repeat(4,minmax(0,1fr))}html body .archive-workspace :is(.source-results,.source-results.source-gallery,.ch-list){grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){html body #site-header,html body #site-navigation,html body main.archive-workspace,html body main.archive-home,html body .shell-footer{width:calc(100% - 24px)}html body main.archive-workspace{padding-top:18px}.library-games{border:1px solid #9caa78;background:#e7edcc;border-radius:5px}.library-games>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;padding:10px 14px;cursor:pointer;font-weight:700;font-size:.9375rem}.library-games>summary span{font-size:.8125rem;font-weight:400}.library-games:not([open])>nav{display:none!important}.library-games[open]>nav{grid-template-columns:repeat(2,minmax(0,1fr));padding:8px}.library-games a{min-height:44px;font-size:.875rem}html body .archive-workspace .archive-sections{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:20px}html body .archive-workspace .archive-sections a{padding:10px 8px;font-size:.875rem}html body .archive-workspace .archive-search{padding:16px}html body .archive-workspace .catalogue-version>summary{grid-template-columns:minmax(0,1fr);padding:16px;gap:12px}html body .archive-workspace :is(.source-results,.source-results.source-gallery,.ch-list){grid-template-columns:minmax(0,1fr)}html body .archive-workspace :is(.source-entry-copy,.ch-preview-copy){padding:18px}html body .archive-workspace :is(.source-visual,.ch-preview-image){height:215px}html body .shell-footer{padding:22px 18px}}
@media(prefers-reduced-motion:no-preference){.library-games a{transition:background-color .15s ease,box-shadow .15s ease}}
