/* despani-fold: generic fold panel for module positions (markup from the SM.fold macro in modules/_position.ftl).
   Desktop only (>=901px). Below that the panel is layout-transparent: no chrome, no chips, modules render as before.
   Attributes: [data-desp-fold=key] [data-fold-tone=light|dark] [data-fold-chips=wrap|row] .dfold-group[data-fold-group=start|center|end] */
.dfold-chip[data-mod-type="content_popular"]{--dfold-ico:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3.5%2017%209%2011.5l3.5%203.5%208-8%22/%3E%3Cpath%20d%3D%22M15%207h5.5v5.5%22/%3E%3C/svg%3E")}
.dfold-chip[data-mod-type="content_latest"]{--dfold-ico:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%228.5%22/%3E%3Cpath%20d%3D%22M12%207.5V12l3%202%22/%3E%3C/svg%3E")}
.dfold-chip[data-mod-type="blog_popular"]{--dfold-ico:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%2020l4.5-1%2010-10a2.1%202.1%200%200%200-3-3l-10%2010z%22/%3E%3Cpath%20d%3D%22M13.5%207.5l3%203%22/%3E%3C/svg%3E")}
.dfold-chip[data-mod-type="blog_latest_posts"]{--dfold-ico:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%2020l4.5-1%2010-10a2.1%202.1%200%200%200-3-3l-10%2010z%22/%3E%3C/svg%3E")}
.dfold-chip[data-mod-type="games_popular"]{--dfold-ico:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%224%22%20y%3D%224%22%20width%3D%2216%22%20height%3D%2216%22%20rx%3D%223.5%22/%3E%3Ccircle%20cx%3D%229%22%20cy%3D%229%22%20r%3D%221%22%20fill%3D%22%23000%22/%3E%3Ccircle%20cx%3D%2215%22%20cy%3D%2215%22%20r%3D%221%22%20fill%3D%22%23000%22/%3E%3Ccircle%20cx%3D%2215%22%20cy%3D%229%22%20r%3D%221%22%20fill%3D%22%23000%22/%3E%3Ccircle%20cx%3D%229%22%20cy%3D%2215%22%20r%3D%221%22%20fill%3D%22%23000%22/%3E%3C/svg%3E")}
.dfold-chip[data-mod-type="site_online"]{--dfold-ico:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%228%22%20r%3D%223.5%22/%3E%3Cpath%20d%3D%22M3.5%2020c.8-3.6%203.3-5.5%206.5-5.5s5.7%201.9%206.5%205.5%22/%3E%3Ccircle%20cx%3D%2218.5%22%20cy%3D%226.5%22%20r%3D%221.8%22%20fill%3D%22%23000%22/%3E%3C/svg%3E")}
.dfold-chip[data-mod-type="site_user_profile"]{--dfold-ico:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%228.5%22%20r%3D%224%22/%3E%3Cpath%20d%3D%22M4.5%2020.5c1-4%204-6%207.5-6s6.5%202%207.5%206%22/%3E%3C/svg%3E")}
.dfold-chip[data-mod-type="site_stats"]{--dfold-ico:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3.5%2020.5h17%22/%3E%3Cpath%20d%3D%22M7%2017v-5.5%22/%3E%3Cpath%20d%3D%22M12%2017V5.5%22/%3E%3Cpath%20d%3D%22M17%2017V9%22/%3E%3C/svg%3E")}
.dfold-chip[data-mod-type="site_eklesia"]{--dfold-ico:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%203v18M7%208h10%22/%3E%3C/svg%3E")}
.dfold-chip[data-mod-type="forum_popular"]{--dfold-ico:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%205.5h16v10H9.5L5%2019.5v-4H4z%22/%3E%3C/svg%3E")}
.dfold-chip[data-mod-type="forum_latest_posts"]{--dfold-ico:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%205.5h16v10H9.5L5%2019.5v-4H4z%22/%3E%3C/svg%3E")}
.dfold-chip[data-mod-type="gallery_latest"]{--dfold-ico:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223.5%22%20y%3D%224.5%22%20width%3D%2217%22%20height%3D%2215%22%20rx%3D%222.5%22/%3E%3Ccircle%20cx%3D%229%22%20cy%3D%2210%22%20r%3D%221.8%22/%3E%3Cpath%20d%3D%22m4%2018%205-5%204%204%202.5-2.5L20%2019%22/%3E%3C/svg%3E")}
.dfold-chip[data-mod-type="gallery_random"]{--dfold-ico:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223.5%22%20y%3D%224.5%22%20width%3D%2217%22%20height%3D%2215%22%20rx%3D%222.5%22/%3E%3Ccircle%20cx%3D%229%22%20cy%3D%2210%22%20r%3D%221.8%22/%3E%3Cpath%20d%3D%22m4%2018%205-5%204%204%202.5-2.5L20%2019%22/%3E%3C/svg%3E")}
.dfold-chip[data-mod-type="site_search"]{--dfold-ico:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2210.5%22%20cy%3D%2210.5%22%20r%3D%226.25%22/%3E%3Cpath%20d%3D%22m15.25%2015.25%205.25%205.25%22/%3E%3C/svg%3E")}
.dfold-chip[data-mod-type="site_sections"]{--dfold-ico:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223.5%22%20y%3D%223.5%22%20width%3D%227%22%20height%3D%227%22%20rx%3D%221.6%22/%3E%3Crect%20x%3D%2213.5%22%20y%3D%223.5%22%20width%3D%227%22%20height%3D%227%22%20rx%3D%221.6%22/%3E%3Crect%20x%3D%223.5%22%20y%3D%2213.5%22%20width%3D%227%22%20height%3D%227%22%20rx%3D%221.6%22/%3E%3Crect%20x%3D%2213.5%22%20y%3D%2213.5%22%20width%3D%227%22%20height%3D%227%22%20rx%3D%221.6%22/%3E%3C/svg%3E")}
.dfold-chip[data-mod-type="site_calendar"]{--dfold-ico:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223.5%22%20y%3D%225%22%20width%3D%2217%22%20height%3D%2215.5%22%20rx%3D%222.5%22/%3E%3Cpath%20d%3D%22M3.5%2010h17M8%203v4M16%203v4%22/%3E%3C/svg%3E")}
@media(max-width:900px){
 html body .dfold,html body .dfold-body,html body .dfold-in{display:contents}
 html body .dfold-head,html body .dfold-mtog,html body .dfold-peek{display:none!important}
}
@media(min-width:901px){
 html body .dfold{--dfold-line:#e4dccd;--dfold-ink:#7d0001;--dfold-bg:#fff;--dfold-chip-bg:#fff;--dfold-chip-ink:#7d0001;--dfold-chip-hover:#f7efe2;--dfold-dot:linear-gradient(#1d1d1f,#141415);--dfold-dot-ink:#f6e7cc;
  position:relative;box-sizing:border-box;min-width:0;background:var(--dfold-bg);border:1px solid var(--dfold-line);border-radius:12px;padding:7px;box-shadow:0 1px 2px #3d08080d,0 10px 22px -16px #3d080866}
 html body .dfold[data-fold-tone="dark"]{--dfold-line:rgba(255,226,190,.26);--dfold-ink:#fbe9dc;--dfold-bg:transparent;--dfold-chip-bg:rgba(0,0,0,.2);--dfold-chip-ink:#fbe9dc;--dfold-chip-hover:rgba(0,0,0,.34);--dfold-dot:#fbe9dc;--dfold-dot-ink:#7d0001;padding:6px;box-shadow:none}
 html body .dfold-head{display:flex;align-items:center;gap:8px;min-height:28px;padding:0 0 7px;margin:0 0 7px;border-bottom:1px solid var(--dfold-line)}
 html body .dfold[data-fold-tone="dark"]>.dfold-head{min-height:24px;padding-bottom:5px;margin-bottom:6px}
 html body .dfold-chips{display:none;flex:1;min-width:0;gap:6px 18px;justify-content:space-between;align-items:center}
 html body .dfold-group{display:flex;align-items:center;gap:6px;min-width:0}
 html body .dfold-group:empty{display:none}
 html body .dfold-group[data-fold-group="center"]{margin-inline:auto}
 html body .dfold-group[data-fold-group="end"]{margin-left:auto}
 html body .dfold[data-fold-chips="wrap"] .dfold-chips,html body .dfold[data-fold-chips="wrap"] .dfold-group{flex-wrap:wrap}
 html body .dfold[data-fold-chips="row"] .dfold-group{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;padding:1px}
 html body .dfold[data-fold-chips="row"] .dfold-group::-webkit-scrollbar{display:none}
 html body .dfold-chip{display:inline-flex;align-items:center;gap:7px;flex:none;height:30px;min-height:0;margin:0;padding:0 12px 0 4px;border:1px solid var(--dfold-line);border-radius:999px;background:var(--dfold-chip-bg);color:var(--dfold-chip-ink);font-family:inherit;font-size:12.5px;font-weight:600;line-height:1;white-space:nowrap;cursor:pointer}
 html body .dfold-chip:hover,html body .dfold-chip[aria-expanded="true"]{background:var(--dfold-chip-hover)}
 html body .dfold-chip i{position:relative;display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--dfold-dot);color:var(--dfold-dot-ink);font-style:normal;font-size:11px;font-weight:700;line-height:1}
 html body .dfold-chip:is([data-mod-type="content_popular"],[data-mod-type="content_latest"],[data-mod-type="blog_popular"],[data-mod-type="blog_latest_posts"],[data-mod-type="games_popular"],[data-mod-type="site_online"],[data-mod-type="site_user_profile"],[data-mod-type="site_stats"],[data-mod-type="site_eklesia"],[data-mod-type="forum_popular"],[data-mod-type="forum_latest_posts"],[data-mod-type="gallery_latest"],[data-mod-type="gallery_random"],[data-mod-type="site_search"],[data-mod-type="site_sections"],[data-mod-type="site_calendar"]) i{color:transparent}
 html body .dfold-chip:is([data-mod-type="content_popular"],[data-mod-type="content_latest"],[data-mod-type="blog_popular"],[data-mod-type="blog_latest_posts"],[data-mod-type="games_popular"],[data-mod-type="site_online"],[data-mod-type="site_user_profile"],[data-mod-type="site_stats"],[data-mod-type="site_eklesia"],[data-mod-type="forum_popular"],[data-mod-type="forum_latest_posts"],[data-mod-type="gallery_latest"],[data-mod-type="gallery_random"],[data-mod-type="site_search"],[data-mod-type="site_sections"],[data-mod-type="site_calendar"]) i::before{content:"";position:absolute;inset:0;margin:auto;width:13px;height:13px;background:var(--dfold-dot-ink);-webkit-mask:var(--dfold-ico) center/contain no-repeat;mask:var(--dfold-ico) center/contain no-repeat}
 html body .dfold-chip span:empty{display:none}
 html body .dfold-tog{display:grid;place-items:center;flex:none;margin:0 0 0 auto;width:30px;height:30px;min-height:0;padding:0;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--dfold-ink);cursor:pointer}
 html body .dfold[data-fold-tone="dark"] .dfold-tog{width:26px;height:24px}
 html body .dfold-tog:hover{background:var(--dfold-chip-hover);border-color:var(--dfold-line)}
 html body .dfold :is(.dfold-tog,.dfold-chip,.dfold-mtog):focus-visible{outline:2px solid var(--dfold-ink);outline-offset:2px}
 html body .dfold-tog svg,html body .dfold-mtog svg{display:block}
 html body .dfold-body{display:grid;grid-template-rows:1fr;min-width:0}
 html body .dfold-in{min-height:0;min-width:0}
 /* single-module fold button in every module heading (any position) */
 html body [data-mod]>:first-child:has(>.dfold-mtog){position:relative;padding-right:38px!important}
 html body .dfold-mtog{position:absolute;top:50%;right:6px;transform:translateY(-50%);display:grid;place-items:center;width:26px;height:26px;min-height:0;margin:0;padding:0;border:0;border-radius:7px;background:transparent;color:inherit;opacity:.8;cursor:pointer}
 html body .dfold-mtog:hover{opacity:1;background:color-mix(in srgb,currentColor 16%,transparent)}
 html body .dfold-mtog:focus-visible{outline:2px solid currentColor;outline-offset:1px}
 html body .dfold-mtog svg{display:block;transition:transform .26s ease}
 html.desp-left-collapsed:not(.drl-drawer) body [data-desp-rail-content] .dfold-mtog{display:none!important}
 html body .dfold-manim{box-sizing:border-box!important;min-height:0!important;overflow:hidden!important;transition:height .26s cubic-bezier(.2,.8,.2,1)!important}
 /* peek: the real module, moved into a popover under its chip while the panel is folded */
 html body .dfold-peek{position:absolute;z-index:70;box-sizing:border-box;max-width:calc(100% - 4px);max-height:min(78vh,720px);overflow:auto;padding:7px;background:#fff;border:1px solid #e4dccd;border-radius:12px;box-shadow:0 26px 60px -20px #000b,0 2px 8px #0000001f;animation:dfold-peek .14s ease-out both;overscroll-behavior:contain}
 html body .dfold[data-fold-tone="dark"] .dfold-peek{background:#7d0001;border-color:rgba(255,226,190,.3)}
 html body .dfold-peek-ctx{display:block!important;position:static!important;margin:0!important;padding:0!important;width:auto!important;min-width:0!important;max-width:none!important;height:auto!important;min-height:0!important;max-height:none!important;background:none!important;border:0!important;box-shadow:none!important;container-type:normal!important;overflow:visible!important;transform:none!important}
 html body .dfold-peek [data-mod]{display:block!important;width:auto!important;max-width:none!important;margin:0!important;flex:none!important}
 html body .dfold-peek .dfold-mtog{display:none}
  /* motion only after a user action */
 html.dfold-anim body .dfold-body{transition:grid-template-rows .28s cubic-bezier(.2,.8,.2,1)!important}
 html.dfold-anim body .dfold-tog svg{transition:transform .28s ease!important}
}
@keyframes dfold-peek{from{opacity:0;transform:translateY(-4px)}}
@media(prefers-reduced-motion:reduce){html body .dfold-mtog svg{transition:none!important}html.dfold-anim body .dfold-body,html.dfold-anim body .dfold-tog svg{transition:none!important}html body .dfold-peek{animation:none}}
