/* FXCHS V3.01 – flat left-aligned page metadata and single-line filter rails.
   This layer comes after V2.97; the rounded headings, card layout and room effects stay untouched. */
body.fxv2 :is(.fxv2-hybrid-panel,.fxv2-detail-panel) :is(.fxv2-page-intro,.fxv2-article-intro),
body.fxv2 :is(.fxv2-hybrid-panel,.fxv2-detail-panel) :is(.fxv2-page-intro,.fxv2-article-intro) > :is(h1,p,span),
body.fxv2 :is(.fxv2-journal-archive-head,.fxv2-section-head){
  text-align:left!important;
}
body.fxv2 :is(.fxv2-journal-intro,.fxv2-page-intro) .fxv2-journal-count {
  display:block!important;position:static!important;float:none!important;clear:both!important;
  width:max-content;max-width:100%;margin:7px 0 0!important;padding:0!important;
  border:0!important;outline:0!important;border-radius:0!important;
  background:transparent!important;box-shadow:none!important;
  font-size:12px!important;line-height:1.4!important;letter-spacing:0!important;
  text-transform:none!important;font-weight:650!important;color:#50655b!important;
  text-align:left!important;
}
/* Each nav is one horizontal, easily scanned panel rather than independently boxed pills. */
body.fxv2 .fxv301-tabrail{position:relative;min-width:0;max-width:100%;margin:6px 0 9px;
  border-bottom:1px solid rgba(43,80,55,.22);}
body.fxv2 .fxv301-tabrail :is(.fxv2-filter,.fxv2-media-tabs,.fxcal-filters){
  display:flex!important;flex-wrap:nowrap!important;flex-direction:row!important;
  width:100%;max-width:100%;min-width:0;box-sizing:border-box;
  align-items:stretch!important;justify-content:flex-start!important;
  overflow-x:auto!important;overflow-y:hidden!important;gap:clamp(11px,1.8vw,24px)!important;
  margin:0!important;padding:0 1px 1px!important;border:0!important;border-radius:0!important;
  background:transparent!important;scrollbar-width:none;overscroll-behavior-x:contain;
  scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;
}
body.fxv2 .fxv301-tabrail :is(.fxv2-filter,.fxv2-media-tabs,.fxcal-filters)::-webkit-scrollbar{display:none}
body.fxv2 .fxv301-tabrail :is(.fxv2-filter,.fxv2-media-tabs,.fxcal-filters)>a{
  flex:0 0 auto!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
  box-sizing:border-box;position:relative;min-height:37px!important;
  padding:6px 1px 9px!important;margin:0!important;
  border:0!important;border-radius:0!important;outline-offset:-3px;
  background:transparent!important;box-shadow:none!important;transform:none!important;
  white-space:nowrap;color:#445c4d!important;font-size:12px!important;
  font-weight:650!important;line-height:1.3!important;text-decoration:none!important;
  scroll-snap-align:start;
}
body.fxv2 .fxv301-tabrail :is(.fxv2-filter,.fxv2-media-tabs,.fxcal-filters)>a:hover,
body.fxv2 .fxv301-tabrail :is(.fxv2-filter,.fxv2-media-tabs,.fxcal-filters)>a:focus-visible{
  color:#143c25!important;background:transparent!important;text-decoration:underline!important;
  text-underline-offset:5px;
}
body.fxv2 .fxv301-tabrail :is(.fxv2-filter,.fxv2-media-tabs,.fxcal-filters)>a[aria-current="page"],
body.fxv2 .fxv301-tabrail :is(.fxv2-filter,.fxv2-media-tabs,.fxcal-filters)>a[aria-current="true"],
body.fxv2 .fxv301-tabrail :is(.fxv2-filter,.fxv2-media-tabs,.fxcal-filters)>a.active{
  color:#133b25!important;font-weight:800!important;
  box-shadow:inset 0 -2px #387249!important;text-decoration:none!important;
}
body.fxv2 .fxv301-tabrail .fxv301-tab-arrow{
  position:absolute;top:0;z-index:4;display:grid;place-items:center;
  height:38px;width:32px;min-width:32px;padding:0;
  color:#173e2a;background:#edf3eafa;border:1px solid #b8cbbd;border-radius:9px;
  cursor:pointer;box-shadow:0 1px 5px #16392312;
}
body.fxv2 .fxv301-tabrail .fxv301-tab-arrow[data-direction="prev"]{left:0}
body.fxv2 .fxv301-tabrail .fxv301-tab-arrow[data-direction="next"]{right:0}
body.fxv2 .fxv301-tabrail .fxv301-tab-arrow[hidden]{display:none!important}
body.fxv2 .fxv301-tabrail .fxv301-tab-arrow:disabled{opacity:.32;cursor:default}
body.fxv2 .fxv301-tabrail .fxv301-tab-arrow:not(:disabled):hover{color:#fff;background:#194a32}
body.fxv2 .fxv301-tabrail .fxv301-tab-arrow:focus-visible{outline:2px solid #2d8652;outline-offset:2px}
body.fxv2 .fxv301-tabrail.fxv301-overflow :is(.fxv2-filter,.fxv2-media-tabs,.fxcal-filters){padding-left:35px!important;padding-right:35px!important}
/* Result/status text remains flush-left without adding a badge. */
body.fxv2 .fxv2-journal-toolbar{justify-content:flex-start!important;text-align:left!important}
body.fxv2 .fxv2-journal-toolbar .fxv2-results{margin:0!important;font-size:12px!important;color:#536758!important}
@media(hover:none),(pointer:coarse){
  body.fxv2 .fxv301-tabrail .fxv301-tab-arrow{display:none!important}
  body.fxv2 .fxv301-tabrail.fxv301-overflow :is(.fxv2-filter,.fxv2-media-tabs,.fxcal-filters){padding-left:1px!important;padding-right:1px!important}
}
@media(prefers-reduced-motion:reduce){body.fxv2 .fxv301-tabrail :is(.fxv2-filter,.fxv2-media-tabs,.fxcal-filters){scroll-behavior:auto!important}}
