/* Builds page cards. Loads last on builds.html (after kronos.css).
   Nov 1 (Grok): uniform build cards, one 16:10 screenshot each, button row pinned to the bottom, details closed at every width.
   Nov 2 (Claude, Ashton: "sloppy, I don't like the order"): cards sit in four groups whose order lives in data/builds-order.mjs
   (rendered into builds.html by scripts/builds-order.mjs). Each card now has one meta line under the title instead of tags
   mixed into the button row, so every card reads: image, title and status, meta, one-liner, More details, actions.
   Spec: section type scale 30/24 px group titles (serif), 19 px card titles, 15 px body, 13 px meta. Palette: site tokens only
   (--ink, --ink-muted, --fairway #0b7a75, --fairway-soft, --line). Motion: transform and opacity only, 200 ms, var(--lg-ease);
   none under prefers-reduced-motion. No content-visibility (the group jump links need stable anchor positions). */

/* Group jump links and group heads */
.build-jump{display:flex;flex-wrap:wrap;gap:8px;margin:32px 0 8px}
.build-jump a{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:10px 16px;border-radius:999px;border:1px solid var(--line);background:var(--fairway-soft);color:var(--chip-ink);font-weight:500;font-size:14px;text-decoration:none}
.build-jump a:hover{border-color:var(--accent-line,var(--fairway))}
.build-jump a:focus-visible{outline:2px solid var(--fairway);outline-offset:3px}
.build-jump .n{font-variant-numeric:tabular-nums;opacity:.75}
.build-group{margin-top:56px;scroll-margin-top:16px}
.build-group:first-of-type{margin-top:32px}
.group-head{display:grid;gap:6px;margin:0 0 20px;max-width:41.106em}
.group-head h2{font-family:var(--v8-serif,Georgia,serif);font-weight:400;font-size:30px;line-height:1.15;letter-spacing:-.02em;margin:0}
.group-head p{color:var(--ink-muted);font-size:15px;line-height:1.5;margin:0}

/* Uniform cards. v8.css styles the first card of a grid as a cyan hero; with four groups that would hit every group,
   so the first card of each grid is reset to a plain card here (as on Nov 1). */
