<!-- -->
/* Card rows line up (Nov 18 2026). Stefanie, on the three Content Packages columns: "these should line up... and make
 * sure things like this line up throughout the site!"
 *
 * When cards sit side by side, each part of a card starts at the same height as the same part in its neighbours:
 * heading with heading, text with text, the fold-out with the fold-out, the link with the link. A longer heading or
 * paragraph in one card pushes that row down in all of them, instead of leaving the cards ragged.
 *
 * How: the row of cards is already a grid. Each card becomes a "subgrid" that borrows the row lines of that grid, one
 * line per part (the number after "span" is how many parts the card has). Browsers without subgrid skip the whole
 * block and show the cards as before. Each rule only applies at the widths where that set sits in columns.
 *
 * To add a set: the row, the card, and the number of parts in a card. Each rule checks that no card in the row has
 * more parts than that (the :has part), so a card with extra parts is never squeezed.
 * The finder is redesign/static-export/aligncheck.mjs (lists every row of cards whose parts start at different heights).
 */
@supports (grid-template-rows: subgrid) and selector(:has(a)) {
  @media (min-width: 768px) {

    /* /content-packages/: Company Content / Executive Branding / Company + Leaders (6 parts): her screenshot */
    .mb-ways:not(:has(> .mb-way > :nth-child(7))) > .mb-way { display: grid !important; grid-template-rows: subgrid; grid-row: span 6; row-gap: 0; align-self: stretch; align-content: start; }
    .mb-ways:not(:has(> .mb-way > :nth-child(7))) > .mb-way > :is(a, button) { justify-self: start; align-self: start; }

    /* ---- found by the scan of all 210 pages at 1440 wide (Nov 18 2026) ---- */
    /* /ai-advantage-strategy-day/: 2 parts, was off by up to 96px */
    .m-swipe:not(:has(> .tcard > :nth-child(3))) > .tcard { display: grid !important; grid-template-rows: subgrid; grid-row: span 2; row-gap: 0; align-self: stretch; align-content: start; }
    /* /book-a-strategy-call/ (+53 more): 2 parts, was off by up to 38px */
    .ob__list:not(:has(> li > :nth-child(3))) > li { display: grid !important; grid-template-rows: subgrid; grid-row: span 2; row-gap: 0; align-self: stretch; align-content: start; }
    /* /build-your-authority/: 4 parts, was off by up to 28px */
    .ba-ways:not(:has(> li > :nth-child(5))) > li { display: grid !important; grid-template-rows: subgrid; grid-row: span 4; row-gap: 0; align-self: stretch; align-content: start; }
    /* /building-materials-marketing/: 6 parts, was off by up to 88px */
    .bmm-chan:not(:has(> li > :nth-child(7))) > li { display: grid !important; grid-template-rows: subgrid; grid-row: span 6; row-gap: 0; align-self: stretch; align-content: start; }
    .bmm-chan:not(:has(> li > :nth-child(7))) > li > :is(a.k-go) { justify-self: start; }
    /* /content-packages/: 6 parts, was off by up to 29px */
    .mb-ways:not(:has(> .mb-way > :nth-child(7))) > .mb-way { display: grid !important; grid-template-rows: subgrid; grid-row: span 6; row-gap: 0; align-self: stretch; align-content: start; }
    .mb-ways:not(:has(> .mb-way > :nth-child(7))) > .mb-way > :is(a.k-go) { justify-self: start; }
    /* /content-packages/: 3 parts, was off by up to 57px */
    .mb-more__grid:not(:has(> div > :nth-child(4))) > div { display: grid !important; grid-template-rows: subgrid; grid-row: span 3; row-gap: 0; align-self: stretch; align-content: start; }
    /* /content-packages/: 3 parts, was off by up to 36px */
    .mb-round:not(:has(> li > :nth-child(4))) > li { display: grid !important; grid-template-rows: subgrid; grid-row: span 3; row-gap: 0; align-self: stretch; align-content: start; }
    /* /grit-blueprint-podcast/: 5 parts, was off by up to 70px */
    .oa-pick__grid:not(:has(> .oa-ep > :nth-child(6))) > .oa-ep { display: grid !important; grid-template-rows: subgrid; grid-row: span 5; row-gap: 0; align-self: stretch; align-content: start; }
    .oa-pick__grid:not(:has(> .oa-ep > :nth-child(6))) > .oa-ep > :is(a.k-go) { justify-self: start; }
    /* /grit-blueprint-podcast/: 3 parts, was off by up to 36px */
    .oa-ways__list:not(:has(> li > :nth-child(4))) > li { display: grid !important; grid-template-rows: subgrid; grid-row: span 3; row-gap: 0; align-self: stretch; align-content: start; }
    /* /grit-guide/: 5 parts, was off by up to 6px */
    .gg-watch__g:not(:has(> .gg-feature > :nth-child(6))) > .gg-feature { display: grid !important; grid-template-rows: subgrid; grid-row: span 5; row-gap: 0; align-self: stretch; align-content: start; }
    .gg-watch__g:not(:has(> .gg-feature > :nth-child(6))) > .gg-feature > :is(a.k-go) { justify-self: start; }
    /* /grit-studios/: 2 parts, was off by up to 36px */
    .stu-faq__g:not(:has(> div > :nth-child(3))) > div { display: grid !important; grid-template-rows: subgrid; grid-row: span 2; row-gap: 0; align-self: stretch; align-content: start; }
    /* /guides/: 4 parts, was off by up to 34px */
    .gh-foot:not(:has(> div > :nth-child(5))) > div { display: grid !important; grid-template-rows: subgrid; grid-row: span 4; row-gap: 0; align-self: stretch; align-content: start; }
    /* /guides/new-logo-or-new-website-first/: 3 parts, was off by up to 29px */
    .gl-next:not(:has(> li > :nth-child(4))) > li { display: grid !important; grid-template-rows: subgrid; grid-row: span 3; row-gap: 0; align-self: stretch; align-content: start; }
    /* /industries/building-industry-technology/: 2 parts, was off by up to 35px */
    .tk-seats:not(:has(> .tk-seat > :nth-child(3))) > .tk-seat { display: grid !important; grid-template-rows: subgrid; grid-row: span 2; row-gap: 0; align-self: stretch; align-content: start; }
    /* /industries/doors/: 2 parts, was off by up to 38px */
    .dr-parts:not(:has(> li > :nth-child(3))) > li { display: grid !important; grid-template-rows: subgrid; grid-row: span 2; row-gap: 0; align-self: stretch; align-content: start; }
    /* /industries/doors/: 6 parts, was off by up to 89px */
    .dr-cards:not(:has(> .dr-card > :nth-child(7))) > .dr-card { display: grid !important; grid-template-rows: subgrid; grid-row: span 6; row-gap: 0; align-self: stretch; align-content: start; }
    .dr-cards:not(:has(> .dr-card > :nth-child(7))) > .dr-card > :is(a.k-go) { justify-self: start; }
    /* /industries/engineered-wood/: 3 parts, was off by up to 31px */
    .ew-fam__grid:not(:has(> div > :nth-child(4))) > div { display: grid !important; grid-template-rows: subgrid; grid-row: span 3; row-gap: 0; align-self: stretch; align-content: start; }
    /* /industries/hardware-retail/: 3 parts, was off by up to 31px */
    .ihw-rail:not(:has(> li > :nth-child(4))) > li { display: grid !important; grid-template-rows: subgrid; grid-row: span 3; row-gap: 0; align-self: stretch; align-content: start; }
    /* /industries/: 3 parts, was off by up to 12px */
    .ix-rows:not(:has(> li > :nth-child(4))) > li { display: grid !important; grid-template-rows: subgrid; grid-row: span 3; row-gap: 0; align-self: stretch; align-content: start; }
    /* /industries/: 2 parts, was off by up to 43px */
    .ix-quotes:not(:has(> .ix-q > :nth-child(3))) > .ix-q { display: grid !important; grid-template-rows: subgrid; grid-row: span 2; row-gap: 0; align-self: stretch; align-content: start; }
    /* /industries/lumber-building-materials/: 5 parts, was off by up to 18px */
    .lb-sites:not(:has(> article > :nth-child(6))) > article { display: grid !important; grid-template-rows: subgrid; grid-row: span 5; row-gap: 0; align-self: stretch; align-content: start; }
    /* /industries/lumber-building-materials/: cards differ in parts, so the last link is set on one line (was off by up to 66px) */
    .lb-films > article { display: flex; flex-direction: column; align-self: stretch; }
    .lb-films > article > :last-child { margin-top: auto; }
    .lb-films > article > :is(a.k-go) { align-self: flex-start; }
    /* /industries/millwork-architectural-products/: 5 parts, was off by up to 47px */
    .mw-two:not(:has(> article > :nth-child(6))) > article { display: grid !important; grid-template-rows: subgrid; grid-row: span 5; row-gap: 0; align-self: stretch; align-content: start; }
    /* /industries/modular-offsite-construction/: 2 parts, was off by up to 38px */
    .md-units:not(:has(> li > :nth-child(3))) > li { display: grid !important; grid-template-rows: subgrid; grid-row: span 2; row-gap: 0; align-self: stretch; align-content: start; }
    /* /industries/windows-doors/: 5 parts, was off by up to 52px */
    .wd-cos:not(:has(> li > :nth-child(6))) > li { display: grid !important; grid-template-rows: subgrid; grid-row: span 5; row-gap: 0; align-self: stretch; align-content: start; }
    .wd-cos:not(:has(> li > :nth-child(6))) > li > :is(a.k-go) { justify-self: start; }
    /* /markets/: 3 parts, was off by up to 8px */
    .mkh-ways__list:not(:has(> li > :nth-child(4))) > li { display: grid !important; grid-template-rows: subgrid; grid-row: span 3; row-gap: 0; align-self: stretch; align-content: start; }
    .mkh-ways__list:not(:has(> li > :nth-child(4))) > li > :is(a.k-go, span.mkh-ways__here) { justify-self: start; }
    /* /markets/multifamily/: 3 parts, was off by up to 30px */
    .mmf-two__cols:not(:has(> div > :nth-child(4))) > div { display: grid !important; grid-template-rows: subgrid; grid-row: span 3; row-gap: 0; align-self: stretch; align-content: start; }
    /* /markets/multifamily/: 5 parts, was off by up to 33px */
    .mmf-work__two:not(:has(> div > :nth-child(6))) > div { display: grid !important; grid-template-rows: subgrid; grid-row: span 5; row-gap: 0; align-self: stretch; align-content: start; }
    /* /markets/new-construction/: 2 parts, was off by up to 37px */
    .mnc-path__steps:not(:has(> li > :nth-child(3))) > li { display: grid !important; grid-template-rows: subgrid; grid-row: span 2; row-gap: 0; align-self: stretch; align-content: start; }
    /* /markets/residential/: 3 parts, was off by up to 69px */
    .mrs-pick__list:not(:has(> li > :nth-child(4))) > li { display: grid !important; grid-template-rows: subgrid; grid-row: span 3; row-gap: 0; align-self: stretch; align-content: start; }
    .mrs-pick__list:not(:has(> li > :nth-child(4))) > li > :is(a.k-go) { justify-self: start; }
    /* /services/brand-identity/: 2 parts, was off by up to 34px */
    .bi-chips:not(:has(> li > :nth-child(3))) > li { display: grid !important; grid-template-rows: subgrid; grid-row: span 2; row-gap: 0; align-self: stretch; align-content: start; }
    /* /services/company-visibility-authority/: 6 parts, was off by up to 21px */
    .cc-films__grid:not(:has(> .cc-film > :nth-child(7))) > .cc-film { display: grid !important; grid-template-rows: subgrid; grid-row: span 6; row-gap: 0; align-self: stretch; align-content: start; }
    .cc-films__grid:not(:has(> .cc-film > :nth-child(7))) > .cc-film > :is(a.k-go) { justify-self: start; }
    /* /services/custom-ai-projects/: 3 parts, was off by up to 5px */
    .ca-pick__list:not(:has(> li > :nth-child(4))) > li { display: grid !important; grid-template-rows: subgrid; grid-row: span 3; row-gap: 0; align-self: stretch; align-content: start; }
    /* /services/custom-ai-projects/: 3 parts, was off by up to 24px */
    .ca-watch__films:not(:has(> li > :nth-child(4))) > li { display: grid !important; grid-template-rows: subgrid; grid-row: span 3; row-gap: 0; align-self: stretch; align-content: start; }
    .ca-watch__films:not(:has(> li > :nth-child(4))) > li > :is(a.k-go) { justify-self: start; }
    /* /services/event-media-production/: 4 parts, was off by up to 64px */
    .em-haul:not(:has(> li > :nth-child(5))) > li { display: grid !important; grid-template-rows: subgrid; grid-row: span 4; row-gap: 0; align-self: stretch; align-content: start; }
    .em-haul:not(:has(> li > :nth-child(5))) > li > :is(a.k-go) { justify-self: start; }
    /* /services/executive-branding/: 5 parts, was off by up to 44px */
    .ex-cov__grid:not(:has(> .ex-lead > :nth-child(6))) > .ex-lead { display: grid !important; grid-template-rows: subgrid; grid-row: span 5; row-gap: 0; align-self: stretch; align-content: start; }
    .ex-cov__grid:not(:has(> .ex-lead > :nth-child(6))) > .ex-lead > :is(a.k-go) { justify-self: start; }
    /* /services/executive-branding/: 3 parts, was off by up to 30px */
    .ex-why__stats:not(:has(> li > :nth-child(4))) > li { display: grid !important; grid-template-rows: subgrid; grid-row: span 3; row-gap: 0; align-self: stretch; align-content: start; }
    /* /services/podcast-production/: 4 parts, was off by up to 20px */
    .pc-eps:not(:has(> .pc-ep > :nth-child(5))) > .pc-ep { display: grid !important; grid-template-rows: subgrid; grid-row: span 4; row-gap: 0; align-self: stretch; align-content: start; }
    /* /services/practical-ai-systems/: 3 parts, was off by up to 5px */
    .at-pick__list:not(:has(> li > :nth-child(4))) > li { display: grid !important; grid-template-rows: subgrid; grid-row: span 3; row-gap: 0; align-self: stretch; align-content: start; }
    /* /services/sales-enablement/: 2 parts, was off by up to 36px */
    .se-rail:not(:has(> li > :nth-child(3))) > li { display: grid !important; grid-template-rows: subgrid; grid-row: span 2; row-gap: 0; align-self: stretch; align-content: start; }
    /* /services/video-media-production/plant-tour-videos/: 4 parts, was off by up to 28px */
    .ptv-films__grid:not(:has(> .ptv-film > :nth-child(6))) > .ptv-film { display: grid !important; grid-template-rows: subgrid; grid-row: span 4; row-gap: 0; align-self: stretch; align-content: start; }
    .ptv-films__grid:not(:has(> .ptv-film > :nth-child(6))) > .ptv-film > :is(a.k-go) { justify-self: start; }
    /* /services/website-build/ (+1 more): 2 parts, was off by up to 22px */
    .sites__grid:not(:has(> li > :nth-child(3))) > li { display: grid !important; grid-template-rows: subgrid; grid-row: span 2; row-gap: 0; align-self: stretch; align-content: start; }
    .sites__grid:not(:has(> li > :nth-child(3))) > li > :is(a.sites__url) { justify-self: start; }
    /* /services/website-build/: 3 parts, was off by up to 32px */
    .sv-how__list:not(:has(> li > :nth-child(4))) > li { display: grid !important; grid-template-rows: subgrid; grid-row: span 3; row-gap: 0; align-self: stretch; align-content: start; }
    /* /services/website-build/window-door-millwork-companies/: 5 parts, was off by up to 44px */
    .wd-six__grid:not(:has(> li > :nth-child(6))) > li { display: grid !important; grid-template-rows: subgrid; grid-row: span 5; row-gap: 0; align-self: stretch; align-content: start; }
    /* /sierra-pacific-windows/: 3 parts, was off by up to 26px */
    .voices-grid:not(:has(> figure > :nth-child(4))) > figure { display: grid !important; grid-template-rows: subgrid; grid-row: span 3; row-gap: 0; align-self: stretch; align-content: start; }
    /* /stefanie-couch/: 2 parts, was off by up to 30px */
    .sc-says__grid:not(:has(> .sc-say > :nth-child(3))) > .sc-say { display: grid !important; grid-template-rows: subgrid; grid-row: span 2; row-gap: 0; align-self: stretch; align-content: start; }
    /* /team/: 2 parts, was off by up to 28px */
    .crew-said__two:not(:has(> figure > :nth-child(3))) > figure { display: grid !important; grid-template-rows: subgrid; grid-row: span 2; row-gap: 0; align-self: stretch; align-content: start; }
    /* /testimonials/: 3 parts, was off by up to 17px */
    .watch-rail:not(:has(> .gb-tst-video > :nth-child(4))) > .gb-tst-video { display: grid !important; grid-template-rows: subgrid; grid-row: span 3; row-gap: 0; align-self: stretch; align-content: start; }
    /* /watch-and-learn/: 4 parts, was off by up to 113px */
    .wl-read__g:not(:has(> div > :nth-child(5))) > div { display: grid !important; grid-template-rows: subgrid; grid-row: span 4; row-gap: 0; align-self: stretch; align-content: start; }
    .wl-read__g:not(:has(> div > :nth-child(5))) > div > :is(a.k-go) { justify-self: start; }
    /* /who-we-help/associations-industry-events/: 2 parts, was off by up to 64px */
    .pg-say__pair:not(:has(> figure > :nth-child(3))) > figure { display: grid !important; grid-template-rows: subgrid; grid-row: span 2; row-gap: 0; align-self: stretch; align-content: start; }
    /* /who-we-help/contractors-remodelers/: 5 parts, was off by up to 24px */
    .cr-board:not(:has(> .cr-job > :nth-child(6))) > .cr-job { display: grid !important; grid-template-rows: subgrid; grid-row: span 5; row-gap: 0; align-self: stretch; align-content: start; }
    .cr-board:not(:has(> .cr-job > :nth-child(6))) > .cr-job > :is(a.k-go) { justify-self: start; }
    /* /who-we-help/dealer-networks-buying-groups/: 2 parts, was off by up to 36px */
    .mr-rail:not(:has(> .mr-tag > :nth-child(3))) > .mr-tag { display: grid !important; grid-template-rows: subgrid; grid-row: span 2; row-gap: 0; align-self: stretch; align-content: start; }
    /* /who-we-help/distributors/: cards differ in parts, so the last link is set on one line (was off by up to 95px) */
    .ds-pair > .ds-job { display: flex; flex-direction: column; align-self: stretch; }
    .ds-pair > .ds-job > :last-child { margin-top: auto; }
    .ds-pair > .ds-job > :is(a.k-go) { align-self: flex-start; }
    /* /who-we-help/hardware-stores-home-centers/: 5 parts, was off by up to 25px */
    .hw-two:not(:has(> div > :nth-child(6))) > div { display: grid !important; grid-template-rows: subgrid; grid-row: span 5; row-gap: 0; align-self: stretch; align-content: start; }
    .hw-two:not(:has(> div > :nth-child(6))) > div > :is(a.k-go) { justify-self: start; }
    /* /who-we-help/: 3 parts, was off by up to 62px */
    .td-said__grid:not(:has(> .td-q > :nth-child(4))) > .td-q { display: grid !important; grid-template-rows: subgrid; grid-row: span 3; row-gap: 0; align-self: stretch; align-content: start; }
    .td-said__grid:not(:has(> .td-q > :nth-child(4))) > .td-q > :is(span.td-q__tag) { justify-self: start; }
    /* /who-we-help/lumberyards-building-material-dealers/: 4 parts, was off by up to 25px */
    .ly-names:not(:has(> li > :nth-child(5))) > li { display: grid !important; grid-template-rows: subgrid; grid-row: span 4; row-gap: 0; align-self: stretch; align-content: start; }
    .ly-names:not(:has(> li > :nth-child(5))) > li > :is(a) { justify-self: start; }
    /* /who-we-help/retailers/: 4 parts, was off by up to 49px */
    :not(:has(> li.rt-tag > :nth-child(5))) > li.rt-tag { display: grid !important; grid-template-rows: subgrid; grid-row: span 4; row-gap: 0; align-self: stretch; align-content: start; }
    /* /who-we-help/retailers/: 4 parts, was off by up to 9px */
    .rt-three:not(:has(> li > :nth-child(5))) > li { display: grid !important; grid-template-rows: subgrid; grid-row: span 4; row-gap: 0; align-self: stretch; align-content: start; }
    .rt-three:not(:has(> li > :nth-child(5))) > li > :is(a.k-go) { justify-self: start; }
    /* /who-we-help/retailers/: cards differ in parts, so the last link is set on one line (was off by up to 92px) */
    .rt-ed__g > div { display: flex; flex-direction: column; align-self: stretch; }
    .rt-ed__g > div > :last-child { margin-top: auto; }
    .rt-ed__g > div > :is(a.rt-u) { align-self: flex-start; }
    /* /work/deborah-everson/: 2 parts, was off by up to 58px */
    .gbsp-vid-list:not(:has(> div > :nth-child(3))) > div { display: grid !important; grid-template-rows: subgrid; grid-row: span 2; row-gap: 12px; align-self: stretch; align-content: start; }
    /* /work/gina-schaefer-speaker-brand-website/ (+1 more): 3 parts, was off by up to 24px */
    .gbsp-pal:not(:has(> div > :nth-child(4))) > div { display: grid !important; grid-template-rows: subgrid; grid-row: span 3; row-gap: 8px; align-self: stretch; align-content: start; }
    /* /work/national-glass-association-speaking/: 4 parts, was off by up to 17px */
    :not(:has(> article.gbsp-pcard > :nth-child(5))) > article.gbsp-pcard { display: grid !important; grid-template-rows: subgrid; grid-row: span 4; row-gap: 0; align-self: stretch; align-content: start; }
    :not(:has(> article.gbsp-pcard > :nth-child(5))) > article.gbsp-pcard > :is(button.gbsp-pc-more) { justify-self: start; }
    /* /work/north-american-wholesale-lumber-association-speaking/ (+1 more): 2 parts, was off by up to 39px */
    .gbsp-facts:not(:has(> .f > :nth-child(3))) > .f { display: grid !important; grid-template-rows: subgrid; grid-row: span 2; row-gap: 6px; align-self: stretch; align-content: start; }
    /* /workshop-training/: 6 parts, was off by up to 55px */
    .wk-three:not(:has(> .wk-roomtext > :nth-child(7))) > .wk-roomtext { display: grid !important; grid-template-rows: subgrid; grid-row: span 6; row-gap: 0; align-self: stretch; align-content: start; }
    .wk-three:not(:has(> .wk-roomtext > :nth-child(7))) > .wk-roomtext > :is(a.k-go) { justify-self: start; }
    /* /workshop-training/: 3 parts, was off by up to 56px */
    .wk-plan__list:not(:has(> li > :nth-child(4))) > li { display: grid !important; grid-template-rows: subgrid; grid-row: span 3; row-gap: 0; align-self: stretch; align-content: start; }
  }
}
/*<script type="application/ld+json">{"@context":"https://schema.org","@type":"WebPage","name":"align.css","headline":"align.css","url":"https://www.gritblueprint.com/assets/align-121f7711.css","mainEntityOfPage":"https://www.gritblueprint.com/assets/align-121f7711.css","datePublished":"2026-11-18T16:41:59.783Z","dateModified":"2026-11-18T17:01:18.871Z","publisher":{"@type":"Organization","name":"Grit Blueprint"}}</script><script type="application/ld+json">{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://www.gritblueprint.com/"},{"@type":"ListItem","position":2,"name":"Assets","item":"https://www.gritblueprint.com/assets/"},{"@type":"ListItem","position":3,"name":"align.css","item":"https://www.gritblueprint.com/assets/align-121f7711.css/"}]}</script><link rel="canonical" href="https://www.gritblueprint.com/assets/align-121f7711.css"><meta property="og:url" content="https://www.gritblueprint.com/assets/align-121f7711.css"><meta property="og:title" content="Grit Blueprint"><meta property="og:type" content="website"><meta property="og:image" content="https://www.gritblueprint.com/_og/9b8cb6e740d327bf.png"><meta name="twitter:image" content="https://www.gritblueprint.com/_og/9b8cb6e740d327bf.png"><meta name="twitter:card" content="summary_large_image"><meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1"><script id="so-hp">
/* so-hp-v1: site-wide form honeypot (Grit, 2026-11-18; tools/honeypot.py installs it in publishConfig.customHead).
   1. Every lead form without a trap field gets one: an off-screen text input named _company (StaticOwl's own trap
      name; its {% form %} tag already renders it). People never see or reach it; form-filling bots fill it.
   2. When a trap is filled and the page posts a lead (StaticOwl /api/public/forms/<token>/submit, HubSpot, an n8n
      webhook, /__sc/), nothing is sent and the page gets a normal-looking success response. Checked 2026-11-18:
      StaticOwl does score a filled _company 100, but it STILL fires the form.submitted integration (lead email), so
      the block has to happen here. A trap the browser's own autofill filled is ignored (people, not bots). */
