/* RON case grid: equal-height cards + feature card that fills the row (2026-11-25a)
   Scope: case.html / case_N.html (list.html) and ?s=cases&c=search (search.html), plus /case/<hub> previews.
   Columns: >1200px 4 | 993-1200 3 | 576-992 2 | <=575 1.
   The feature card (li.firstli) spans 1-4 columns depending on the card count on the page, so the
   grid never ends with a hole: span = the value that makes (cards - 1 + span) a multiple of the column count. */

.alshaix .m>ul{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1.25rem;grid-auto-flow:row;align-items:stretch;padding:0;margin:0;list-style:none}

/* ---------- normal card ---------- */
.alshaix .m>ul>li{position:relative;display:flex;flex-direction:column;height:auto;min-width:0;min-height:0}
.alshaix .m>ul>li:not(.firstli){grid-column:auto;grid-column-start:auto;grid-column-end:auto}
.alshaix .m>ul>li:not(.firstli)::before{content:none;display:none}
.alshaix .m>ul>li:not(.firstli)>a{display:flex;flex-direction:column;flex:1 1 auto;width:100%;height:auto;padding:0}
.alshaix .m>ul>li:not(.firstli) .imgbox{flex:none}
.alshaix .m>ul>li .succon{flex:1 1 auto;display:flex;flex-direction:column;min-height:0;padding:1.5rem 1.75rem 1.75rem}
.alshaix .m>ul>li .succon h3,
.alshaix .m>ul>li .succon h5{margin:0;height:auto;min-height:3.2em;color:#fff;font:normal 1.25rem/1.6 Poppins-Medium,Poppins,Arial,sans-serif;letter-spacing:0;text-transform:none;
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;white-space:normal;word-break:break-word;transition:color .3s}
.alshaix .m>ul>li .succon p{margin:.5rem 0 0;height:auto;min-height:3.25rem;color:rgb(255 255 255 / 80%);font-size:.875rem;line-height:1.625rem;
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden}
.alshaix .m>ul>li .succon .blzx{display:flex;flex-wrap:wrap;align-items:center;gap:.25rem 1.25rem;margin:auto 0 0;padding-top:1.25rem}
.alshaix .m>ul>li .succon .blzx>div{white-space:nowrap}
.alshaix .m>ul>li .succon .lm{flex:none;margin-top:1.25rem}

/* type label: one line, ellipsis, never wider than the card */
.alshaix .m>ul>li .blxk{display:block;width:max-content;max-width:calc(100% - 3.5rem);height:1.5625rem;line-height:calc(1.5625rem - 2px);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-sizing:border-box;padding:0 .875rem}
.alshaix .m>ul>li .imgbox .blxk{right:auto}
.alshaix .m>ul>li.firstli .blxk{max-width:100%;margin-bottom:.9375rem}

/* ---------- feature card: height = the row (normal cards set it), content overlaid ---------- */
.alshaix .m>ul>li.firstli{display:block;grid-column:span 2;min-height:0;height:auto;overflow:hidden}
.alshaix .m>ul>li.firstli>a{position:absolute;inset:0;width:auto;height:auto;display:flex;flex-direction:column;justify-content:flex-end;padding:2rem 2.5rem 2.25rem;box-sizing:border-box}
.alshaix .m>ul>li.firstli>a>img{position:absolute;top:2rem;right:2rem;left:auto;max-width:min(12.5rem,38%);max-height:6.5rem;width:auto;height:auto;object-fit:contain}
.alshaix .m>ul>li.firstli .firstzs{position:relative;max-width:46rem;min-width:0}
.alshaix .m>ul>li.firstli .firstzs h3{margin:0;height:auto;color:#fff;font:normal 1.5rem/1.45 Poppins-Medium,Poppins,Arial,sans-serif;
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden}
.alshaix .m>ul>li.firstli .firstzs p{margin:.625rem 0 0;height:auto;color:rgb(255 255 255 / 85%);font-size:.875rem;line-height:1.625rem;
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden}
.alshaix .m>ul>li.firstli .blzx{display:flex;flex-wrap:wrap;gap:.25rem 1.25rem;margin:1.25rem 0 0}
.alshaix .m>ul>li.firstli::before{background:linear-gradient(180deg,rgb(0 0 0 / 25%) 0%,rgb(0 0 0 / 45%) 45%,rgb(0 0 0 / 80%) 100%)}
/* used only when the feature card is alone in its row (nothing to borrow a height from) */
.alshaix .m>ul{--rcg-solo:clamp(20rem,42vw,34rem)}