body .builds-grid>.card.build:first-child:not([hidden]){background:var(--surface,#fff);color:inherit;border-color:var(--line,rgba(17,23,27,.12));grid-column:auto}
body .builds-grid>.card.build:first-child:not([hidden]) :is(h3,.oneliner,.who,summary){color:inherit}
body .builds-grid>.card.build:first-child:not([hidden]) .btn-primary,body .builds-grid>.card.build:first-child:not([hidden]) .btn-primary:hover{background:#34e0d6;color:#0a1420;box-shadow:none}
body .builds-grid>.card.build:first-child:not([hidden]) .tag{background:rgba(255,255,255,.72);color:#4f5752}
.builds-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;align-items:stretch}
body .builds-grid>.card.build,body .builds-grid>.card.build:first-child:not([hidden]){display:flex;flex-direction:column;grid-column:auto;grid-template-columns:none;align-self:stretch;min-width:0;overflow:hidden}
body .builds-grid>.card.build .preview,body .builds-grid>.card.build .preview.shot,body .builds-grid>.card.build:first-child:not([hidden]) .preview{height:auto;min-height:0;aspect-ratio:16/10;border-right:0;border-bottom:1px solid var(--line,rgba(17,23,27,.12));flex:none;background:#050a10}
body .builds-grid>.card.build .preview.shot img{width:100%;height:100%;object-fit:cover;object-position:center top}
body .builds-grid>.card.build .build-body,body .builds-grid>.card.build:first-child:not([hidden]) .build-body{display:flex;flex-direction:column;gap:10px;flex:1 1 auto;padding:20px;align-content:start}
body .builds-grid>.card.build .build-top{display:flex;flex-wrap:nowrap;align-items:flex-start;justify-content:space-between;gap:12px}
body .builds-grid>.card.build .build-top h3{flex:1 1 auto;min-width:0;font-family:inherit;font-weight:600;font-size:19px;line-height:1.25;letter-spacing:-.01em;margin:0}
body .builds-grid>.card.build .build-top .tag{flex:none;white-space:nowrap;line-height:1.4}
.build-meta{display:flex;flex-wrap:wrap;margin:-4px 0 0;font-size:13px;line-height:1.5;color:var(--ink-muted)}
.build-meta span+span::before{content:"\00b7";margin:0 8px}
body .builds-grid>.card.build .oneliner{font-size:15px;line-height:1.5;margin:0}
/* No line clamp: one-liners carry limits and disclaimers ("Not investment advice."), so they always show in full. */
body .builds-grid>.card.build .build-body:not(:has(.build-meta)) .build-top{margin-bottom:16px}
body .builds-grid>.card.build .build-body .oneliner{display:block;-webkit-line-clamp:unset;overflow:visible}
body .builds-grid .build .more{display:block;margin-top:auto;border-top:1px solid var(--line)}
body .builds-grid .build .more::details-content{display:block;content-visibility:hidden}
body .builds-grid .build .more[open]::details-content{content-visibility:visible}
body .builds-grid .build .more>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;cursor:pointer;font-weight:600;font-size:14.5px;list-style:none;-webkit-tap-highlight-color:transparent}
body .builds-grid .build .more>summary::-webkit-details-marker{display:none}
body .builds-grid .build .more>summary::after{content:"";width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);transition:transform .2s var(--lg-ease,ease);flex:none;margin-right:4px}
body .builds-grid .build .more[open]>summary::after{transform:rotate(-135deg)}
body .builds-grid .build .more>summary:focus-visible{outline:2px solid var(--fairway);outline-offset:2px;border-radius:6px}
body .builds-grid .build .more>.who{margin:0 0 8px;font-size:14px}
body .builds-grid .build .more .bullets{display:grid;gap:6px;margin:0 0 8px}
body .builds-grid .build .more .bullets li{font-size:14px;line-height:1.45}
body .builds-grid>.card.build .build-foot{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;padding-top:0;min-width:0}
body .builds-grid>.card.build .build-foot .btn{min-height:44px;max-width:100%;white-space:normal;flex:0 1 auto}
body .builds-grid>.card.build .build-foot .ask-about{display:inline-flex;align-items:center;margin-left:0;min-height:44px;padding:10px 20px;border:0;border-radius:999px;background:#34e0d6;color:#0a1420;font-size:15px;font-weight:600}
/* One call to action per card: any second action (Ask about it, a second link) sits at the end of More details. */
body .builds-grid .build .more-links{display:flex;flex-wrap:wrap;align-items:center;gap:4px 16px;margin:0 0 8px}
body .builds-grid .build .more-links>*{margin:0;min-height:44px;display:inline-flex;align-items:center}
body .builds-grid .build .more-links>.btn{background:none;border:0;box-shadow:none;padding:10px 0;color:var(--fairway);font-weight:600;font-size:14px;text-decoration:underline;text-underline-offset:3px}
@media (prefers-reduced-motion:reduce){body .builds-grid .build .more>summary::after{transition:none}}

@media (max-width:1100px){
  .builds-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
}
@media (max-width:640px){
  .builds-grid{grid-template-columns:1fr}
  .group-head h2{font-size:24px}
  .build-group{margin-top:44px}
  body .builds-grid>.card.build .build-body,body .builds-grid>.card.build:first-child:not([hidden]) .build-body{padding:16px;gap:8px}
}
/* Layout A (chosen of three, Nov 2): the flagship card is a wide feature (screenshot left, text right) above uniform three-up groups;
   on tablets the feature and a group's odd last card span both columns, screenshot left and text right, so no row is
   left half empty. */
@media (min-width:1101px){
  body .builds-grid>.card.build.is-feature:first-child:not([hidden]){grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)}
  body .builds-grid>.card.build.is-feature:first-child:not([hidden]) .preview{border-bottom:0;border-right:1px solid var(--line);aspect-ratio:auto;height:100%;min-height:300px}
  body .builds-grid>.card.build.is-feature:first-child:not([hidden]) .build-body{padding:clamp(24px,3vw,40px);justify-content:center}
  body .builds-grid>.card.build.is-feature:first-child:not([hidden]) .build-top h3{font-family:var(--v8-serif,Georgia,serif);font-weight:400;font-size:clamp(28px,2.6vw,36px);letter-spacing:-.02em}
  body .builds-grid>.card.build.is-feature:first-child:not([hidden]) .oneliner{font-size:16px}
  body .builds-grid>.card.build.is-feature:first-child:not([hidden]) .more{margin-top:0}
}
@media (min-width:641px) and (max-width:759.98px){
  body .builds-grid>.card.build.is-feature:first-child:not([hidden]),
  .builds-grid:not(:has(>.is-feature))>.card.build:nth-child(odd):last-child,
  .builds-grid:not(:has(>.is-feature))>.card.build:nth-child(odd):has(+ .build[hidden]:last-child){grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:stretch}
  body .builds-grid>.card.build.is-feature:first-child:not([hidden]) .preview,
  .builds-grid:not(:has(>.is-feature))>.card.build:nth-child(odd):last-child .preview,
  .builds-grid:not(:has(>.is-feature))>.card.build:nth-child(odd):has(+ .build[hidden]:last-child) .preview{border-bottom:0;border-right:1px solid var(--line);aspect-ratio:auto;height:100%;min-height:220px}
  .builds-grid:not(:has(>.is-feature))>.card.build:nth-child(odd):is(:last-child,:has(+ .build[hidden]:last-child)) .preview.shot img{object-position:left top}
}
body .builds-grid>.card.build:first-child:not([hidden]) .btn-primary,body .builds-grid>.card.build:first-child:not([hidden]) .btn-primary:hover{background:#34e0d6;color:#0a1420;box-shadow:none}
body .builds-grid>.card.build:first-child:not([hidden]) .tag{background:rgba(255,255,255,.72);color:#4f5752}
/* PW-181A: the filter hides cards with .is-out; the first-child rule above has higher specificity and kept the first card showing. */
body .builds-grid>.card.build.is-out,body .builds-grid>.card.build.is-out:first-child:not([hidden]){display:none}
/* PW-291 (Layout B of three compared, Nov 5): from 760 to 1100px the cards run three-up, as on desktop, instead of two-up. Two-up measured about
   8,100px at 760 to 1024; three-up with a shorter 16:7 screenshot and tighter card padding measures well under 6,800. Same copy, same type sizes,
   same palette; nothing hidden. The flagship feature still spans the row (screenshot left, text right); a group of three is one row, and the four
   smaller builds stay two-up so no row is left half empty. 641 to 759px and 1101px and up are unchanged. */
@media (min-width:760px) and (max-width:1100px){
  .builds-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
  /* PW-494, PW-500: the flagship one-liner wraps to 4 lines in Geist up to a 360px text column and in the fallback font only up to 351px, so a late
     font swap in between moved every card below it 23px. Reserve the 4th line only while the column is 360px or narrower (container query on the
     text column, so a 15px classic scrollbar cannot shift the band); wider than that both fonts wrap to 3 lines and nothing is reserved. */
  body .builds-grid>.card.build.is-feature:first-child .build-body{container-type:inline-size}
  @container (max-width:360.5px){body .builds-grid>.card.build.is-feature:first-child .oneliner{min-height:calc(4*1.5em)}}
  body .builds-grid>.card.build:not(.is-feature) .preview,body .builds-grid>.card.build:not(.is-feature) .preview.shot{aspect-ratio:16/7}
  body .builds-grid>.card.build .build-body,body .builds-grid>.card.build:first-child:not([hidden]) .build-body{padding:14px;gap:6px}
  body .builds-grid>.card.build .build-top{flex-wrap:wrap;gap:4px 8px}
  body .builds-grid>.card.build.is-feature:first-child:not([hidden]){grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  body .builds-grid>.card.build.is-feature:first-child:not([hidden]) .preview{border-bottom:0;border-right:1px solid var(--line);aspect-ratio:auto;height:100%;min-height:220px}
}
/* PW-291 QA fix: in the three-up band the longest buttons ("Try the operations demo") wrapped to two lines. 14px type, 10px side padding and no wrap
   keep every button one 44px line (870px and up never wrapped). Same words, same 44px tap height. */
@media (min-width:760px) and (max-width:899.98px){
  body .builds-grid>.card.build .build-foot .btn{padding-inline:10px;font-size:14px;white-space:nowrap}
}
/* PW-291: the intro line wraps to two lines in Geist but one in the fallback font at 641px with overlay scrollbars and at 643 to 656px with classic
   15px scrollbars, so the page jumped 28px when the font arrived (CLS 0.019 with Geist delayed 400 ms). Reserving the second line over 641 to 656px
   removes the jump. Height is unchanged where Geist wraps anyway (641, and 643 to 656 with classic scrollbars); with overlay scrollbars 642 to 656px
   gain one blank 28px line, the cost of a stable layout. 657px and up are untouched. */
@media (min-width:641px) and (max-width:656.98px){.page-head .sub{min-height:56px}}
/* PW-296: the showcase intro paragraph wraps to four lines in Geist but three in the fallback font while the intro content box is 633 to 639px wide
   (viewport 763 to 769px, or 778 to 784px with classic 15px scrollbars). When Geist arrived the section grew 25px and the demo frame below it jumped
   (CLS 0.012). A container query on the intro's own content width reserves the fourth line in exactly that window, so it holds at either scrollbar
   width and adds no blank line anywhere Geist already wraps to three. Same text, same type size. */
.showcase-intro{container-type:inline-size}
@container (min-width:632px) and (max-width:639.98px){.showcase-intro>p{min-height:calc(4 * 1.8em)}}

/* Tool library and More work: plain ruled rows, no images (the /tools page merged into /builds).
   Spec: type 17/15/14 px (row title, description, link), titles 650 weight; palette site tokens only (--ink, --ink-muted, --line,
   --fairway-deep as the one green accent). Motion: the arrow moves 3 px on hover/focus, transform only, 160 ms, var(--lg-ease);
   none under prefers-reduced-motion. Rows stack to one column under 720 px; links keep a 44 px touch height. */
.build-list .build-rows{list-style:none;margin:0;padding:0;border-top:1px solid var(--line)}
.build-rows>.build-row{display:grid;grid-template-columns:minmax(0,15.5rem) minmax(0,1fr) auto;column-gap:28px;row-gap:2px;align-items:center;padding:6px 0;border-bottom:1px solid var(--line)}
.build-rows .build-row h3{margin:0;font-size:17px;line-height:1.3;font-weight:650;letter-spacing:-.005em;color:var(--ink)}
.build-rows .build-row p{margin:0;color:var(--ink-muted);font-size:15px;line-height:1.5;max-width:44em}
.build-rows .row-link{display:inline-flex;align-items:center;gap:6px;min-height:44px;font-size:14px;font-weight:600;color:var(--fairway-deep,var(--fairway));text-decoration:none;white-space:nowrap}
.build-rows .row-link:hover{text-decoration:underline;text-underline-offset:3px}
.build-rows .row-link:focus-visible{outline:2px solid var(--fairway);outline-offset:3px;border-radius:4px}
.build-rows .row-link .ar{display:inline-block;transition:transform 160ms var(--lg-ease,cubic-bezier(.2,.8,.2,1))}
.build-rows .row-link:hover .ar,.build-rows .row-link:focus-visible .ar{transform:translate(3px,-3px)}
/* More work is the quieter list: smaller title, name and description stacked, link on the right. */
.build-rows.is-more>.build-row{grid-template-columns:minmax(0,1fr) auto;padding:4px 0}
.build-rows.is-more .build-row h3{grid-column:1;font-size:16px;align-self:end;padding-top:8px}
.build-rows.is-more .build-row p{grid-column:1;font-size:14px;align-self:start;padding-bottom:8px}
.build-rows.is-more .build-row .row-link{grid-column:2;grid-row:1/span 2}
@media (max-width:719.98px){
  .build-rows>.build-row,.build-rows.is-more>.build-row{grid-template-columns:minmax(0,1fr);padding:12px 0 2px}
  .build-rows .build-row h3,.build-rows.is-more .build-row h3,.build-rows.is-more .build-row p,.build-rows.is-more .build-row .row-link{grid-column:1;grid-row:auto;padding:0}
  .build-rows .row-link{justify-self:start}
}
@media (prefers-reduced-motion:reduce){.build-rows .row-link .ar{transition:none}.build-rows .row-link:hover .ar,.build-rows .row-link:focus-visible .ar{transform:none}}
/* The Modeling Tool card image is a wide share card with left-aligned type: crop from the left so the title is not clipped. */
body .builds-grid>.card.build[data-build="ultimate-modeling-tool"] .preview.shot img{object-position:left top}
/* PW-481: in a multi-column row the cards share their title, meta, one-liner, details and button rows (subgrid), so one card's two-line title no
   longer pushes its one-liner lower than its neighbors. Every card has all five parts, so no row is empty. Single column (640px and under) and the
   flagship feature card keep their own layout; the 641 to 759px band is left as is. Spacing inside a card is unchanged: --bg is the old gap. */
@media (min-width:760px){
  .builds-grid{--bg:10px}
  body .builds-grid>.card.build:not(.is-feature):not([hidden]):not(.is-out){display:grid;grid-template-rows:subgrid;grid-row:span 6;row-gap:0}
  body .builds-grid>.card.build:not(.is-feature):not([hidden]):not(.is-out)>.preview{grid-row:1}
  body .builds-grid>.card.build:not(.is-feature):not([hidden]):not(.is-out)>.build-body{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:subgrid;grid-row:2/span 5;row-gap:var(--bg);align-content:normal}
  body .builds-grid>.card.build:not(.is-feature):not([hidden]):not(.is-out) .build-body>.more{margin-top:0}
  body .builds-grid>.card.build:not(.is-feature):not([hidden]):not(.is-out) .build-foot{align-self:end}
}
@media (min-width:760px) and (max-width:1100px){.builds-grid{--bg:6px}}
