/* Solutions layout only; shared visual tokens, cards and pagination come from Products. */
.gs .gs-content { padding-block: 28px 40px; }
.gs h2 { font-size: 27px; line-height: 1.3; }
.gs .gs-animals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.gs .gs-animals a { display: flex; align-items: center; justify-content: center; gap: 18px; min-height: 80px; padding: 14px; border: 1px solid var(--gp-line); border-radius: 6px; font-size: 19px; font-weight: 500; }
.gs .gs-animals svg { width: 44px; height: 44px; flex-shrink: 0; }
.gs .gs-animals a:hover { background: #edf5fc; color: var(--gp-blue); }
.gs .gs-animals a[aria-current] { background: var(--gp-blue); color: #fff; border-color: var(--gp-blue); }
.gs .gs-flow-section { margin-block: 28px; scroll-margin-top: 24px; }
.gs .gs-flow-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px 24px; margin-bottom: 22px; }
.gs .gs-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 20px; margin: 0; padding: 0; font-size: 10px; color: var(--gp-muted); }
.gs .gs-legend li { display: flex; align-items: center; gap: 8px; }
.gs .gs-legend i { display: block; width: 17px; height: 17px; border-radius: 50%; flex-shrink: 0; }
.gs .gs-key-available { background: var(--gp-blue); }
.gs .gs-key-unavailable { background: #e3eaf1; border: 1px solid #d1dce7; }
.gs .gs-key-current { border: 2px solid var(--gp-blue); background: #fff; }
.gs .gs-flow { display: grid; grid-template-columns: repeat(var(--gs-main-count), minmax(0, 1fr)) minmax(170px, 1.45fr); align-items: center; gap: 23px; padding: 4px; }
.gs .gs-stage { position: relative; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; min-width: 0; min-height: 105px; padding: 11px 7px; border: 1px solid transparent; border-radius: 6px; font-size: 11px; text-align: center; line-height: 1.35; }
.gs .gs-stage svg { width: 31px; height: 31px; flex-shrink: 0; }
.gs .gs-stage-copy { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.gs .gs-stage-copy strong { font: inherit; font-weight: 500; }
.gs .gs-stage-copy small { font-size: 9px; opacity: .82; }
.gs .gs-available { background: var(--gp-blue); color: #fff; }
.gs .gs-unavailable { background: #e8eef4; color: var(--gp-muted); cursor: default; }
.gs a.gs-stage:hover { box-shadow: 0 3px 10px #19334f20; }
.gs .gs-stage[aria-current] { outline: 2px solid var(--gp-blue); outline-offset: 3px; background: #fff; color: var(--gp-blue); border-color: var(--gp-blue); font-weight: 600; }
.gs .gs-unavailable[aria-current] { background: #eef3f7; color: var(--gp-muted); }
.gs .gs-linear-flow > .gs-stage::after { content: '→'; position: absolute; left: calc(100% + 5px); top: 50%; transform: translateY(-50%); font-size: 19px; font-weight: 400; color: var(--gp-blue); }
.gs .gs-branches { position: relative; display: grid; gap: 10px; padding-left: 10px; }
.gs .gs-branches::before { content: ''; position: absolute; left: 0; top: 25%; bottom: 25%; border-left: 1px solid var(--gp-blue); }
.gs .gs-branches .gs-stage { min-height: 58px; flex-direction: row; padding: 9px 10px; gap: 9px; font-size: 10px; }
.gs .gs-branches .gs-stage::before { content: ''; position: absolute; right: 100%; width: 11px; top: 50%; border-top: 1px solid var(--gp-blue); }

/* Cattle and sheep branch: two routes merge at Evisceration. */
.gs .gs-cattle-flow { display: grid; grid-template-columns: minmax(105px, .8fr) minmax(350px, 2.5fr) minmax(105px, .8fr) minmax(105px, .8fr) minmax(105px, .8fr) minmax(170px, 1.25fr); align-items: center; gap: 20px; padding: 4px; }
.gs .gs-cattle-origin,
.gs .gs-cattle-step { position: relative; }
.gs .gs-cattle-routes { display: grid; gap: 17px; }
.gs .gs-cattle-route { padding: 10px 12px; border: 1px solid var(--gp-line); border-radius: 6px; background: #f7f9fc; }
.gs .gs-cattle-route > p { margin: 0 0 8px; color: var(--gp-blue); font-size: 10px; font-weight: 600; text-align: center; }
.gs .gs-cattle-route-path { display: grid; align-items: center; gap: 7px; }
.gs .gs-skinning-route { grid-template-columns: auto minmax(105px, 1fr) auto; }
.gs .gs-scalding-route { grid-template-columns: auto minmax(105px, 1fr) auto minmax(105px, 1fr) auto; }
.gs .gs-cattle-route-path .gs-stage { min-height: 72px; padding: 7px 5px; }
.gs .gs-cattle-route-path .gs-stage svg { width: 25px; height: 25px; }
.gs .gs-route-arrow { color: var(--gp-blue); font-size: 21px; line-height: 1; }
.gs .gs-cattle-evisceration::after,
.gs .gs-cattle-splitting::after,
.gs .gs-cattle-cutting::after { content: '→'; position: absolute; left: calc(100% + 5px); top: 50%; transform: translateY(-50%); color: var(--gp-blue); font-size: 19px; }

.gs .gs-related { scroll-margin-top: 24px; }
.gs .gs-selection { margin: 7px 0 16px; font-size: 12px; color: var(--gp-muted); }
.gs .gp-product-image { aspect-ratio: 2.65; padding: 14px; background: #fff; }
.gs .gp-product-image img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.gs .gs-related .gp-product-grid { align-items: stretch; }
.gs .gs-related .gp-product--compact { height: 100%; }
.gs .gs-related .gp-product--compact .gp-product-copy { min-width: 0; padding-top: 11px; }
.gs .gs-related .gp-product--compact .gp-product-category { min-height: 1.6em; margin-bottom: 5px; }
.gs .gs-related .gp-product--compact .gp-product-title { display: -webkit-box; min-height: 2.6em; overflow: hidden; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.gs .gs-related .gp-product--compact .gp-product-description { display: -webkit-box; min-height: 3.1em; margin: 7px 0 12px; overflow: hidden; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.gs .gs-related .gp-product--compact .gp-product-specs { display: grid; grid-template-columns: repeat(var(--gp-spec-count, 3), minmax(0, 1fr)); width: 100%; min-width: 0; margin: 0 0 12px; padding-top: 10px; border-top: 1px solid var(--gp-line); }
.gs .gs-related .gp-product--compact .gp-product-spec { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 0 7px; }
.gs .gs-related .gp-product--compact .gp-product-spec + .gp-product-spec { border-left: 1px solid #e5edf4; }
.gs .gs-related .gp-product--compact .gp-product-spec-icon { width: 24px; height: 24px; margin: 0 0 4px; padding: 4px; border-radius: 50%; color: var(--gp-blue); background: #edf5fc; }
.gs .gs-related .gp-product--compact .gp-product-spec-value { display: -webkit-box; min-width: 0; width: 100%; min-height: 2.5em; overflow: hidden; overflow-wrap: anywhere; word-break: normal; font-size: 11px; font-weight: 600; line-height: 1.25; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.gs .gs-related .gp-product--compact .gp-product-spec-label { margin-top: 3px; color: var(--gp-muted); font-size: 9px; line-height: 1.3; }
.gs .gs-manual-note { padding: 28px; background: #f4f7fa; border: 1px solid var(--gp-line); border-radius: 6px; }
.gs .gs-manual-note h3 { font-size: 18px; margin-bottom: 10px; }
.gs .gs-manual-note p { color: var(--gp-muted); max-width: 700px; }
.gs .gp-project-cta { margin-top: 22px; }
.gs .gp-product-grid { align-items: start; }

@media (min-width: 761px) {
	.gs .gp-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1180px) and (min-width: 761px) {
	.gs .gs-flow { gap: 16px; }
	.gs .gs-stage { padding-inline: 3px; font-size: 9px; }
	.gs .gs-stage-copy small { font-size: 8px; }
	.gs .gs-linear-flow > .gs-stage::after { left: calc(100% + 2px); font-size: 15px; }
	.gs .gs-branches .gs-stage { flex-direction: column; gap: 3px; font-size: 9px; }
	.gs .gs-branches .gs-stage svg { width: 24px; height: 24px; }
	.gs .gs-cattle-flow { grid-template-columns: minmax(90px, .75fr) minmax(300px, 2.5fr) repeat(3, minmax(90px, .75fr)) minmax(135px, 1.2fr); gap: 14px; }
	.gs .gs-cattle-route { padding-inline: 7px; }
	.gs .gs-cattle-route-path { gap: 4px; }
}

@media (max-width: 980px) and (min-width: 761px) {
	.gs .gs-related .gp-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.gs .gs-cattle-flow { grid-template-columns: 1fr; gap: 20px; }
	.gs .gs-cattle-origin,
	.gs .gs-cattle-step { display: grid; }
	.gs .gs-cattle-origin > .gs-stage,
	.gs .gs-cattle-step > .gs-stage { width: 100%; }
	.gs .gs-cattle-evisceration::after,
	.gs .gs-cattle-splitting::after,
	.gs .gs-cattle-cutting::after { content: '↓'; left: 50%; top: calc(100% + 1px); transform: translateX(-50%); }
	.gs .gs-cattle-flow > .gs-branches { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 14px 0 0; }
	.gs .gs-cattle-flow > .gs-branches::before { top: 0; bottom: auto; left: 25%; right: 25%; height: 0; border-left: 0; border-top: 1px solid var(--gp-blue); }
	.gs .gs-cattle-flow > .gs-branches .gs-stage::before { right: auto; left: 50%; top: -15px; width: 0; height: 14px; border-top: 0; border-left: 1px solid var(--gp-blue); }
}

@media (max-width: 760px) {
	.gs .gs-content { padding-block: 24px 30px; }
	.gs h2 { font-size: 24px; }
	.gs .gs-animals { gap: 9px; }
	.gs .gs-animals a { flex-direction: column; gap: 8px; min-height: 104px; padding: 12px 6px; font-size: 13px; text-align: center; }
	.gs .gs-animals svg { width: 36px; height: 36px; }
	.gs .gs-legend { gap: 10px 14px; font-size: 9px; }
	.gs .gs-legend i { width: 14px; height: 14px; }
	.gs .gs-flow { grid-template-columns: 1fr; gap: 20px; }
	.gs .gs-stage { min-height: 62px; flex-direction: row; justify-content: flex-start; padding: 12px 18px; gap: 16px; font-size: 13px; text-align: left; }
	.gs .gs-stage svg { width: 30px; height: 30px; }
	.gs .gs-stage-copy small { font-size: 10px; }
	.gs .gs-linear-flow > .gs-stage::after { content: '↓'; left: 50%; top: 100%; transform: translateX(-50%); line-height: 20px; }
	.gs .gs-branches { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 14px 0 0; }
	.gs .gs-branches::before { top: 0; bottom: auto; left: 25%; right: 25%; height: 0; border-left: 0; border-top: 1px solid var(--gp-blue); }
	.gs .gs-branches .gs-stage { flex-direction: column; justify-content: center; padding: 10px 6px; font-size: 11px; text-align: center; }
	.gs .gs-branches .gs-stage::before { right: auto; left: 50%; top: -15px; width: 0; height: 14px; border-top: 0; border-left: 1px solid var(--gp-blue); }
	.gs .gs-cattle-flow { grid-template-columns: 1fr; gap: 20px; }
	.gs .gs-cattle-origin,
	.gs .gs-cattle-step { display: grid; }
	.gs .gs-cattle-origin > .gs-stage,
	.gs .gs-cattle-step > .gs-stage { width: 100%; }
	.gs .gs-cattle-routes { gap: 12px; }
	.gs .gs-cattle-route { padding: 10px 8px; }
	.gs .gs-cattle-route-path .gs-stage { min-height: 72px; flex-direction: column; justify-content: center; padding: 8px 5px; gap: 5px; font-size: 10px; text-align: center; }
	.gs .gs-cattle-route-path .gs-stage-copy small { font-size: 8px; }
	.gs .gs-route-arrow { font-size: 18px; }
	.gs .gs-cattle-evisceration::after,
	.gs .gs-cattle-splitting::after,
	.gs .gs-cattle-cutting::after { content: '↓'; left: 50%; top: calc(100% + 1px); transform: translateX(-50%); }
	.gs .gp-product-grid { grid-template-columns: 1fr; }
	.gs .gp-product-image { aspect-ratio: 2.2; }
	.gs .gs-related .gp-product--compact .gp-product-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 10px; }
	.gs .gs-related .gp-product--compact .gp-product-spec:nth-child(3) { border-left: 0; }
}

@media (max-width: 380px) {
	.gs .gs-related .gp-product--compact .gp-product-specs { grid-template-columns: 1fr; }
	.gs .gs-related .gp-product--compact .gp-product-spec + .gp-product-spec { border-top: 1px solid #e5edf4; border-left: 0; padding-top: 8px; }
}
