/* Database-first wiki UI. Reading-guide rules stay in wiki-guides.css. */
body.wiki-shell .wiki-content .wiki-catalog,body.wiki-shell .wiki-content .wiki-entity{width:100%;min-width:0;color:#40352e;font:16px/1.5 'Source Serif 4',Georgia,serif}
body.wiki-shell .wiki-content :is(.wiki-catalog,.wiki-entity) h1{font:700 40px/1.12 'Fraunces',Georgia,serif;margin:3px 0 12px;color:#352820}
body.wiki-shell .wiki-content :is(.wiki-catalog,.wiki-entity) h2{font:700 25px/1.2 'Fraunces',Georgia,serif;margin:22px 0 12px;padding-bottom:9px;border-bottom:1px dotted #bd826d;color:#352820;scroll-margin-top:78px}
body.wiki-shell .wiki-content :is(.wiki-catalog,.wiki-entity) h3{font:700 19px/1.25 'Source Serif 4',Georgia,serif;margin:8px 0;color:#352820}
body.wiki-shell .wiki-content .catalog-header,body.wiki-shell .wiki-content .entity-header{padding-bottom:16px;margin-bottom:20px;border-bottom:1px dotted #bd826d}
body.wiki-shell .wiki-content .catalog-header{padding-right:165px;background:url('/assets/ui/header-atelier.webp') right top/155px auto no-repeat;min-height:110px}
body.wiki-shell .wiki-content .catalog-header p{max-width:800px;margin:6px 0}
body.wiki-shell .wiki-content :is(.catalog-stats,.entity-stats){display:flex;gap:9px;flex-wrap:wrap;margin:12px 0;padding:0;list-style:none}
body.wiki-shell .wiki-content :is(.catalog-stats,.entity-stats)>*{padding:6px 11px;margin:0;border:1px solid #bfa57e;background:#f8efdc}
body.wiki-shell .wiki-content .catalog-layout{display:grid;grid-template-columns:205px minmax(0,1fr);gap:22px;align-items:start}
body.wiki-shell .wiki-content .catalog-filters{padding:16px;background:#eee2cb;border:1px solid #bda37d;min-width:0;position:sticky;top:74px}
body.wiki-shell .wiki-content .catalog-filters h2{font-size:21px;margin:0 0 14px}
body.wiki-shell .wiki-content .catalog-filters label{display:block;margin-bottom:14px;font-size:15px}
body.wiki-shell .wiki-content .catalog-filters :is(input,select){display:block;width:100%;margin-top:5px}
body.wiki-shell .wiki-content :is(.catalog-workspace,.catalog-aside){min-width:0}
body.wiki-shell .wiki-content .catalog-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 12px;margin-bottom:14px;background:#eee2cb;border:1px solid #bda37d}
body.wiki-shell .wiki-content :is(.wiki-catalog,.wiki-entity) :is(input[type=search],select,button){font:15px/1.35 'Source Serif 4',Georgia,serif;color:#40352e;background:#fbf3e2;border:1px solid #bda37d;border-radius:3px;min-height:36px;padding:6px 10px;max-width:100%}
body.wiki-shell .wiki-content .catalog-toolbar input[type=search]{flex:1 1 240px;min-width:0}
body.wiki-shell .wiki-content .catalog-toolbar label{display:flex;align-items:center;gap:6px;font-size:14px}
body.wiki-shell .wiki-content .catalog-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
body.wiki-shell .wiki-content .catalog-card{position:relative;min-width:0;padding:10px 12px 12px;margin:0;background:#f8efdc;border:1px solid #bca27d;box-shadow:inset 0 0 0 3px #eee1c9;border-radius:3px}
body.wiki-shell .wiki-content .catalog-card h3{font-size:17px;line-height:1.3;margin:8px 0}
body.wiki-shell .wiki-content .catalog-card p{margin:5px 0;font-size:14px;line-height:1.4}
body.wiki-shell .wiki-content .catalog-card :is(ul,ol){margin:8px 0;padding-left:18px;font-size:14px}
body.wiki-shell .wiki-content .catalog-card li{margin:3px 0;padding:0}
body.wiki-shell .wiki-content .catalog-card dl{display:grid;grid-template-columns:1fr 1fr;gap:4px;margin:8px 0;font-size:14px}
body.wiki-shell .wiki-content .catalog-card dd{margin:0;text-align:right}
body.wiki-shell .wiki-content .entity-media{display:flex;align-items:center;justify-content:center;min-width:0;overflow:hidden;aspect-ratio:1/1;margin:0;background:#eee2cb;border:1px solid #cfba98}
body.wiki-shell .wiki-content .entity-media img{display:block;width:100%;height:100%;object-fit:contain;padding:6px;margin:0}
body.wiki-shell .wiki-content .entity-image-placeholder{display:flex;width:100%;height:100%;min-height:130px;flex-direction:column;align-items:center;justify-content:center;gap:13px;color:#685846;font:13px/1.3 Georgia,serif;background:#eee2cb}
body.wiki-shell .wiki-content .placeholder-frame{display:block;width:44px;height:35px;border:1px dashed #a78f70;position:relative}
body.wiki-shell .wiki-content .placeholder-frame:after{content:'';position:absolute;width:17px;height:17px;border:1px solid #a78f70;left:12px;top:8px}
body.wiki-shell .wiki-content .catalog-group{margin-bottom:22px;min-width:0}
body.wiki-shell .wiki-content .catalog-group>h2{margin-top:10px}
body.wiki-shell .wiki-content [data-catalog-grouped] .catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
body.wiki-shell .wiki-content [data-catalog-grouped] .catalog-card .entity-media{width:75px;float:right;margin:0 0 6px 10px}
body.wiki-shell .wiki-content [data-catalog-grouped] .entity-image-placeholder{min-height:75px;font-size:10px;gap:5px}
body.wiki-shell .wiki-content .catalog-pagination{display:flex;align-items:center;justify-content:center;gap:14px;margin:20px 0}
body.wiki-shell .wiki-content .catalog-pagination button:disabled{opacity:.5;cursor:default}
body.wiki-shell .wiki-content .catalog-chip{margin:0 6px 8px 0}
body.wiki-shell .wiki-content .catalog-empty{padding:24px;background:#eee2cb;border:1px dashed #bda37d}
body.wiki-shell .wiki-content [data-catalog-view=unused]{display:none}
body.wiki-shell .wiki-content [data-view=list] .catalog-grid{grid-template-columns:1fr}
body.wiki-shell .wiki-content [data-view=list] .catalog-card{display:grid;grid-template-columns:85px minmax(0,1fr);column-gap:16px}
body.wiki-shell .wiki-content [data-view=list] .catalog-card>.entity-media{grid-column:1;grid-row:1/span 6;width:85px;float:none}
body.wiki-shell .wiki-content [data-view=list] .catalog-card>:not(.entity-media){grid-column:2}
body.wiki-shell .wiki-content [data-view=list] .entity-image-placeholder{min-height:85px;font-size:11px}
body.wiki-shell .wiki-content .entity-hero{display:grid;grid-template-columns:230px minmax(0,1fr);gap:24px;align-items:start;margin:16px 0 24px}
body.wiki-shell .wiki-content .entity-summary p{margin:9px 0}
body.wiki-shell .wiki-content .entity-layout{display:grid;grid-template-columns:180px minmax(0,1fr);gap:24px;align-items:start}
body.wiki-shell .wiki-content .entity-toc{position:sticky;top:74px;background:#f8efdc;border:1px solid #bda37d;padding:13px 16px;min-width:0}
body.wiki-shell .wiki-content .entity-toc :is(ul,ol){padding-left:17px;margin:7px 0}
body.wiki-shell .wiki-content .entity-toc li{margin:6px 0;padding:0;font-size:14px}
body.wiki-shell .wiki-content .entity-body{min-width:0}
body.wiki-shell .wiki-content .entity-facts{display:grid;grid-template-columns:minmax(110px,1fr) 2fr;gap:0;margin:12px 0;border:1px solid #bda37d}
body.wiki-shell .wiki-content .entity-facts :is(dt,dd){margin:0;padding:9px 12px;border-bottom:1px solid #cfba98;background:#f8efdc}
body.wiki-shell .wiki-content .entity-facts :is(dt,dd){min-width:0;overflow-wrap:anywhere}
body.wiki-shell .wiki-content .entity-facts dt{font-weight:600;background:#eee2cb}
body.wiki-shell .wiki-content :is(.entity-body,.entity-summary) table{width:100%;border-collapse:collapse;font-size:15px;background:#f8efdc}
body.wiki-shell .wiki-content :is(.entity-body,.entity-summary) th{background:#59674f!important;color:#fff5e6!important}
body.wiki-shell .wiki-content :is(.entity-body,.entity-summary) :is(th,td){padding:8px 12px;border:1px solid #bda37d;overflow-wrap:anywhere}
body.wiki-shell .wiki-content .entity-related{display:flex;flex-wrap:wrap;gap:9px;margin:13px 0}
body.wiki-shell .wiki-content .entity-related a{padding:6px 10px;background:#eee2cb;border:1px solid #bda37d}
body.wiki-shell .wiki-content .wiki-entity .entity-body table{min-width:0!important;max-width:100%;table-layout:fixed}
body.wiki-shell .wiki-content .wiki-entity .entity-body :is(th,td){white-space:normal!important;overflow-wrap:anywhere}
body.wiki-shell .wiki-content .wiki-entity .entity-body tbody th{background:#eee2cb!important;color:#40352e!important}
body.wiki-shell .wiki-content .entity-neighbours{display:flex;justify-content:space-between;gap:16px;margin-top:22px;padding-top:15px;border-top:1px dotted #bd826d}
body.wiki-shell .wiki-content .catalog-card{color:#40352e!important;text-decoration:none!important}
body.wiki-shell .wiki-content .catalog-chips{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}
body.wiki-shell .wiki-content .catalog-chips a{display:block;padding:5px 10px;background:#f8efdc;border:1px solid #bda37d;text-decoration:none}
body.wiki-shell .wiki-content .catalog-chips a[aria-current=page]{background:#59674f;color:#fff5e6!important}
body.wiki-shell .wiki-content .catalog-card a{color:#40352e!important;text-decoration:none!important}
body.wiki-shell .wiki-content .client-entity #commissions ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;list-style:none;padding:0}
body.wiki-shell .wiki-content .client-entity #commissions li{padding:11px 13px;background:#f8efdc;border:1px solid #bda37d;margin:0}
body.wiki-shell .wiki-content .client-entity #commissions li a{display:block;margin-bottom:7px;background:none;border:0;padding:0;font-weight:600}
body.wiki-shell .wiki-content .client-entity #unlocks>section{padding:12px 15px;margin:12px 0;background:#f8efdc;border:1px solid #bda37d}
@media(max-width:760px){body.wiki-shell .wiki-content .client-entity #commissions ul{grid-template-columns:1fr}}

body.wiki-shell .wiki-content .catalog-card :is(h2,h3){font-size:18px;line-height:1.3;margin:8px 0;padding:0;border:0;text-decoration:underline;text-underline-offset:3px}
body.wiki-shell .wiki-content .catalog-card:hover{border-color:#946750;background:#fbf3e2}
body.wiki-shell .wiki-content .catalog-card-tags{display:flex;flex-wrap:wrap;gap:5px;margin-top:9px}
body.wiki-shell .wiki-content .catalog-card-tags .tag{margin:0;background:#59674f!important;color:#fff5e6!important}
body.wiki-shell .wiki-content .catalog-card .entity-media{aspect-ratio:4/3}
body.wiki-shell .wiki-content .catalog-card-media{display:block}
body.wiki-shell .wiki-content [data-view=list] .catalog-card>.catalog-card-media{grid-column:1;grid-row:1/span 8;width:85px}
body.wiki-shell .wiki-content [data-view=list] .catalog-card .entity-media{aspect-ratio:1}
body.wiki-shell .wiki-content .patterns-catalog .catalog-layout{grid-template-columns:minmax(0,1fr)205px}
body.wiki-shell .wiki-content .patterns-catalog .catalog-filters{position:static;display:flex;flex-wrap:wrap;gap:10px;margin-bottom:14px;padding:12px}
body.wiki-shell .wiki-content .patterns-catalog .catalog-filters label{flex:1 1 150px;min-width:0;margin:0}
body.wiki-shell .wiki-content .patterns-catalog .catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
body.wiki-shell .wiki-content .catalog-aside>section{padding:12px 15px;margin-bottom:14px;border:1px solid #bda37d;background:#eee2cb;font-size:15px}
body.wiki-shell .wiki-content .catalog-aside h2{font-size:20px;margin-top:0}
body.wiki-shell .wiki-content .entity-summary dl.entity-stats{display:grid;grid-template-columns:minmax(105px,1fr) 2fr;gap:0;max-width:470px}
body.wiki-shell .wiki-content .entity-summary dl.entity-stats :is(dt,dd){margin:0;padding:8px 12px;border:1px solid #bda37d}
body.wiki-shell .wiki-content :is(.client-entity,.commission-entity) .entity-hero{grid-template-columns:180px minmax(0,1fr)230px}
body.wiki-shell .wiki-content :is(.client-entity,.commission-entity) aside.entity-facts{display:block;padding:12px;margin:0}
body.wiki-shell .wiki-content aside.entity-facts h2{font-size:21px;margin-top:0}
body.wiki-shell .wiki-content aside.entity-facts dl{display:grid;grid-template-columns:1fr 1.3fr;font-size:14px;margin:0}
body.wiki-shell .wiki-content .entity-toc>a{display:block;margin:8px 0}
body.wiki-shell .wiki-content section.entity-related{display:block}
body.wiki-shell .wiki-content section.entity-facts{display:block;padding:12px;margin:10px 0}
body.wiki-shell .wiki-content section.entity-facts dl{display:grid;grid-template-columns:130px 1fr;margin:0}
body.wiki-shell .wiki-content :is(.wiki-catalog,.wiki-entity) [hidden]{display:none!important}
@media(max-width:1100px){body.wiki-shell .wiki-content .patterns-catalog .catalog-layout{grid-template-columns:minmax(0,1fr)}body.wiki-shell .wiki-content .patterns-catalog .catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr))}body.wiki-shell .wiki-content :is(.client-entity,.commission-entity) .entity-hero{grid-template-columns:170px minmax(0,1fr)}body.wiki-shell .wiki-content aside.entity-facts{grid-column:1/-1}}
@media(max-width:760px){body.wiki-shell .wiki-content .patterns-catalog .catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body.wiki-shell .wiki-content :is(.client-entity,.commission-entity) .entity-hero{grid-template-columns:110px minmax(0,1fr)}body.wiki-shell .wiki-content section.entity-facts dl{grid-template-columns:100px minmax(0,1fr)}body.wiki-shell .wiki-content .entity-summary dl.entity-stats{grid-template-columns:90px minmax(0,1fr);font-size:14px}body.wiki-shell .wiki-content .entity-summary dl.entity-stats :is(dt,dd){padding:7px}}

@media(max-width:1199px){body.wiki-shell .wiki-content .catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){body.wiki-shell .wiki-content .catalog-layout{grid-template-columns:175px minmax(0,1fr);gap:15px}body.wiki-shell .wiki-content .catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body.wiki-shell .wiki-content .entity-layout{grid-template-columns:155px minmax(0,1fr);gap:16px}}
@media(max-width:760px){body.wiki-shell .wiki-content :is(.wiki-catalog,.wiki-entity) h1{font-size:32px}body.wiki-shell .wiki-content .catalog-header{padding-right:0;background:none;min-height:0}body.wiki-shell .wiki-content .catalog-layout,body.wiki-shell .wiki-content .entity-layout{display:block}body.wiki-shell .wiki-content .catalog-filters{position:static;display:grid;grid-template-columns:1fr 1fr;gap:0 12px;margin-bottom:16px;padding:12px}body.wiki-shell .wiki-content .catalog-filters h2{grid-column:1/-1}body.wiki-shell .wiki-content .catalog-filters label{font-size:14px;margin-bottom:11px}body.wiki-shell .wiki-content .catalog-toolbar{padding:9px;gap:8px}body.wiki-shell .wiki-content .catalog-toolbar select{max-width:145px}body.wiki-shell .wiki-content .catalog-grid{gap:10px}body.wiki-shell .wiki-content .catalog-card{padding:8px;font-size:14px}body.wiki-shell .wiki-content .catalog-card h3{font-size:16px}body.wiki-shell .wiki-content .entity-image-placeholder{min-height:115px;font-size:11px}body.wiki-shell .wiki-content [data-catalog-grouped] .catalog-grid{grid-template-columns:1fr}body.wiki-shell .wiki-content .entity-hero{grid-template-columns:110px minmax(0,1fr);gap:14px}body.wiki-shell .wiki-content .entity-hero .entity-image-placeholder{min-height:110px}body.wiki-shell .wiki-content .entity-toc{position:static;margin-bottom:18px}body.wiki-shell .wiki-content .entity-toc ul{display:flex;flex-wrap:wrap;gap:4px 18px;list-style:none;padding:0}body.wiki-shell .wiki-content .entity-facts{grid-template-columns:minmax(88px,1fr) 2fr;font-size:14px}body.wiki-shell .wiki-content .entity-facts :is(dt,dd){padding:8px}body.wiki-shell .wiki-content .entity-body table{font-size:14px}body.wiki-shell .wiki-content .entity-body :is(th,td){padding:7px}body.wiki-shell .wiki-content .catalog-pagination{gap:10px;font-size:14px}}
