/* x2 module chrome: ONE look for every list/box module on every page (home is the reference).
   Wrappers rendered by modules/_position.ftl (and the page-local helpers that mimic them):
     .j10-mod  home + j10 columns (h3, .j10-mod-b)
     .alx-mod  article / section / search / blog-list rails (h4, .alx-mod-b)
     .blg-mod  blog pages (h4, .blg-mod-b)
   Before this file the rails were red (despani-artlist.css), blog pages teal, the search page unstyled
   (artlist not loaded) and the forum page lost its frame (#phpbb_area * reset).
   :is(html,#x2-mod) gives ID weight so page resets like "#phpbb_area *" cannot undo the frame.
   Band boxes (.cbp-side) keep their own compact frame; menu boxes (.mid1) keep the light menu head. */
:root{--x2m-line:#e4dccd;--x2m-radius:10px;--x2m-accent:#7d0001;--x2m-head:linear-gradient(180deg,#1d1d1f,#141415);--x2m-head-ink:#f2f2f2;--x2m-font:"BPG Nino Mtavruli","Helvetica Neue",Tahoma,sans-serif}

/* frame */
:is(html,#x2-mod) :is(.j10-mod:not(.mid1),.alx-mod,.blg-mod){border:1px solid var(--x2m-line);border-radius:var(--x2m-radius);overflow:hidden;background:#fff;box-shadow:0 4px 14px -10px #0006;padding:0}

/* header: same bar, same type, same height on every page */
:is(html,#x2-mod) :is(.j10-mod:not(.mid1)>h3,.alx-mod>h4,.blg-mod>h4){display:flex;align-items:center;min-height:33px;box-sizing:border-box;margin:0;padding:8px 12px;border:0;border-bottom:2px solid var(--x2m-accent);background:var(--x2m-head)!important;color:var(--x2m-head-ink)!important;font:600 12.5px/1.2 var(--x2m-font);letter-spacing:.2px;text-transform:none;text-align:left}

/* body */
:is(html,#x2-mod) .j10-mod:not(.mid1)>.j10-mod-b,:is(html,#x2-mod) .alx-mod>.alx-mod-b,:is(html,#x2-mod) .blg-mod>.blg-mod-b{padding:8px 12px}
:is(html,#x2-mod) .alx-mod.alx-cal>.alx-mod-b,:is(html,#x2-mod) .j10-mod.hm-cal>.j10-mod-b{padding:8px}

/* footer link ("ყველა →", "ფორუმი →", "გალერეა →") */
:is(html,#x2-mod) :is(.j10-mod,.alx-mod,.blg-mod) :is(a.hm-more,a.alx-more){display:block;margin-top:6px;text-align:right;font-size:11.5px;font-weight:600;line-height:1.3;color:var(--x2m-accent)!important;text-decoration:none}
:is(html,#x2-mod) :is(.j10-mod,.alx-mod,.blg-mod) :is(a.hm-more,a.alx-more):hover{text-decoration:underline}

/* blog pages: the old blog sidebar/grid separators are replaced by the shared frame */
html .blg-side .box.blg-mod,html .blg-modgrid .box.blg-mod{margin:0 0 14px}
html .blg-modgrid .box.blg-mod{margin-top:16px}

/* touch: a little more room in the bar */
@media (max-width:760px){:is(html,#x2-mod) :is(.j10-mod:not(.mid1)>h3,.alx-mod>h4,.blg-mod>h4){min-height:38px;font-size:13.5px}}

/* x2 t622: list rows — ONE row look for every list module (PM.row in modules/_paged.ftl): optional 32px lead (rank number,
   date badge or thumb), title on its own line (max 2 lines), muted meta line with "·" separators, same padding + dividers.
   ID-weight selectors so the old per-module list styles (hm-list, fpop, blg-mrow, fm-list, alx li) can not leak in. */
:is(html,#x2-mod) :is(ul,ol).x2r-list,:is(html,#x2-mod) :is(ul,ol):has(>li.x2r){list-style:none;margin:0;padding:0}
:is(html,#x2-mod) .x2r{display:flex;align-items:flex-start;gap:10px;margin:0;padding:8px 0;border:0;border-bottom:1px solid #efe7e5;background:none;box-shadow:none;list-style:none;min-height:0;float:none;width:auto}
:is(html,#x2-mod) .x2r::before,:is(html,#x2-mod) .x2r::after{content:none;display:none}
:is(html,#x2-mod) .x2r:last-child{border-bottom:0}
:is(html,#x2-mod) .x2r-lead{flex:none;display:flex;flex-direction:column;align-items:center;justify-content:center;width:32px;height:32px;margin:1px 0 0;box-sizing:border-box;border-radius:8px;background:#f4eeed;color:#6d4b47;overflow:hidden;font:700 12.5px/1 Tahoma,"Helvetica Neue",sans-serif;text-align:center}
:is(html,#x2-mod) .x2r-top .x2r-rank{background:#7d0001;color:#fff}
:is(html,#x2-mod) .x2r-date b{display:block;font:700 13px/1 Tahoma,sans-serif;color:#7d0001}
:is(html,#x2-mod) .x2r-date small{display:block;margin-top:2px;font:600 9px/1 var(--x2m-font);color:#8a6f6b;letter-spacing:0}
:is(html,#x2-mod) .x2r-thumb{background:#efe9e8}
:is(html,#x2-mod) .x2r-thumb img{display:block;width:32px;height:32px;object-fit:cover;border-radius:8px;margin:0;border:0;box-shadow:none}
:is(html,#x2-mod) .x2r-main{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:3px;margin:0;padding:0}
:is(html,#x2-mod) a.x2r-t,:is(html,#x2-mod) a.x2r-t:link,:is(html,#x2-mod) a.x2r-t:visited{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:0;padding:0;border:0;background:none;color:#222!important;font:600 12.5px/1.35 var(--x2m-font);letter-spacing:0;text-decoration:none!important;text-transform:none;overflow-wrap:anywhere;white-space:normal}
:is(html,#x2-mod) a.x2r-t:hover{color:#7d0001!important;text-decoration:underline!important}
:is(html,#x2-mod) .x2r-meta{display:flex;flex-wrap:wrap;align-items:baseline;min-width:0;margin:0;padding:0;color:#8a8a8a;font:400 11px/1.4 var(--x2m-font);letter-spacing:0}
:is(html,#x2-mod) .x2r-meta:empty{display:none}
:is(html,#x2-mod) .x2r-meta>*{display:inline;margin:0;padding:0;font:inherit;color:inherit;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis;background:none;border:0}
:is(html,#x2-mod) .x2r-meta>:not(:last-child)::after{content:"\00B7";display:inline-block;margin:0 5px;color:#c4b5b3;text-decoration:none}
:is(html,#x2-mod) .x2r-meta a,:is(html,#x2-mod) .x2r-meta a:link,:is(html,#x2-mod) .x2r-meta a:visited{color:#7d0001!important;text-decoration:none!important;font-weight:400}
:is(html,#x2-mod) .x2r-meta a:hover{text-decoration:underline!important}
:is(html,#x2-mod) .x2r-meta>*{text-overflow:clip}
:is(html,#x2-mod) .x2r.pm-skel{border-bottom:0}
@media (max-width:760px){:is(html,#x2-mod) .x2r{padding:10px 0}:is(html,#x2-mod) a.x2r-t,:is(html,#x2-mod) a.x2r-t:link,:is(html,#x2-mod) a.x2r-t:visited{font-size:14px}:is(html,#x2-mod) .x2r-meta{font-size:12px}}

/* t644: site_stats rows (hm-statl) and forum index footer counts — clickable, layout unchanged */
.hm-statl{list-style:none;margin:0;padding:0}
.hm-statl li{display:flex;align-items:center;gap:8px;padding:7px 0;border-bottom:1px solid #f0ebe3;font-size:12px}
.hm-statl li:last-child{border-bottom:0}
.hm-statl em{font-style:normal;flex:1;color:#555}
.hm-statl b{color:#7d0001;font-size:13px}
.hm-statl a{display:flex;align-items:center;gap:8px;width:100%;color:inherit;text-decoration:none}
.hm-statl a:hover{background:#fbf7f2;border-radius:6px}
.hm-statl a:hover em{color:#7d0001}
.hm-statl a:hover b{text-decoration:underline}
.x2-fidx .genmed a.st-link,.tablebg .genmed a.st-link{color:inherit;text-decoration:none;border-bottom:1px dotted #aaa}
.x2-fidx .genmed a.st-link:hover,.tablebg .genmed a.st-link:hover{color:#7d0001;border-bottom-color:#7d0001}
