/* GoLab desktop design, scaled down for windows between 641px and 1263px wide (Nov 2026).
   Linked from every new-design page with media="(min-width:641px) and (max-width:1263px)" (build.js), so full
   desktop (1264px and wider) and phones (640px and narrower, mobile.css) are unchanged.

   This is the layout for half-screen windows, zoomed-in browsers, small laptops and tablets. The width a page gets
   already includes the browser's zoom (a 1440px window at 150% is a 960px page), so it follows window size and zoom
   on its own. The idea is the same as on phones: the desktop design, smaller, with the same arrangement.
   - Rows keep the desktop's number of items per row (src/fit.js gives each row grid --fx, its scaled minimum width).
   - The hero keeps the headline beside Tricia, Tricia's sections keep her beside the text (src/fit.js moves their
     stacking switch to 640px).
   - Type that was fixed for desktop gets a little smaller as the window narrows. */

/* ======================= Rows of cards ======================= */
[data-fx]{grid-template-columns:repeat(auto-fit,minmax(min(100%,var(--fx)),1fr))!important}
/* Narrow windows (800px and less): rows of four (or eight) cards become two by two, as they would be too narrow to
   read four across. Tiny items (data-m="r4", stat tiles) stay four across. */
@media (max-width:800px){
[data-fx]:has(>:nth-child(4):last-child):not([data-m="r4"]),
[data-fx]:has(>:nth-child(8):last-child):not([data-m="r4"]){grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
/* Side-by-side blocks laid out with flex-wrap (src/fit.js scales their widths the same way) */
[data-fb]{flex-basis:var(--fb)!important}
[data-fm]{min-width:min(100%,var(--fm))!important}

/* ======================= Type ======================= */
/* Headings in the display font with a fixed desktop size scale with the page, like the rest of the design, so a
   package name always fits its card (90% of the desktop size at the same share of the page, never below 11px). Other fixed sizes of 20px and up (card titles, big numbers) shrink more gently:
   N x (0.6 + 0.4 x page width / 1200px). Sizes written with clamp() already scale and are left alone. */
main .dsp[style*="font-size:17px"]{font-size:clamp(11px, calc((100vw - 2 * min(32px, 4vw)) * 0.01275), 17px)!important}
main .dsp[style*="font-size:22px"]{font-size:clamp(11px, calc((100vw - 2 * min(32px, 4vw)) * 0.01650), 22px)!important}
main .dsp[style*="font-size:24px"]{font-size:clamp(11px, calc((100vw - 2 * min(32px, 4vw)) * 0.01800), 24px)!important}
main .dsp[style*="font-size:28px"]{font-size:clamp(11px, calc((100vw - 2 * min(32px, 4vw)) * 0.02100), 28px)!important}
main [style*="font-size:20px"]:not(.dsp){font-size:min(20px, calc(12.0px + (100vw - 2 * min(32px, 4vw)) * 0.00667))!important}
main [style*="font-size:21px"]:not(.dsp){font-size:min(21px, calc(12.6px + (100vw - 2 * min(32px, 4vw)) * 0.00700))!important}
main [style*="font-size:22px"]:not(.dsp){font-size:min(22px, calc(13.2px + (100vw - 2 * min(32px, 4vw)) * 0.00733))!important}
main [style*="font-size:24px"]:not(.dsp){font-size:min(24px, calc(14.4px + (100vw - 2 * min(32px, 4vw)) * 0.00800))!important}
main [style*="font-size:26px"]:not(.dsp){font-size:min(26px, calc(15.6px + (100vw - 2 * min(32px, 4vw)) * 0.00867))!important}
main [style*="font-size:28px"]:not(.dsp){font-size:min(28px, calc(16.8px + (100vw - 2 * min(32px, 4vw)) * 0.00933))!important}
main [style*="font-size:30px"]:not(.dsp){font-size:min(30px, calc(18.0px + (100vw - 2 * min(32px, 4vw)) * 0.01000))!important}
main [style*="font-size:36px"]:not(.dsp){font-size:min(36px, calc(21.6px + (100vw - 2 * min(32px, 4vw)) * 0.01200))!important}
main [style*="font-size:44px"]:not(.dsp){font-size:min(44px, calc(26.4px + (100vw - 2 * min(32px, 4vw)) * 0.01467))!important}

/* ======================= Cards ======================= */
/* Card padding scales with the page (28-32px at desktop), so narrow cards keep room for their text */
main .card{padding:clamp(16px,2.6vw,28px)}
main .card[style*="padding:32px"],main .card[style*="padding:28px"]{padding:clamp(18px,2.8vw,32px)!important}
/* Platform names on product cards wrap inside the card instead of pushing past it */
.pst{white-space:normal;max-width:100%;min-width:0}

/* ======================= Tables ======================= */
/* Comparison and product tables fit the window instead of scrolling sideways: no fixed minimum width, and cell
   padding that scales with the page */
main table[style*="min-width:"]{min-width:0!important}
main table :is(th,td){padding-left:clamp(10px,1.7vw,20px)!important;padding-right:clamp(10px,1.7vw,20px)!important}

/* ======================= Footer ======================= */
/* Five columns are too narrow for the email address below 1100px: the brand column takes the first row, the four
   link columns share the second. */
@media (max-width:1099px){
footer [data-fx]{grid-template-columns:repeat(4,minmax(0,1fr))!important}
footer [data-fx]>:first-child{grid-column:1/-1}
}

/* ======================= Home and free-trial hero ======================= */
/* Tricia stays whole: never wider than her column plus the page margin, so she is not cut at the window edge */
.th-stage .th-fig{max-width:calc(100% + min(32px,4vw));object-fit:contain;object-position:50% 100%}
/* The three hero stats (50+ / Worldwide / Expert team) stay on one line */
.th-copy>ul:has(b){flex-wrap:nowrap!important;gap:12px}
.th-copy>ul:has(b) li{min-width:0;flex:0 1 auto}
main .th-copy>ul b[style]{font-size:clamp(15px,2.4vw,30px)!important;white-space:nowrap}
.th-copy>ul:has(b) span,.th-copy>ul:has(b) small,.th-copy>ul:has(b) p{font-size:clamp(11px,1.3vw,14px)!important}
@media (max-width:900px){
.th-grid{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr)!important;gap:20px!important}
.th-copy h1{font-size:clamp(32px,5.6vw,88px)!important}
.th-copy .lead{font-size:clamp(14px,1.9vw,18px)!important}
.th-copy .b1,.th-copy .b2{padding-left:clamp(12px,1.9vw,24px)!important;padding-right:clamp(12px,1.9vw,24px)!important;font-size:clamp(13px,1.55vw,15px)!important}
}
