/* Global CMS shortcode grid — independent from the old gd_grid groups */
.gd-shortcode-grid{display:grid;gap:18px;grid-template-columns:repeat(var(--gd-sc-cols),minmax(0,1fr));margin:20px 0 25px;align-items:stretch}
.gd-shortcode-cols-2{--gd-sc-cols:2}.gd-shortcode-cols-3{--gd-sc-cols:3}.gd-shortcode-cols-4{--gd-sc-cols:4}.gd-shortcode-cols-5{--gd-sc-cols:5}.gd-shortcode-cols-6{--gd-sc-cols:6}
.gd-shortcode-card{position:relative;min-width:0;border:1px solid #e7d3d2;border-radius:13px;padding:clamp(15px,1.65vw,28px);background:linear-gradient(145deg,#fff,#fff 77%,#fcf6f5);box-shadow:0 9px 24px rgba(25,26,30,.035);transition:transform .2s,border-color .2s,box-shadow .2s;overflow-wrap:anywhere}
.gd-shortcode-card::before{content:"";position:absolute;top:0;left:20px;width:42px;height:3px;background:#a22428;border-radius:0 0 5px 5px}
.gd-shortcode-card:hover{transform:translateY(-3px);border-color:#c48a8e;box-shadow:0 14px 30px rgba(25,26,30,.075)}
.gd-shortcode-card h3{color:#17181b;font-size:clamp(16px,1.3vw,22px);font-weight:800;line-height:1.3;letter-spacing:-.02em;margin:6px 0 12px}
.gd-shortcode-card-copy{color:#404249;font-size:14px;line-height:1.75;overflow-wrap:anywhere}
.gd-shortcode-card-copy a{color:#a22428;text-decoration:underline;text-underline-offset:3px}
@media(max-width:1200px){.gd-shortcode-cols-5,.gd-shortcode-cols-6{--gd-sc-cols:4}}
@media(max-width:960px){.gd-shortcode-cols-4,.gd-shortcode-cols-5,.gd-shortcode-cols-6{--gd-sc-cols:3}}
@media(max-width:760px){.gd-shortcode-cols-3,.gd-shortcode-cols-4,.gd-shortcode-cols-5,.gd-shortcode-cols-6{--gd-sc-cols:2}}
@media(max-width:540px){.gd-shortcode-grid{--gd-sc-cols:1!important;gap:12px}.gd-shortcode-card{padding:20px}}
@media(prefers-reduced-motion:reduce){.gd-shortcode-card{transition:none}}


/* V2: remove the 1050px reading-column limit ONLY for text blocks containing grids. */
body.gd-interior .gd-service-page .content-copy:has(> .gd-shortcode-grid),
body.gd-theme .page-content .content-copy:has(> .gd-shortcode-grid){
  width:100%;
  max-width:none!important;
}
body.gd-theme .page-content:has(.gd-shortcode-grid){
  width:100%;
  max-width:none!important;
}
body.gd-theme .content-copy > .gd-shortcode-grid{
  width:100%;
  max-width:none;
  grid-template-columns:repeat(var(--gd-sc-cols),minmax(0,1fr));
}
body.gd-theme .content-copy > .gd-shortcode-grid > .gd-shortcode-card{
  width:100%;
  min-width:0;
}