(function () {
  if (window.__soHp) return;
  window.__soHp = 1;
  var TRAP = 'input[name="_company"],input[name="company_website"],.gform_validation_container input,' +
    '.gfield--type-honeypot input,.elementor-field-type-honeypot input,.k-nl__trap input,input[name="website"][tabindex="-1"],input.so-hp-in';
  var SO_SUBMIT = /\/api\/public\/forms\/[^\/]+\/submit/;
  var OTHER_LEAD = /hsforms\.com\/submissions|\/webhook(-test)?\/|\/__sc\//;

  function isSearch(f) {
    try {
      return f.matches('[role=search],.search-form,.elementor-search-form,.woocommerce-product-search') ||
        !!f.querySelector('input[name=s],input[name=q],input[type=search]');
    } catch (e) { return false; }
  }
  function isLead(f) {
    if (isSearch(f)) return false;
    /* not lead forms (shop/filter), and third-party embeds that serialise every input themselves (HubSpot) */
    try {
      if (f.matches('.variations_form,.woocommerce-ordering,form.cart,.rs-form,.hs-form,.hsfc-Form,form[id^="hsForm_"],' +
          '[action*="hsforms.com"],[action*="hsforms.net"],.hbspt-form form,.hsfc-FormWrapper form,[data-so-nohp]')) return false;
    } catch (e) {}
    return !!f.querySelector('input[type=email],input[name*=email],input[type=tel],textarea');
  }
  function addTrap(f) {
    if (f.__soHp || !isLead(f) || f.querySelector(TRAP)) return;
    f.__soHp = 1;
    var w = document.createElement('div');
    w.setAttribute('aria-hidden', 'true');
    w.style.cssText = 'position:absolute!important;left:-10000px!important;top:auto!important;width:1px!important;height:1px!important;overflow:hidden!important;';
    var l = document.createElement('label');
    l.textContent = 'Leave this field empty';
    var i = document.createElement('input');
    i.type = 'text'; i.name = '_company'; i.className = 'so-hp-in'; i.tabIndex = -1;
    i.setAttribute('autocomplete', 'off'); i.setAttribute('data-lpignore', 'true'); i.setAttribute('data-1p-ignore', '');
    l.appendChild(i); w.appendChild(l);
    f.insertBefore(w, f.firstChild);
  }
  function scan() { try { [].forEach.call(document.querySelectorAll('form'), addTrap); } catch (e) {} }
  function trapValue() {
    try {
      var t = document.querySelectorAll(TRAP);
      for (var k = 0; k < t.length; k++) if (t[k].value && t[k].type !== 'hidden' && !autofilled(t[k])) return String(t[k].value).slice(0, 200);
    } catch (e) {}
    return '';
  }
  function autofilled(el) {
    try { if (el.matches(':autofill')) return true; } catch (e) {}
    try { if (el.matches(':-webkit-autofill')) return true; } catch (e) {}
    return false;
  }

  var orig = window.fetch;
  if (orig) {
    window.fetch = function (u, o) {
      try {
        var url = typeof u === 'string' ? u : (u && u.url) || '';
        var post = o && String(o.method || 'GET').toUpperCase() === 'POST';
        if (post && (SO_SUBMIT.test(url) || OTHER_LEAD.test(url)) && trapValue()) {
          window.__soHpBlocked = (window.__soHpBlocked || 0) + 1;
          return Promise.resolve(new Response('{"ok":true,"id":"formsub:0","inlineMessage":"Thanks!"}',
            { status: SO_SUBMIT.test(url) ? 201 : 200, headers: { 'Content-Type': 'application/json' } }));
        }
      } catch (e) {}
      return orig.apply(this, arguments);
    };
  }

  if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', scan); else scan();
  window.addEventListener('load', scan);
  setTimeout(scan, 2500);
  try {
    var pending = 0;
    var mo = new MutationObserver(function () { if (!pending) pending = setTimeout(function () { pending = 0; scan(); }, 150); });
    var start = function () { mo.observe(document.body, { childList: true, subtree: true }); setTimeout(function () { mo.disconnect(); }, 10000); };
    if (document.body) start(); else document.addEventListener('DOMContentLoaded', start);
  } catch (e) {}
})();
</script></head>*/
