/* v267 — compact and readable two-column code cards, with unchanged prompt data */
.c126-main .c126-group-body{padding:18px;background:#fffaf3}
.c126-main .c126-code-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:stretch}
.c126-main .c126-code-card{display:flex;flex-direction:column;gap:8px;min-height:130px;height:auto;padding:15px 17px;border:1px solid #dfd1bf;border-radius:9px;background:#fffdf9;box-shadow:none}
.c126-main .c126-code-card:hover{border-color:#f4a976;box-shadow:0 3px 12px rgba(25,10,0,.04)}
.c126-main .c126-code-name{font:750 17px/1.28 'Manrope',sans-serif;letter-spacing:-.015em;color:#1b1713;margin:0;overflow-wrap:anywhere}
.c126-main .c126-code-desc{font:500 13px/1.48 'Manrope',sans-serif;color:#504840;margin:0;min-height:0;flex:1 1 auto}
.c126-main .c126-copy{display:inline-flex;align-self:flex-start;width:auto;min-width:151px;max-width:100%;min-height:39px;margin-top:2px;padding:8px 12px;gap:7px;border:1px solid #ff661c;border-radius:6px;background:#fffaf6;color:#e94f0c;font:750 12px/1.3 'Manrope',sans-serif;justify-content:center;align-items:center}
.c126-main .c126-copy svg{width:15px;height:15px}
.c126-main .c126-copy:hover{background:#f75b18;border-color:#f75b18;color:#fff}
.c126-main .c126-more-wrap{padding-top:15px}
.c126-main .c126-more{min-height:42px;padding:9px 18px;font-size:12px}
/* Four illustrated codes: preserve images in small thumbnails, instead of large panels. */
.c126-main .c126-code-card:has(>.c126-card-image){display:grid;grid-template-columns:110px minmax(0,1fr);grid-template-rows:auto 1fr auto;gap:5px 13px;min-height:138px;align-items:start}
.c126-main .c126-code-card>.c126-card-image{grid-column:1;grid-row:1 / span 3;display:block;width:110px;height:108px;max-height:none;aspect-ratio:auto;object-fit:cover;border-radius:7px;align-self:center}
.c126-main .c126-code-card:has(>.c126-card-image)>.c126-code-name,.c126-main .c126-code-card:has(>.c126-card-image)>.c126-code-desc,.c126-main .c126-code-card:has(>.c126-card-image)>.c126-copy{grid-column:2;min-width:0}
/* Explicit client-side validation: the form disables native constraint validation. */
.c126-main .c126-lead-validation{display:block;margin:-3px 0 5px;padding:9px 11px;border:1px solid #e9a182;border-left:4px solid #d9450a;border-radius:6px;background:#fff1e8;color:#a62c09;font:700 12px/1.45 'Manrope',sans-serif}
.c126-main .c126-lead-validation[hidden]{display:none}
.c126-main .c126-lead-consent.is-invalid{border-radius:6px;background:#fff0e9;padding:6px}
.c126-main #videos-cta-consent[aria-invalid="true"]{outline:2px solid #c93709;outline-offset:2px}
.c126-main #videos-cta-input[aria-invalid="true"]{border-color:#d9450a;box-shadow:0 0 0 2px #ff45002c}
@media(max-width:800px){
.c126-main .c126-code-grid{grid-template-columns:1fr;gap:10px}
.c126-main .c126-group-body{padding:13px}
.c126-main .c126-code-card{min-height:125px;padding:14px 15px}
.c126-main .c126-code-name{font-size:16px}
.c126-main .c126-code-desc{font-size:13px;line-height:1.5}
.c126-main .c126-copy{min-height:42px;font-size:12px}
}
@media(max-width:410px){
.c126-main .c126-code-card:has(>.c126-card-image){grid-template-columns:88px minmax(0,1fr);column-gap:10px;padding:12px}
.c126-main .c126-code-card>.c126-card-image{width:88px;height:93px}
.c126-main .c126-code-card:has(>.c126-card-image)>.c126-copy{min-width:0;width:100%;font-size:11px;padding:8px 5px}
}
/* Honour the catalogue's progressive-reveal and search filters (hidden HTML cards). */
.c126-main .c126-code-card[hidden],
.c126-main .c126-code-card:has(>.c126-card-image)[hidden] {display:none!important}
/* Grid items with a thumbnail must not stretch their copy buttons full-width. */
.c126-main .c126-code-card:has(>.c126-card-image)>.c126-copy {justify-self:start;width:max-content;min-width:151px;max-width:100%}
@media(max-width:410px){.c126-main .c126-code-card:has(>.c126-card-image)>.c126-copy {min-width:0;width:100%}}
