/* x2 t200/t201: site-wide breadcrumbs and pagination (loaded last by layout.ftl). ":root:root" outranks the older per-page rules. */

/* ---- t200 breadcrumbs: nav.j10-path (dark bar: articles, categories), nav.gl-crumb (gallery), forum pathway ----
   links = warm gold (#f3d08a on the #1b1b1d bar ≈ 11:1), separators = visible light grey › with spacing (≈ 7:1),
   current page = muted plain text (≈ 9:1), long titles end in an ellipsis. */
:root:root body nav.gl-crumb{background:#1b1b1d;border-radius:8px;padding:8px 14px;margin:0 0 12px;font:13px/1.3 "Helvetica Neue",Tahoma,sans-serif;color:#c8c8cd;gap:0}
:root:root body :is(nav.j10-path,nav.gl-crumb){color:#c8c8cd!important}
:root:root body :is(nav.j10-path .desp-wrap,nav.gl-crumb){display:flex;flex-wrap:nowrap;align-items:center;gap:0!important;min-width:0}
:root:root body :is(nav.j10-path,nav.gl-crumb) a{flex:none;color:#f3d08a!important;font-weight:600;text-decoration:none!important;border-radius:4px;padding:2px 3px;margin:-2px -3px;white-space:nowrap;transition:color .15s}
:root:root body :is(nav.j10-path,nav.gl-crumb) a:hover{color:#fff!important;text-decoration:underline!important;text-decoration-color:#f3d08a!important;text-underline-offset:3px;text-decoration-thickness:1px}
:root:root body :is(nav.j10-path,nav.gl-crumb) a:focus-visible{color:#fff!important;outline:2px solid #f3d08a;outline-offset:1px}
:root:root body nav.j10-path .bc-sep,:root:root body nav.gl-crumb>span[aria-hidden]{flex:none;color:#a9a9b0!important;font-size:15px;line-height:1;margin:0 8px;user-select:none}
:root:root body nav.j10-path :is(.bc-cur,[aria-current]),:root:root body nav.gl-crumb>span:not([aria-hidden]){flex:0 1 auto;min-width:0;color:#c8c8cd!important;font-weight:400;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:none}
/* forum pathway (light box above the topic list) */
:root:root body :is(#phpbb_area,body) .fb_forum-pathway .forum-pathway-1 a{color:#8b1a1a!important;font-weight:700;text-decoration:none!important}
:root:root body :is(#phpbb_area,body) .fb_forum-pathway .forum-pathway-1 a:hover,:root:root body :is(#phpbb_area,body) .fb_forum-pathway .forum-pathway-1 a:focus-visible{text-decoration:underline!important;text-underline-offset:3px}
:root:root body :is(#phpbb_area,body) .fb_forum-pathway .sep{color:#767676!important;margin:0 7px}
:root:root body :is(#phpbb_area,body) .fb_forum-pathway .forum-pathway-2{color:#3d3d3d;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media (max-width:640px){
 :root:root body :is(nav.j10-path,nav.gl-crumb){font-size:12.5px}
 :root:root body nav.j10-path .bc-sep,:root:root body nav.gl-crumb>span[aria-hidden]{margin:0 6px}
 /* phones: crumbs wrap, the current title keeps a line of its own (ellipsis) instead of shrinking to one letter */
 :root:root body :is(nav.j10-path .desp-wrap,nav.gl-crumb){flex-wrap:wrap!important;row-gap:4px!important}
 :root:root body nav.j10-path :is(.bc-cur,[aria-current]),:root:root body nav.gl-crumb>span:not([aria-hidden]){max-width:100%}
}

/* ---- t201 pagination: one look for every public pager ----
   numbered: .alx-pager (articles), .x2pg (forum), .x2r-pages (search), .ekc-pager, .rcp-pg, .x2-ntf-pager;  "N / M": .pf-pager, .gm-pager, .blg-pager, .pmx-pager */
:root:root :is(.alx-pager,.x2pg,.x2r-pages,.ekc-pager,.rcp-pg,.x2-ntf-pager,.pf-pager,.gm-pager,.blg-pager,.pmx-pager){--pg-ox:#7d0001;
  display:flex!important;flex-wrap:wrap;align-items:center;justify-content:center;gap:4px!important;margin:18px auto!important;padding:0!important;max-width:100%;
  font:600 14px/1 "Helvetica Neue",Tahoma,"BPG Arial",sans-serif!important;background:none!important;border:0!important;box-shadow:none!important}
:root:root :is(.alx-pager,.x2pg,.x2r-pages,.ekc-pager,.rcp-pg,.x2-ntf-pager,.pf-pager,.gm-pager,.blg-pager,.pmx-pager)>:is(a,b,span,strong){
  display:inline-flex!important;align-items:center;justify-content:center;gap:6px;min-width:36px!important;height:36px!important;padding:0 11px!important;margin:0!important;
  box-sizing:border-box!important;border:0!important;border-radius:10px!important;background:transparent!important;color:#3d2b28!important;font:inherit!important;
  text-decoration:none!important;box-shadow:none!important;transform:none!important;opacity:1!important;white-space:nowrap;transition:background .15s,color .15s}
:root:root :is(.alx-pager,.x2pg,.x2r-pages,.ekc-pager,.rcp-pg,.x2-ntf-pager,.pf-pager,.gm-pager,.blg-pager,.pmx-pager)>a:hover{background:#f5e9e6!important;color:var(--pg-ox)!important}
:root:root :is(.alx-pager,.x2pg,.x2r-pages,.ekc-pager,.rcp-pg,.x2-ntf-pager,.pf-pager,.gm-pager,.blg-pager,.pmx-pager)>a:focus-visible{outline:2px solid var(--pg-ox)!important;outline-offset:2px}
/* current page: refined oxblood pill */
:root:root :is(.alx-pager,.x2pg,.x2r-pages,.ekc-pager)>:is(b,[aria-current]),:root:root .rcp-pg>.on,:root:root .x2-ntf-pager>span{
  background:var(--pg-ox)!important;color:#fff!important;border-radius:999px!important;box-shadow:0 2px 8px -3px rgba(125,0,1,.65)!important;font-weight:700!important}
/* prev / next: arrow + label in oxblood; disabled ones stay in place, faint */
:root:root :is(.alx-pager,.x2pg,.x2r-pages,.pf-pager,.gm-pager,.blg-pager,.pmx-pager)>:is(.nv,.x2pg-nav,[rel=prev],[rel=next],.blg-btn){color:var(--pg-ox)!important;padding:0 12px!important;font-weight:700!important}
:root:root .x2r-pages>[rel=prev]::before{content:"‹";font-size:17px;margin-top:-2px}
:root:root .x2r-pages>[rel=next]::after{content:"›";font-size:17px;margin-top:-2px}
:root:root :is(.alx-pager,.x2pg)>.off{color:#c4b8b5!important;background:none!important;pointer-events:none;cursor:default}
:root:root :is(.alx-pager,.x2pg,.x2r-pages)>:is(.gap,.x2pg-gap,.x2r-gap){min-width:20px!important;padding:0!important;color:#a3928e!important;background:none!important}
/* "N / M" and the article-list info line */
:root:root :is(.pf-pager,.gm-pager,.blg-pager)>span{color:#6b5a56!important;font-weight:600!important;font-variant-numeric:tabular-nums;padding:0 8px!important}
:root:root .alx-pager>.inf{flex-basis:100%;height:auto!important;min-height:0!important;padding:4px 0 0!important;color:#7a6a66!important;font-weight:400!important;font-size:12.5px!important;background:none!important}
/* forum: the pager sits in a table cell; keep it on one line on desktop (the cell grows) */
@media (min-width:561px){:root:root .x2pg{flex-wrap:nowrap!important}}
:root:root table.desp_top_stats:has(.x2pg),:root:root table.desp_top_stats:has(.x2pg)>tbody{display:block!important;width:100%!important}
:root:root table.desp_top_stats:has(.x2pg)>tbody>tr{display:flex!important;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 12px}
:root:root table.desp_top_stats:has(.x2pg)>tbody>tr>td{display:block!important;width:auto!important}
:root:root table.desp_top_stats:has(.x2pg)>tbody>tr>td:has(.x2pg){margin-left:auto;max-width:100%}
/* phones: ‹ prev · current · … last · next ›  (fewer numbers, 40px tap targets) */
@media (max-width:560px){
 :root:root :is(.alx-pager,.x2pg,.x2r-pages,.ekc-pager,.rcp-pg,.x2-ntf-pager)>:is(a,b,span,strong){min-width:40px!important;height:40px!important}
 :root:root :is(.alx-pager,.x2pg,.x2r-pages)>a:not(.nv):not(.x2pg-nav):not([rel]),
 :root:root :is(.alx-pager,.x2pg,.x2r-pages)>:is(.gap,.x2pg-gap,.x2r-gap){display:none!important}
 :root:root:root:root .x2pg>a:not(.x2pg-nav):nth-last-child(2),:root:root:root:root .x2r-pages>a:not([rel]):nth-last-child(2),:root:root:root:root .alx-pager>a:not(.nv):nth-last-child(4){display:inline-flex!important}
 :root:root:root:root .x2pg>.x2pg-gap:nth-last-child(3),:root:root:root:root .x2r-pages>.x2r-gap:nth-last-child(3),:root:root:root:root .alx-pager>.gap:nth-last-child(5){display:inline-flex!important}
 :root:root .alx-pager>.nv:is(:first-child,:nth-last-child(2)){display:none!important}
 :root:root :is(.alx-pager,.x2pg,.x2r-pages)>:is(.nv,.x2pg-nav,[rel]){padding:0 10px!important}
 :root:root :is(.ekc-pager,.rcp-pg,.x2-ntf-pager){gap:2px!important}
}
