/* cartesianecu.com: the catalogue pages (/ecu/, /ecu/<maker>/, /ecu/<maker>/<family>/, /brands/, /brands/<brand>/), written
   by tools/site-pages/gen.mjs. On top of site.css: the page card at the top (the header's notch is cut into it), plain
   columns and lists under it, no badges. The tokens are site.css's (--card-*, --panel, --line, --muted, --accent). */

/* ---- the card at the top ---- */
.cat-hero{padding:calc(var(--head-h) + clamp(40px,6vw,72px)) 0 clamp(36px,5vw,56px)}
.cat-hero-in{display:flex;flex-direction:column;gap:14px}
.cat-hero .kicker{margin:0;color:var(--card-tags)}
.cat-hero h1{margin:0;font-weight:600;letter-spacing:-.025em;font-size:clamp(30px,4.2vw,46px);line-height:1.08;color:var(--card-ink);text-shadow:var(--card-text-shadow);overflow-wrap:anywhere}
.cat-lede{margin:0;max-width:72ch;font-size:17px;line-height:1.6;color:var(--card-ink2)}
.cat-brand-head{display:flex;align-items:center;gap:16px;min-width:0}
.cat-mark{flex:none;display:grid;place-items:center;width:56px;height:56px;color:var(--card-ink)}
.cat-mark svg{width:44px;height:44px;fill:currentColor}

/* the trail (home / control units / maker / unit): plain words, the current one unlinked */
.cat-crumbs ol{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:4px 8px;font-size:14px;color:var(--card-ink3)}
.cat-crumbs li+li::before{content:"/";margin-inline-end:8px;color:var(--card-line2)}
.cat-crumbs a{color:inherit;text-decoration:none}
.cat-crumbs a:hover{color:var(--card-ink);text-decoration:underline}
.cat-crumbs [aria-current]{color:var(--card-ink)}

/* the facts: label over value, in columns */
.cat-facts{display:flex;flex-wrap:wrap;gap:14px 40px;margin:10px 0 0;padding:18px 0 0;border-top:1px solid var(--card-line)}
.cat-fact{display:flex;flex-direction:column;gap:3px;min-width:0}
.cat-fact dt{font-size:13px;color:var(--card-ink3)}
.cat-fact dd{margin:0;font-size:17px;font-weight:600;color:var(--card-ink);overflow-wrap:anywhere}
.cat-fact dd a{color:inherit}
.cat-facts-s{border-top:0;padding-top:0;margin-top:18px}
.cat-facts-s .cat-fact dt{color:var(--muted)}
.cat-facts-s .cat-fact dd{color:var(--text);font-size:15.5px;font-weight:500}

/* ---- the body ---- */
.cat-body{padding:12px 24px 72px}
.cat-sec{padding:34px 0 30px;border-bottom:1px solid var(--line)}
.cat-sec:last-of-type{border-bottom:0}
.cat-sec h2{margin:0 0 14px;font-size:clamp(21px,2.4vw,26px);line-height:1.2;letter-spacing:-.015em;font-weight:600}
.cat-sec h2 a{color:inherit;text-decoration:none}
.cat-sec h2 a:hover{color:var(--accent-text)}
.cat-p{margin:0 0 10px;max-width:78ch;line-height:1.6;color:var(--text)}
.cat-p a,.cat-note a{color:var(--accent-text);text-decoration:underline;text-decoration-color:color-mix(in srgb,var(--accent-text) 45%,transparent);text-underline-offset:3px}
.cat-p a:hover,.cat-note a:hover{text-decoration-color:currentColor}
.cat-note{margin:18px 0 0;font-size:13.5px;line-height:1.55;color:var(--muted);max-width:78ch}
.cat-list{margin:6px 0 12px;padding-inline-start:20px;line-height:1.6}
.cat-list li{margin:2px 0}
.cat-dim{color:var(--muted);font-size:13.5px}

/* links in columns: the families of a maker, the units of a brand, the brands */
.cat-links{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 28px;line-height:1.45}
.cat-links-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.cat-links-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.cat-links li{min-width:0;overflow-wrap:anywhere}
.cat-links a{color:var(--text);font-weight:500;text-decoration:none}
.cat-links a:hover{color:var(--accent-text);text-decoration:underline}

