/* Card grids, tiles, jump-link pills, project cards and stat tiles (build plan §3: S09a–f, S10, S11, S12a–b, S13a–b). */

/* Cards */
.b-card .wp-block-image,.b-stat-tile .wp-block-image,.b-contact-stats .wp-block-image{margin-top:0;margin-bottom:0}
.b-card :where(h3,p){margin-bottom:0}
.b-card-title{line-height:1.1}
.b-card-row>.wp-block-group{flex:1 1 auto;min-width:0}
.b-tool-card .is-style-checks{gap:8px;margin-top:9px}
.b-tool-card .is-style-checks>li{padding-left:20px;line-height:1.3}
.b-tool-card .is-style-checks>li::before{width:13px;height:13px;top:.15em;background:url(../../icons/ico-skills-advanced-formulas.svg) center/contain no-repeat;-webkit-mask:none;mask:none}

/* Arrow-only link: the label stays for screen readers, only the arrow is drawn. */
p.b-arrow-only a{font-size:0;display:inline-block;padding:6px}
p.b-arrow-only a::after{width:14px;height:14px;margin-left:0}

/* Project cards */
.b-project-card .b-project-thumb img{display:block;width:100%;height:auto;aspect-ratio:295/170;object-fit:cover}
.b-project-card .b-project-cover{min-height:192px}
.b-project-card h3.has-icon-external a{color:var(--wp--preset--color--slate-900)}
.b-project-card h3.has-icon-external a::after{background:var(--wp--preset--color--violet-600);width:14px;height:14px;vertical-align:-1px}
.b-tool-chips{margin-top:12px}
.b-tool-chip{display:inline-flex;align-items:center;gap:5px;margin:0;padding:5px 8px;border-radius:5px;background:var(--wp--custom--avatar-bg);color:var(--wp--preset--color--slate-700);font-size:10.5px;font-weight:600;line-height:1.25}
.b-tool-chip::before{content:"";width:11px;height:11px;background:center/contain no-repeat}
.b-tool-chip.tool-excel::before{background-image:url(../../icons/ico-projects-excel.svg)}
.b-tool-chip.tool-pq::before{background-image:url(../../icons/ico-projects-power-query.svg)}
.b-tool-chip.tool-sql::before{background-image:url(../../icons/ico-projects-sql.svg)}
.b-tool-chip.tool-pbi::before{background-image:url(../../icons/ico-projects-power-bi.svg)}

/* Jump-link tabs (Industries) and pills (Projects) */
.b-tabs .wp-block-button.is-style-pill>.wp-block-button__link{min-height:35px;padding:9px 14px;border-color:transparent;border-radius:7px;font-weight:600}
.b-pills .wp-block-button.is-style-pill>.wp-block-button__link{min-height:40px}
.b-pill-ico>.wp-block-button__link::before{content:"";width:15px;height:15px;margin-right:8px;background-position:center;background-size:contain;background-repeat:no-repeat}
.b-ico-real-estate>a::before{background-image:url(../../icons/ico-projects-real-estate.svg)}
.b-ico-retail>a::before{background-image:url(../../icons/ico-projects-retail-and-e-commerce.svg)}
.b-ico-finance>a::before{background-image:url(../../icons/ico-projects-finance.svg)}
.b-ico-logistics>a::before{background-image:url(../../icons/ico-projects-logistics.svg)}
.b-ico-healthcare>a::before{background-image:url(../../icons/ico-projects-healthcare.svg)}
.b-ico-others>a::before{background-image:url(../../icons/ico-projects-others.svg)}

/* Stat tiles */
.b-stat-tile p{margin:0}
@media (min-width:1081px){.b-stat-tile p{white-space:nowrap}}
.b-stars img{display:block}
.b-divided>*+*{padding-left:22px}

/* Responsive (§8) */
@media (max-width:1080px){
	.b-grid--stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}
	.b-divided>:nth-child(odd){border-left:0;padding-left:0}
}
@media (max-width:860px){
	.b-grid:is(.b-grid--3,.b-grid--4,.b-grid--5,.b-grid--6){grid-template-columns:repeat(2,minmax(0,1fr))!important}
	.b-grid--9{grid-template-columns:repeat(3,minmax(0,1fr))!important}
	.b-divided>*+*{padding-left:0}
	.b-split-action{justify-content:flex-start!important}
}
@media (max-width:640px){
	.b-grid:is(.b-grid--3,.b-grid--4,.b-grid--5){grid-template-columns:minmax(0,1fr)!important}
	.b-grid--9{grid-template-columns:repeat(2,minmax(0,1fr))!important}
	:is(.b-tabs,.b-pills) .wp-block-button.is-style-pill>.wp-block-button__link{min-height:44px}
	.b-tabs{justify-content:flex-start!important}
}
@media (max-width:480px){
	.b-stat-tile,.b-divided>*{row-gap:16px}
	.b-stat-tile{flex-direction:column;align-items:flex-start!important;gap:10px!important}
	:is(.b-tabs,.b-pills)>.wp-block-button{flex-basis:auto}
	:is(.b-tabs,.b-pills)>.wp-block-button>.wp-block-button__link{width:auto}
}

/* QA fix pass */
.b-project-card .b-project-thumb img{object-position:left top}
.b-project-card h3 a{display:inline-block;min-height:24px}
@media (min-width:1081px){
	#industries-grid>.b-grid{margin-block-start:54px}
	#industries-grid .b-card>h3{margin-block-start:17px}
	#industries-grid .b-card>:last-child{margin-block-start:21px}
	.wp-block-group.b-help-card{padding-right:10px!important;padding-left:10px!important}
}
@media (max-width:640px){
	.b-grid--4:has(>.b-tile){grid-template-columns:repeat(2,minmax(0,1fr))!important}
	.wp-block-group.b-tile{padding-right:12px!important;padding-left:12px!important}
}
@media (max-width:480px){
	.b-contact-stats .b-grid--stats{grid-template-columns:minmax(0,1fr)!important}
	.b-contact-stats .b-divided>*{border-left:0;padding-left:0}
}
@media (min-width:1081px){
	section:has(.b-tile)>.wp-block-group:first-child>p:last-child{max-width:400px}
}