/* 4 columns: span by count (n = number of cards on the page) */
@media (min-width:1201px){
 .alshaix .m>ul>li.firstli:nth-last-child(4n+3){grid-column:span 2}   /* 3,7,11 -> 12 slots */
 .alshaix .m>ul>li.firstli:nth-last-child(4n+2){grid-column:span 3}   /* 2,6,10 */
 .alshaix .m>ul>li.firstli:nth-last-child(4n+4){grid-column:span 1}   /* 4,8,12 */
 .alshaix .m>ul>li.firstli:nth-last-child(4n+1){grid-column:1/-1;min-height:var(--rcg-solo)} /* 1,5,9: own row */
}
/* 3 columns */
@media (min-width:993px) and (max-width:1200px){
 .alshaix .m>ul{grid-template-columns:repeat(3,minmax(0,1fr))}
 .alshaix .m>ul>li.firstli:nth-last-child(3n+2){grid-column:span 2}   /* 2,5,8,11 */
 .alshaix .m>ul>li.firstli:nth-last-child(3n+3){grid-column:span 1}   /* 3,6,9,12 */
 .alshaix .m>ul>li.firstli:nth-last-child(3n+1){grid-column:1/-1;min-height:var(--rcg-solo)}
}
/* 2 columns */
@media (min-width:576px) and (max-width:992px){
 .alshaix .m>ul{grid-template-columns:repeat(2,minmax(0,1fr))}
 .alshaix .m>ul>li.firstli:nth-last-child(odd){grid-column:1/-1;min-height:var(--rcg-solo)}
 .alshaix .m>ul>li.firstli:nth-last-child(even){grid-column:span 1;min-height:0}
 .alshaix .m>ul>li.firstli>a{padding:1.5rem 1.75rem 1.75rem}
 .alshaix .m>ul>li.firstli>a>img{top:1.5rem;right:1.5rem}
}
/* 1 column */
@media (max-width:575px){
 .alshaix .m>ul{grid-template-columns:minmax(0,1fr);gap:1rem}
 .alshaix .m>ul>li.firstli,.alshaix .m>ul>li.firstli:nth-last-child(n){grid-column:1/-1;min-height:24rem}
 .alshaix .m>ul>li.firstli>a{padding:1.5rem 1.25rem 1.5rem}
 .alshaix .m>ul>li.firstli>a>img{top:1.25rem;right:1.25rem;max-width:8.5rem;max-height:5rem}
 .alshaix .m>ul>li.firstli .firstzs h3{font-size:1.25rem}
 .alshaix .m>ul>li .succon{padding:1.25rem 1.25rem 1.5rem}
 .alshaix .m>ul>li .succon h3,.alshaix .m>ul>li .succon h5{min-height:0}
}

/* ===== Stats strip (.anlgd.rcs) polish, 2026-11-25 =====
   number stacked over its label (shared centre line), labels on one line, equal-width cells with even dividers,
   quote vertically centred; quote stays visible on tablet/mobile (on top, centred). Overrides ron-case-filter-20261124a.css. */
section.anlgd.rcs .rcs-in{display:flex;align-items:center;justify-content:space-between;gap:3rem;min-height:6.25rem;padding:1.25rem 0}
section.anlgd.rcs .rcs-tag{display:block;flex:0 1 21rem;max-width:21rem;margin:0;align-self:center;text-wrap:balance}
section.anlgd.rcs ul{display:flex;flex:1 1 auto;max-width:56rem;align-items:stretch;justify-content:flex-end;margin:0;padding:0;gap:0}
section.anlgd.rcs ul li{flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.4rem;
 padding:.125rem 1rem;text-align:center;border-left:1px solid rgba(255,255,255,.12)}
section.anlgd.rcs ul li:first-child{border-left:0}
section.anlgd.rcs .rcs-n{display:block;font:normal 1.75rem/1 Poppins-Medium,Poppins,Arial,sans-serif;color:#d4ac5a;white-space:nowrap;font-variant-numeric:tabular-nums;letter-spacing:.01em}
section.anlgd.rcs .rcs-l{display:block;max-width:none;white-space:nowrap;font:normal .8125rem/1.2 Poppins-Light,Poppins,Arial,sans-serif;color:rgba(255,255,255,.7);letter-spacing:.02em}
/* tablet: quote on its own line on top, 4-up stats below */
@media (max-width:1200px){
 section.anlgd.rcs .rcs-in{flex-direction:column;justify-content:center;gap:1rem;padding:1.25rem 0 1.375rem}
 section.anlgd.rcs .rcs-tag{flex:none;max-width:none;text-align:center}
 section.anlgd.rcs ul{width:100%;max-width:48rem;justify-content:center}
}
/* mobile: quote on top, 2x2 grid with a centre divider and a row rule */
@media (max-width:767px){
 section.anlgd.rcs .rcs-in{gap:.875rem;padding:1.125rem 0 1.25rem}
 section.anlgd.rcs .rcs-tag{font-size:.875rem;padding:0 .5rem}
 section.anlgd.rcs ul{display:grid;grid-template-columns:1fr 1fr;width:100%;gap:0}
 section.anlgd.rcs ul li{padding:.75rem .5rem;gap:.3rem;border-left:0}
 section.anlgd.rcs ul li:nth-child(even){border-left:1px solid rgba(255,255,255,.12)}
 section.anlgd.rcs ul li:nth-child(n+3){border-top:1px solid rgba(255,255,255,.12)}
 section.anlgd.rcs .rcs-n{font-size:1.5rem}
 section.anlgd.rcs .rcs-l{font-size:.75rem}
}