/* the table of hardware and software pairs */
.cat-tablewrap{position:relative;overflow-x:auto;margin:14px 0 0}   /* relative: a visually hidden label inside the table (.sr, absolute) is clipped with the table; without it the label widened the whole page on a phone by the table's width (2026-11-11) */
.cat-table{border-collapse:collapse;min-width:420px;font-size:15px;font-variant-numeric:tabular-nums}
.cat-table caption{text-align:start;padding:0 0 8px;font-size:14px;color:var(--muted)}
.cat-table th,.cat-table td{padding:8px 18px 8px 0;text-align:start;border-bottom:1px solid var(--line);white-space:nowrap}
.cat-table th{font-size:13px;font-weight:500;color:var(--muted)}
.cat-table td:first-child,.cat-table td:nth-child(2){font-family:"IBM Plex Mono",ui-monospace,Menlo,Consolas,monospace;font-size:14px}
.cat-table tbody tr:last-child td{border-bottom:0}

/* the call at the end */
.cat-cta{margin:40px 0 0;padding:28px;background:var(--panel);border:1px solid var(--line);border-radius:var(--radius)}
.cat-cta h2{margin:0 0 8px;font-size:22px;font-weight:600;letter-spacing:-.015em}
.cat-cta .cat-p{margin-bottom:16px}
.cat-cta-row{display:flex;flex-wrap:wrap;gap:10px}

@media (max-width:860px){
  .cat-links-3,.cat-links-4{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:600px){
  .cat-hero{padding:calc(var(--head-h) + 24px) 0 28px}
  .cat-hero-in{gap:12px}
  .cat-lede{font-size:16px}
  .cat-facts{gap:12px 24px}
  .cat-fact dd{font-size:16px}
  .cat-body{padding:4px 18px 56px}
  .cat-sec{padding:26px 0 22px}
  .cat-links,.cat-links-3,.cat-links-4{grid-template-columns:1fr}
  .cat-cta{padding:22px 18px}
}
@media (max-width:480px){.cat-crumbs ol{font-size:13px}}

/* the brand wall of /ecu/ (owner 2026-11-10): every brand with a mark as a tile (its mark from assets/brand-marks.svg,
   its name under it), the ones with most units first, "and others" as the last tile. The tiles reveal with the scroll in
   the site's own motion language (site.css: @keyframes reveal, scroll timelines, the stagger step), lift under the
   pointer and turn their mark to the accent; a visitor who asked for less motion gets them simply there */
.cat-brands{list-style:none;margin:16px 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:10px}
.cat-brands li{min-width:0}
.cat-brand{display:flex;flex-direction:column;align-items:center;gap:10px;height:100%;padding:18px 10px 14px;border:1px solid var(--line);border-radius:14px;background:var(--panel);color:var(--text);text-decoration:none;text-align:center;transition:transform var(--d-base,300ms) var(--ease-out,ease),border-color var(--d-base,300ms) var(--ease-out,ease),background var(--d-base,300ms) var(--ease-out,ease)}
.cat-bmark{display:grid;place-items:center;width:44px;height:44px;color:var(--text);opacity:.82;transition:color var(--d-base,300ms) var(--ease-out,ease),opacity var(--d-base,300ms) var(--ease-out,ease),transform var(--d-base,300ms) var(--ease-out,ease)}
.cat-bmark svg{width:40px;height:40px;fill:currentColor}
.cat-bname{font-size:13px;font-weight:500;line-height:1.3;overflow-wrap:anywhere}
.cat-brand-more .cat-bmark{color:var(--muted)}
.cat-brand-more .cat-bname{color:var(--muted)}
.cat-brand:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
@media (hover:hover){
  .cat-brand:hover{transform:translateY(-3px);border-color:var(--line2);background:var(--panel2,var(--panel))}
  .cat-brand:hover .cat-bmark{color:var(--accent-text);opacity:1;transform:scale(1.08)}
  .cat-brand-more:hover .cat-bname{color:var(--text)}
}
@supports (animation-timeline:view()){
  @media (prefers-reduced-motion:no-preference){
    .cat-brands > li{animation:reveal linear both;animation-timeline:view();animation-range:entry calc(var(--i,0) * 5%) entry calc(38% + var(--i,0) * 5%)}
    .cat-brands > li:nth-child(8n+2){--i:1}.cat-brands > li:nth-child(8n+3){--i:2}.cat-brands > li:nth-child(8n+4){--i:3}.cat-brands > li:nth-child(8n+5){--i:4}
    .cat-brands > li:nth-child(8n+6){--i:5}.cat-brands > li:nth-child(8n+7){--i:6}.cat-brands > li:nth-child(8n+8){--i:7}
  }
}
@media (max-width:600px){.cat-brands{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.cat-brand{padding:14px 6px 12px}.cat-bmark{width:38px;height:38px}.cat-bmark svg{width:34px;height:34px}}
