/* Agency hosting page: balanced grids so cards in a row always have the same width and no orphan row.
   Builds on css/woo-hosting.css (.wc components) and css/wp-hosting.css (photos, steps, chips). */
.ag-g2,.ag-g3,.ag-g4{display:grid;gap:20px;grid-template-columns:minmax(0,1fr)}
@media (min-width:640px){.ag-g2,.ag-g3,.ag-g4{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:1000px){.ag-g3{grid-template-columns:repeat(3,minmax(0,1fr))}}
/* two columns with an odd number of cards: the last card takes the whole row */
@media (min-width:640px) and (max-width:999.98px){.ag-g3>:last-child:nth-child(odd){grid-column:1/-1}}
@media (min-width:1100px){.ag-g4{grid-template-columns:repeat(4,minmax(0,1fr))}}
.ag-g2>*,.ag-g3>*,.ag-g4>*{min-width:0}
.ag-g2>.wc-card,.ag-g3>.wc-card,.ag-g4>.wc-card{height:100%}
.ag-g3,.ag-g4,.ag-g2{margin-top:0}
.ag-mt{margin-top:clamp(24px,3vw,40px)}

/* every card keeps title + short copy so heights stay close */
.ag-g3 .wc-card p,.ag-g4 .wc-card p{margin:0}
.ag-g3 .wc-card h3,.ag-g4 .wc-card h3{margin:0 0 8px}

/* 8 numbered steps: 4 x 2 on desktop, 2 x 4 on tablet, 1 column on phones */
.ag-steps{display:grid;gap:18px;grid-template-columns:minmax(0,1fr);counter-reset:s}
@media (min-width:640px){.ag-steps{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:1100px){.ag-steps{grid-template-columns:repeat(4,minmax(0,1fr))}}
.ag-steps .wp-step{height:100%}

/* cost per website */
.ag-stat{text-align:center}
.ag-stat b{display:block;font:800 clamp(34px,4vw,48px)/1.05 var(--display);color:var(--primary);margin-bottom:6px}
.ag-stat h3{margin:0 0 8px}
.ag-stat p{margin:0}

/* yes / not listed marks in the plan table */
.wc-table .ag-yes{color:var(--green-ink);font-weight:800}
.wc-table .ag-no{color:var(--ink-3)}

/* labelled bullet lists keep their label on its own line only when needed */
.ag-list{margin:0 0 18px}

/* inline internal links inside body copy */
.ag-in{color:var(--primary);font-weight:700;text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1.5px}
.ag-in:hover{text-decoration-thickness:2.5px}
