/* nxreviews r6 - dark theme: tokens from themes/nexus-store custom.css (--nx-*), fallbacks keep it readable if absent.
 * Base = the r1 scrollable row (what you get without JS). .nx-rev--cycle (added by r5 JS) = fixed boxes that cycle.
 * Team 11-12: amber stars (--nx-star). r6 (Rich 11-13): card border is the theme's neon green with a soft glow, the same
 * #9BE15D as the category-page menu images (nx-ce-skin r12 §15b), replacing the r5 placeholder blue. */
.nx-rev{--nx-rev-border:#9BE15D;--nx-rev-glow:rgba(155,225,93,.4);--nx-rev-glow-soft:rgba(155,225,93,.18);position:relative;max-width:1470px;margin:0 auto;padding:0 56px}
.nx-rev__track{display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;
  -webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;padding:4px 2px 18px;scrollbar-width:thin;
  scrollbar-color:rgba(242,242,242,.25) transparent}
.nx-rev__track:focus-visible{outline:2px solid var(--nx-amber,#F5B800);outline-offset:2px}
.nx-rev__card{flex:0 0 calc((100% - 32px) / 3);min-width:260px;scroll-snap-align:start;box-sizing:border-box;
  display:flex;flex-direction:column;gap:12px;padding:26px;min-height:196px;border-radius:var(--nx-radius,12px);
  background:var(--nx-surface-solid,#121812);border:2px solid var(--nx-rev-border);
  box-shadow:0 0 8px var(--nx-rev-glow),0 0 22px var(--nx-rev-glow-soft);color:var(--nx-text,#C9C9C9)}
.nx-rev__stars{letter-spacing:2px;font-size:18px;line-height:1}
.nx-rev__star{color:rgba(242,242,242,.18)}
.nx-rev__star.is-on{color:var(--nx-star,#F5B800)}
.nx-rev__text{margin:0;flex:1;font-size:16px;line-height:1.55;color:var(--nx-text,#C9C9C9);overflow-wrap:anywhere}
.nx-rev__by{display:flex;flex-wrap:wrap;gap:4px 12px;align-items:baseline;font-size:14px}
.nx-rev__name{font-weight:600;color:var(--nx-text-strong,#F2F2F2)}
.nx-rev__date{color:var(--nx-text-muted,#8A918A)}
.nx-rev__nav{position:absolute;top:50%;transform:translateY(-60%);width:42px;height:42px;border-radius:50%;cursor:pointer;
  border:var(--nx-panel-border,1px solid rgba(242,242,242,.08));background:var(--nx-surface-solid,#121812);
  color:var(--nx-text-strong,#F2F2F2);font-size:22px;line-height:1;display:flex;align-items:center;justify-content:center;z-index:2}
.nx-rev__nav:hover:not(:disabled){background:var(--nx-surface-3,#1F291F)}
.nx-rev__nav:focus-visible{outline:2px solid var(--nx-amber,#F5B800);outline-offset:2px}
.nx-rev__nav:disabled{opacity:.3;cursor:default}
.nx-rev__nav--prev{left:6px}
.nx-rev__nav--next{right:6px}
.nx-rev__all{display:block;width:max-content;margin:14px auto 0;font-size:14px;font-weight:600;color:var(--nx-link,#8EB364);text-decoration:none}
.nx-rev__all:hover,.nx-rev__all:focus-visible{color:var(--nx-link-hover,#6F9448);text-decoration:underline}

/* cycle mode: a fixed grid of 1/2/3 boxes, same height, no scrolling */
.nx-rev--cycle .nx-rev__track{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible;
  scroll-snap-type:none;padding:4px 2px 6px}
.nx-rev--cycle .nx-rev__track[data-slots="2"]{grid-template-columns:repeat(2,minmax(0,1fr))}
.nx-rev--cycle .nx-rev__track[data-slots="1"]{grid-template-columns:minmax(0,1fr)}
/* 5 lines of text: 26*2 padding + 18 stars + 2*12 gaps + 5*24.8 text + ~22 byline + 4 border = ~244 */
.nx-rev--cycle .nx-rev__card{min-width:0;height:248px;transition:opacity .28s ease}
.nx-rev--cycle .nx-rev__text{flex:0 1 auto;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:5;line-clamp:5;overflow:hidden}
.nx-rev--cycle .nx-rev__by{margin-top:auto}
.nx-rev--cycle .nx-rev__card.is-out{opacity:0}
.nx-rev--cycle .nx-rev__card.is-in{animation:nx-rev-in .32s ease both}
@keyframes nx-rev-in{from{opacity:0}to{opacity:1}}

@media (max-width:991px){.nx-rev{padding:0 12px}.nx-rev__card{flex-basis:calc((100% - 16px) / 2)}
  .nx-rev--cycle{padding:0 52px}}
@media (max-width:575px){.nx-rev__card{flex-basis:86%;min-width:0}.nx-rev:not(.nx-rev--cycle) .nx-rev__nav{display:none}
  .nx-rev--cycle{padding:0 44px}.nx-rev--cycle .nx-rev__nav{width:36px;height:36px;font-size:20px}
  .nx-rev--cycle .nx-rev__nav--prev{left:2px}.nx-rev--cycle .nx-rev__nav--next{right:2px}}
@media (max-width:991px) and (min-width:576px){.nx-rev:not(.nx-rev--cycle) .nx-rev__nav{display:none}}
@media (prefers-reduced-motion:reduce){.nx-rev__track{scroll-behavior:auto}
  .nx-rev--cycle .nx-rev__card{transition:none}.nx-rev--cycle .nx-rev__card.is-in{animation:none}}

/* r3/r4: the theme's home rule `body#index [data-elementor-type~="page-index"] :is(p, span, a, …){color:inherit}` (custom.css)
 * carries an id, so plain class selectors lose to it: stars, byline and link took the text colour. Re-assert with an id
 * + 2 attributes (1,4,1 beats its 1,3,2: its :is() counts as a:not(.btn):not(.nx-btn) = 0,2,1). */
body#index .nx-rev[data-nx-rev][data-url] .nx-rev__star{color:rgba(242,242,242,.18)}
body#index .nx-rev[data-nx-rev][data-url] .nx-rev__star.is-on{color:var(--nx-star,#F5B800)}
body#index .nx-rev[data-nx-rev][data-url] .nx-rev__text{color:var(--nx-text,#C9C9C9)}
body#index .nx-rev[data-nx-rev][data-url] .nx-rev__name{color:var(--nx-text-strong,#F2F2F2)}
body#index .nx-rev[data-nx-rev][data-url] .nx-rev__date{color:var(--nx-text-muted,#8A918A)}
body#index .nx-rev[data-nx-rev][data-url] .nx-rev__all{color:var(--nx-link,#8EB364)}
body#index .nx-rev[data-nx-rev][data-url] .nx-rev__all:hover,body#index .nx-rev[data-nx-rev][data-url] .nx-rev__all:focus-visible{color:var(--nx-link-hover,#6F9448)}
