/* V7: compact fixed-position server/tools cards, no sorting by availability */
/* Responsive columns: desktop 4, medium 3, tablet 2, phone 1. No oversized orphan cards. */
.rmx-modern-section .rmx-service-grid,.v4-download-center .v4-download-grid{
 display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;align-items:stretch!important;
}
.rmx-modern-section .rmx-service-grid>.rmx-service-tile,.v4-download-center .v4-download-grid>.v4-download-card{
 grid-column:auto!important;grid-row:auto!important;width:100%!important;max-width:100%!important;min-width:0!important;
 margin:0!important;flex:none!important;align-self:stretch!important;min-height:0!important;
 padding:13px!important;border-radius:13px!important;display:flex!important;flex-direction:column!important;
}
/* Override V6 last row expansion selectors regardless of sibling count */
.rmx-modern-section .rmx-service-grid>.rmx-service-tile:last-child,
.v4-download-center .v4-download-grid>.v4-download-card:last-child{grid-column:auto!important}
.rmx-modern-section .rmx-service-tile .rmx-tile-top,.v4-download-center .v4-download-card .v4-card-top{
 margin:0 0 7px!important;min-height:32px!important;align-items:center!important;
}
.rmx-modern-section .rmx-service-avatar,.v4-download-center .v4-card-icon,
.rmx-modern-section .rmx-service-media,.v4-download-center .rmx-tool-media{
 width:34px!important;height:34px!important;border-radius:9px!important;flex-shrink:0!important;font-size:12px!important;
}
.rmx-modern-section .rmx-service-tile .rmx-state,.v4-download-center .v4-download-card .rmx-state{
 padding:5px 8px!important;font-size:10px!important;font-weight:900!important;
}
.rmx-modern-section .rmx-service-availability,.v4-download-center .v5-download-availability{
 margin:0 0 8px!important;padding:6px 8px!important;font-size:10px!important;line-height:1.3!important;border-radius:6px!important;
}
.rmx-modern-section .rmx-service-tile h3,.v4-download-center .v4-download-card h3{
 font-size:13px!important;line-height:1.27!important;margin:0 0 5px!important;overflow-wrap:anywhere;
}
.rmx-modern-section .rmx-service-tile p,.v4-download-center .v4-download-card p{
 font-size:11px!important;line-height:1.35!important;margin:0 0 7px!important;min-height:0!important;flex:initial!important;
}
.rmx-modern-section .rmx-service-note{font-size:10px!important;line-height:1.35!important;margin:0 0 8px!important;min-height:0!important}
.rmx-modern-section .rmx-service-action{margin-top:auto!important}
.rmx-modern-section .rmx-service-cta,.v4-download-center .v4-download-button{
 min-height:35px!important;padding:8px!important;font-size:11px!important;border-radius:8px!important;margin-top:auto!important;
}
.v4-download-center .v4-card-meta{
 grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px!important;padding-top:7px!important;margin-top:auto!important;
}
.v4-download-center .v4-card-meta span{font-size:9px!important}
.v4-download-center .v4-card-meta strong{font-size:11px!important;margin-top:1px!important}
.v4-download-center .v4-card-footnote{font-size:9px!important;min-height:0!important;margin-top:5px!important}
.v4-download-center .v4-download-button{margin-top:9px!important}
.v4-download-center .v4-section-bar{padding:12px 15px!important;margin-bottom:11px!important;border-radius:13px!important}
.v4-download-center .v4-section-bar h3{font-size:18px!important}
.v4-download-center .v4-section-mark{width:34px;height:34px;border-radius:9px}
.rmx-modern-section .rmx-overall{margin:12px 0!important;padding:13px 17px!important}
/* Keep text and controls readable on mobile instead of squeezing into tiny columns */
@media(max-width:1100px){.rmx-modern-section .rmx-service-grid,.v4-download-center .v4-download-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:780px){.rmx-modern-section .rmx-service-grid,.v4-download-center .v4-download-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}}
@media(max-width:540px){
 .rmx-modern-section .rmx-service-grid,.v4-download-center .v4-download-grid{grid-template-columns:minmax(0,1fr)!important;gap:9px!important}
 .rmx-modern-section .rmx-service-grid>.rmx-service-tile,.v4-download-center .v4-download-grid>.v4-download-card{padding:12px!important}
 .rmx-modern-section .rmx-service-tile h3,.v4-download-center .v4-download-card h3{font-size:14px!important}
 .rmx-modern-section .rmx-service-cta,.v4-download-center .v4-download-button{min-height:42px!important;font-size:12px!important}
 .rmx-modern-section .rmx-overall{flex-wrap:wrap}
}
/* Header Home link, visible in desktop and collapsed mobile navigation */
header .nav-links .nav-home{font-weight:900!important;color:#114c98!important}
header .nav-links .nav-home:hover{color:#fff!important}
@media(max-width:900px){header .nav-links .nav-home{display:block!important}}
