/* Tools: a catalog of tiles on tools.html, one page per tool in tools/ (captain 2026-11-03). Cards and tiles take
   their shape from shape.css. No borders on containers; the tile fills with the All features steel under the
   pointer. The tiles carry no icons until there is a design language for them (captain 2026-11-07). Digits stay
   proportional, never monospaced. The hero is About's (captain 2026-11-08: "why don't we make this for all of them"): the
   same title size and copy, no eyebrow, so the four company heroes match. */
.company-tools .co-hero{min-height:calc(var(--cell) * 5.5)}
.company-tools .co-topo:not(.co-topo-lit){-webkit-mask-image:radial-gradient(closest-side at 64% 46%,#000 55%,rgb(0 0 0 / .45) 78%,transparent 100%)!important;mask-image:radial-gradient(closest-side at 64% 46%,#000 55%,rgb(0 0 0 / .45) 78%,transparent 100%)!important}
.company-tools .co-topo-lit{-webkit-mask-image:radial-gradient(15rem circle at var(--mx,-999px) var(--my,-999px),#000,rgb(0 0 0 / .35) 45%,transparent 72%);mask-image:radial-gradient(15rem circle at var(--mx,-999px) var(--my,-999px),#000,rgb(0 0 0 / .35) 45%,transparent 72%)}

/* the catalog */
.tk-sec{width:min(100%,76rem);margin:0 auto;padding:0 var(--tk-gut,2rem)}
.tk-grid{--sans:'DM Sans',sans-serif;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin-top:2rem}
.tk-tile{--cut:2rem;display:flex;flex-direction:column;justify-content:flex-end;min-height:11rem;padding:1.75rem;background:var(--surface);color:var(--ink);text-decoration:none;transition:background-color .35s ease}
.tk-grid>.tk-tile:nth-child(even){--tl:0;--br:1}
/* type from the design system (captain 2026-11-10: "making sure that, everything is built from the design system"):
   tile name = Title 22/28 semibold, its line = Body 15/20, the research card's label = Caption 13/18 in quiet gray (no
   eyebrow), its title = the 34/40 semibold step, its line = Body; no letter spacing on DM Sans */
.tk-tile b{display:block;font:600 1.375rem/1.75rem var(--sans);color:var(--ink)}
.tk-tile small{display:block;margin-top:.5rem;font:400 .9375rem/1.25rem var(--sans);color:var(--body);transition:color .35s ease}
/* the hover is white, like the site's main button, not steel blue (captain 2026-11-10: "I don't really like this blue
   hover. I think a white hover could look better for the tools ... that whole page") */
@media(hover:hover){
  .tk-tile:hover{background:#F3F6F8}
  .tk-tile:hover b{color:#0e1114}
  .tk-tile:hover small{color:rgb(14 17 20 / .72)}
}
.tk-tile:focus-visible{outline:2px solid #F3F6F8;outline-offset:3px}

/* the article, as a picture */
.tk-art{--cut:2.75rem;position:relative;display:block;margin-top:1rem;aspect-ratio:2.8;min-height:18rem;overflow:hidden;color:var(--ink);text-decoration:none;background:var(--surface)}
.tk-art img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:grayscale(1);transition:transform .9s cubic-bezier(.2,.8,.2,1),filter .9s cubic-bezier(.2,.8,.2,1)}
/* the research card is gray until you reach for it, then its colour eases in (captain 2026-11-10: "make it gray and as
   you hover over color infuses into the image"); a phone has no hover, so there it eases in once the card is in view */
.tk-art:is(:hover,:focus-visible,.is-seen) img{filter:grayscale(0)}
.tk-art::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgb(14 17 20 / .86),rgb(14 17 20 / .25) 60%,transparent)}
.tk-art span{position:absolute;z-index:1;left:clamp(1.5rem,4vw,3rem);bottom:clamp(1.5rem,4vw,3rem);max-width:30rem}
.tk-art em{display:block;margin-bottom:.5rem;font:400 .8125rem/1.125rem var(--sans);font-style:normal;color:var(--muted)}
.tk-art b{display:block;font:600 clamp(1.375rem,3vw,2.125rem)/1.18 var(--sans);color:var(--ink)}
.tk-art small{display:block;margin-top:.5rem;font:400 .9375rem/1.25rem var(--sans);color:var(--body)}
@media(hover:hover){.tk-art:hover img{transform:scale(1.025)}}
.tk-art:focus-visible{outline:2px solid #F3F6F8;outline-offset:3px}

/* a tool */
.tk-page{width:min(100%,76rem);margin:0 auto;padding:clamp(5.5rem,7vw,6.5rem) var(--tk-gut,2rem) 0}
.tk-back{display:inline-flex;align-items:center;min-height:2.75rem;padding:0 1.125rem;margin-bottom:1.5rem;background:rgb(255 255 255 / .06);font:500 .9375rem/1.25rem var(--sans);color:var(--body);text-decoration:none;transition:color .2s}
.tk-back:hover{color:var(--ink)}
/* type on a tool page from the design system (captain 2026-11-10: "making sure ... everything is built from the design
   system"; specs.md Type, web.md Type): the page's one H1 in Orbitron at the site's heading weight, as the Tools hero;
   labels in Caption 13/18 gray; the answer a Stat (Orbitron regular 48/52, no tracking) with its unit on the baseline 4
   away; rows Row title 16/21; buttons Secondary 15/20; section titles Title 22/28 semibold; prose Reading 17/30; no
   letter spacing on DM Sans, no blue */
.tk-page h1{font:400 clamp(2.25rem,4.4vw,3.5rem)/1.1 'Orbitron',sans-serif;letter-spacing:-.035em;color:var(--ink)}
.tk-lede{margin-top:.875rem;max-width:36rem;font:400 clamp(1.0625rem,1.5vw,1.25rem)/1.45 var(--sans);color:var(--body)}
.tk-work{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:1rem;align-items:start;margin-top:2.5rem}
.tk-card{background:var(--surface)}
.tk-form{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem 1rem;align-content:start;padding:1.75rem;margin:0;position:sticky;top:5.5rem}
.tk-out{padding:1.75rem;min-height:20rem}
.tk-f{display:grid;gap:.5rem;align-content:start;min-width:0;margin:0;padding:0;border:0}
.tk-f.wide{grid-column:1 / -1}
.tk-l{padding:0;font:400 .8125rem/1.125rem var(--sans);color:var(--body)}
.tk-l span{color:var(--muted)}
.tk-f input[type=number],.tk-f select{width:100%;height:3.25rem;padding:0 1rem;border:0;background:rgb(255 255 255 / .06);font:500 1.0625rem/1 var(--sans);color:var(--ink);-webkit-appearance:none;appearance:none;-moz-appearance:textfield}
.tk-f input::-webkit-outer-spin-button,.tk-f input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.tk-f select{padding-right:2.5rem;text-overflow:ellipsis;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23868c95' stroke-width='1.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 1rem center;background-size:.75rem}
.tk-f select option{color:#0e1114}
.tk-f :is(input[type=number],select){box-shadow:inset 0 0 0 1.5px rgb(238 243 246 / 0);transition:box-shadow .28s cubic-bezier(.2,.9,.25,1)}
.tk-f :is(input[type=number],select):focus-visible{outline:0;box-shadow:inset 0 0 0 1.5px var(--ink)}
.tk-seg{position:relative;display:flex;height:3.25rem;padding:.25rem;background:rgb(255 255 255 / .06)}
.tk-seg input,.tk-chips input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.tk-seg label{position:relative;z-index:1;flex:1;display:grid;place-items:center;min-width:0;padding:0 .5rem;cursor:pointer;font:500 .9375rem/1 var(--sans);color:var(--body);white-space:nowrap;-webkit-tap-highlight-color:transparent}
.tk-knob{position:absolute;top:.25rem;left:.25rem;bottom:.25rem;width:calc(50% - .25rem);background:#eef3f6}
.tk-seg.has-knob .tk-knob{top:0;left:0;bottom:auto;z-index:2;overflow:hidden;transition:none;will-change:transform,width;background:linear-gradient(180deg,#f7fafc,#e0e8ee);box-shadow:inset 0 1px 0 #fff}
.tk-seg .knob-ink{position:absolute;left:0;top:0;will-change:transform}
.tk-seg .knob-ink span{position:absolute;display:grid;place-items:center;white-space:nowrap;font:500 .9375rem/1 var(--sans);color:#0b0d10}
.tk-seg input:focus-visible~.tk-knob{outline:1.5px solid var(--ink);outline-offset:2px}
.tk-f>legend{margin-bottom:.5rem}
.tk-chips{display:flex;flex-wrap:wrap;gap:.5rem}
.tk-chips label{display:grid;place-items:center;min-width:3.25rem;height:2.75rem;padding:0 .875rem;cursor:pointer;background:rgb(255 255 255 / .06);font:500 .9375rem/1 var(--sans);color:var(--body);transition:background-color .2s,color .2s}
.tk-chips input:checked+label{background:#eef3f6;color:#0b0d10}
.tk-chips input:focus-visible+label{outline:1.5px solid var(--ink);outline-offset:2px}

/* the answer */
.tk-k{display:block;font:400 .8125rem/1.125rem var(--sans);color:var(--body)}
.tk-big{display:flex;align-items:baseline;flex-wrap:wrap;gap:.25rem;margin:.5rem 0 1.5rem;font:400 3rem/3.25rem 'Orbitron',sans-serif;color:var(--ink)}
.tk-big small{font:400 .9375rem/1.25rem var(--sans);color:var(--body)}
.tk-big.is-list{font:500 2.125rem/2.5rem 'Orbitron',sans-serif}
.tk-sub{margin:-.75rem 0 1.25rem;font:400 .9375rem/1.25rem var(--sans);color:var(--body)}
.tk-live{display:none;gap:.375rem}
.tk-live[hidden]{display:none!important}
.tk-live b{font:600 1.0625rem/1.375rem var(--sans);color:var(--ink)}
.tk-setup{grid-column:1 / -1;min-width:0}
.tk-setup>summary{display:none;align-items:center;justify-content:space-between;gap:1rem;min-height:3.25rem;padding:0 1rem 0 1.125rem;cursor:pointer;list-style:none;background:rgb(255 255 255 / .06);font:500 .9375rem/1.2 var(--sans);color:var(--ink);-webkit-tap-highlight-color:transparent}
.tk-setup>summary::-webkit-details-marker{display:none}
.tk-setup>summary::after{content:"";flex:none;width:.4375rem;height:.4375rem;margin:-.1875rem .125rem 0 0;border-right:1.5px solid var(--muted);border-bottom:1.5px solid var(--muted);transform:rotate(45deg);transition:transform .2s}
.tk-setup[open]>summary::after{margin-top:.1875rem;transform:rotate(225deg)}
.tk-setup>summary:focus-visible{outline:1.5px solid var(--ink);outline-offset:2px}
.tk-setup-in{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem 1rem}
.tk-quick{display:flex;flex-wrap:wrap;gap:.5rem}
.tk-quick .tk-act{padding:0 .875rem}
.tk-bar{display:block;width:100%;height:auto;margin:-.25rem 0 1.25rem}
.tk-split{display:flex;gap:3px;height:.75rem;margin-bottom:1.25rem;overflow:hidden;border-radius:999px}
.tk-split i{display:block;min-width:0}
.tk-split i:nth-child(1){background:var(--ink)}
.tk-split i:nth-child(2){background:rgb(255 255 255 / .55)}
.tk-split i:nth-child(3){background:rgb(255 255 255 / .28)}
.tk-row{display:flex;justify-content:space-between;align-items:center;gap:1rem;min-height:3rem;padding:.625rem 0;font:400 1rem/1.3125rem var(--sans);color:var(--body);text-decoration:none}
.tk-row+.tk-row{box-shadow:0 -1px 0 rgb(255 255 255 / .06)}
.tk-row b{font-weight:500;color:var(--ink);white-space:nowrap}
a.tk-row.is-link::after{content:"";flex:none;width:.4375rem;height:.4375rem;margin-left:-.25rem;border-top:1.5px solid var(--muted);border-right:1.5px solid var(--muted);transform:rotate(45deg)}
@media(hover:hover){a.tk-row.is-link:hover b,a.tk-row.is-link:hover span{color:#fff}}
.tk-note{margin:1rem 0 0;font:400 .9375rem/1.5 var(--sans);color:var(--body)}
.tk-hint{margin:0;font:400 .9375rem/1.25rem var(--sans);color:var(--body)}
.tk-acts{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:1.5rem}
.tk-act{display:inline-flex;align-items:center;min-height:2.75rem;padding:0 1.125rem;border:0;cursor:pointer;background:rgb(255 255 255 / .07);font:500 .9375rem/1.25rem var(--sans);color:var(--ink);text-decoration:none;transition:background-color .2s}
.tk-act.main{background:#eef3f6;color:#0e1114}
@media(hover:hover){.tk-act:not(.main):hover{background:rgb(255 255 255 / .12)}.tk-act.main:hover{background:#fff}}

/* its working */
.tk-how{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:1rem 3rem;margin-top:clamp(3rem,6vw,5rem)}
.tk-how h2{font:600 1.375rem/1.75rem var(--sans);color:var(--ink)}
.tk-how p{margin:0 0 1rem;font:400 1.0625rem/1.875rem var(--sans);color:var(--body)}
.tk-how p b{font-weight:500;color:var(--ink)}
.tk-how h3{margin:1.75rem 0 .5rem;font:600 1.0625rem/1.375rem var(--sans);color:var(--ink)}
.tk-src{margin:0;padding:0;list-style:none;display:grid;gap:.75rem}
.tk-src li{font:400 .9375rem/1.375rem var(--sans);color:var(--body)}
.tk-src a{color:var(--ink);text-decoration:underline;text-decoration-color:rgb(255 255 255 / .35);text-decoration-thickness:1px;text-underline-offset:.2em;transition:text-decoration-color .2s ease}
@media(hover:hover){.tk-src a:hover{text-decoration-color:var(--ink)}}

/* the guide under a tool (round 10, captain 2026-11-10): contents on the left, the explanation with your own numbers
   on the right (assets/tools-guide.js); figures are the tool's own cards, rows flat inside them */
.tk-guide{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,7fr);gap:1rem 3rem;margin-top:clamp(3.5rem,7vw,6rem)}
.tk-toc{position:sticky;top:6.5rem;align-self:start}
.tk-toc h2{font:600 clamp(1.75rem,2.4vw,2.125rem)/1.18 var(--sans);color:var(--ink)}
.tk-toc ol{display:grid;gap:.125rem;margin:1.25rem 0 0;padding:0;list-style:none}
.tk-toc a{display:block;padding:.375rem 0;font:400 .9375rem/1.25rem var(--sans);color:var(--muted);text-decoration:none;transition:color .25s ease}
.tk-toc a[aria-current]{color:var(--ink)}
@media(hover:hover){.tk-toc a:hover{color:var(--ink)}}
.tk-g-sec{scroll-margin-top:6rem;padding-bottom:clamp(2.5rem,5vw,3.5rem)}
.tk-g-sec h3{margin:0 0 .75rem;font:600 1.375rem/1.75rem var(--sans);color:var(--ink)}
.tk-g-sec p{margin:0 0 1rem;max-width:40rem;font:400 1.0625rem/1.875rem var(--sans);color:var(--body)}
.tk-g-sec p b{font-weight:600;color:var(--ink)}
.tk-g-sec sup{font-size:.6875rem;line-height:0;margin-left:.0625rem}
.tk-g-sec sup a{color:var(--muted);text-decoration:none}
@media(hover:hover){.tk-g-sec sup a:hover{color:var(--ink)}}
.tk-g-fig{margin:1.5rem 0;padding:1.5rem}
.tk-g-bar{display:flex;gap:3px;height:.875rem;overflow:hidden;border-radius:999px}
.tk-g-bar i{display:block;min-width:0;transition:flex-grow .5s cubic-bezier(.22,1,.36,1)}
.tk-g-bar i:nth-child(1){background:var(--ink)}
.tk-g-bar i:nth-child(2){background:rgb(255 255 255 / .28)}
.tk-g-bar.is-3 i:nth-child(2){background:rgb(255 255 255 / .55)}
.tk-g-bar.is-3 i:nth-child(3){background:rgb(255 255 255 / .28)}
.tk-g-bar.is-3+.tk-g-legend span:nth-child(2) b{color:var(--ink)}
.tk-g-legend{display:flex;flex-wrap:wrap;gap:.5rem 1.5rem;margin-top:1rem;font:400 .9375rem/1.25rem var(--sans);color:var(--body)}
.tk-g-legend b{font-weight:600;color:var(--ink)}
.tk-g-legend span:nth-child(2) b{color:rgb(255 255 255 / .62)}
.tk-g-sum{margin-left:auto}
.tk-g-sec .tk-g-eq{margin:0;max-width:none;font:400 clamp(1.0625rem,1.6vw,1.375rem)/1.75rem var(--sans);color:var(--body)}
.tk-g-sec [data-g-multi] .tk-g-eq+.tk-g-eq{margin-top:.75rem}
.tk-g-eq b{font-weight:600;color:var(--ink)}
.tk-g-note{margin-top:.75rem;font:400 .8125rem/1.125rem var(--sans);color:var(--muted)}
.tk-g-levels{display:grid;padding-top:.5rem;padding-bottom:.5rem}
.tk-g-lv{display:grid;grid-template-columns:.625rem minmax(0,1fr) auto 6rem;gap:.875rem;width:100%;border:0;background:none;cursor:pointer;text-align:left;font:400 1rem/1.3125rem var(--sans);color:var(--body)}
.tk-g-lv::before{content:"";width:.625rem;height:.625rem;border-radius:50%;box-shadow:inset 0 0 0 1.5px rgb(255 255 255 / .28);transition:background-color .25s ease,box-shadow .25s ease}
.tk-g-lv em{font-style:normal;color:var(--muted)}
.tk-g-lv b{text-align:right;color:var(--body);font-weight:500;transition:color .25s ease}
.tk-g-lv[aria-pressed="true"]{color:var(--ink)}
.tk-g-lv[aria-pressed="true"]::before{background:var(--ink);box-shadow:inset 0 0 0 1.5px var(--ink)}
.tk-g-lv[aria-pressed="true"] b{color:var(--ink)}
@media(hover:hover){.tk-g-lv:hover{color:var(--ink)}.tk-g-lv:hover b{color:var(--ink)}}
.tk-g-lv:focus-visible{outline:2px solid var(--ink);outline-offset:-2px;border-radius:12px}
.tk-src.is-num{list-style:decimal;padding-left:1.25rem}
.tk-src.is-num li{padding-left:.25rem;scroll-margin-top:6rem}
.tk-src.is-num li::marker{color:var(--muted)}
.tk-more{margin-top:clamp(3rem,6vw,5rem)}
.tk-more h2{font:600 1.375rem/1.75rem var(--sans);color:var(--ink)}
.tk-more-list{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:1rem}

@media(max-width:1000px){.tk-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tk-grid>.tk-tile:nth-child(even){--tl:1;--br:0}.tk-grid>.tk-tile:nth-child(4n+2),.tk-grid>.tk-tile:nth-child(4n+3){--tl:0;--br:1}}
@media(max-width:820px){
  :root{--tk-gut:1.25rem}
  .tk-work,.tk-how,.tk-guide{grid-template-columns:1fr}
  .tk-toc{position:static}
  .tk-toc ol{display:none}
  .tk-g-fig{padding:1.25rem}
  .tk-g-lv{grid-template-columns:.625rem minmax(0,1fr) 5.5rem;gap:.75rem}.tk-g-lv em{display:none}
  .tk-g-sum{margin-left:0}
  .tk-form{position:static}
  .tk-form:has(input[type=number]:focus) .tk-live{display:grid}
  .tk-quick{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:.375rem}
  .tk-quick .tk-act{justify-content:center;padding:0}
  .tk-setup>summary{display:flex}
  .tk-setup[open]>summary{margin-bottom:1.5rem}
  .tk-form,.tk-out{padding:1.25rem}
  .tk-page{padding-top:1.5rem}
  .tk-back{margin-bottom:1rem}
  .tk-work{margin-top:1.5rem}
  .tk-out{min-height:0}
  .tk-art{aspect-ratio:auto;min-height:24rem}
  .tk-art::after{background:linear-gradient(0deg,rgb(14 17 20 / .92),rgb(14 17 20 / .3) 70%,transparent)}
}
@media(max-width:600px){
  .tk-grid{grid-template-columns:1fr;gap:.625rem}
  .tk-tile,.tk-grid>.tk-tile:nth-child(n){--cut:1.25rem;min-height:0;padding:1.25rem 1.375rem}
  .tk-grid>.tk-tile:nth-child(odd){--tl:1;--br:0}
  .tk-grid>.tk-tile:nth-child(even){--tl:0;--br:1}
  .tk-tile small{margin-top:.25rem}
}
@media(prefers-reduced-motion:reduce){.tk-art img,.tk-tile,.tk-tile small{transition:none}.tk-art img{filter:none}}
