/* statix-codes.css (19 Nov 2026): design-code badges, the code filter chips and the "Design codes" section.
   One source of truth: calculators/calc-codes.json, written into the pages by tools/site-codes.py.
   A badge is a code FAMILY a calculator can run (SANS, Eurocode, BS, US). A dashed badge = partial on that route
   (some checks only, or a fixed route with no choice); the title says which. A tick = checked against a published case. */
.cbs{display:flex;flex-wrap:wrap;gap:5px;margin:0 0 7px;padding:0;list-style:none}
.cb{display:inline-flex;align-items:center;gap:4px;height:21px;padding:0 7px;border-radius:4px;font:600 11.5px/1 var(--stx-font,'Segoe UI',Tahoma,Arial,sans-serif);
  letter-spacing:.01em;border:1px solid;white-space:nowrap}
.cb.sans{color:#0B5C55;background:#E3F1EF;border-color:#9FCFC8}
.cb.ec{color:#1F4E8C;background:#E8EFF9;border-color:#A9C1E4}
.cb.bs{color:#5A3E85;background:#F1EEF8;border-color:#C7B9E0}
.cb.us{color:#7A4A00;background:#FBF1E4;border-color:#E3C48F}
.cb.gen{color:#4F565D;background:#F3F4F5;border-color:#C4C9CE}
.cb.part{border-style:dashed;background:transparent}
.cb .v{font-size:10.5px}
.cb .v::before{content:"\2713"}
/* on the dark calculator / page hero */
.cbs.dk .cb{background:rgba(255,255,255,.08);color:#fff;border-color:rgba(255,255,255,.35)}
.cbs.dk .cb.part{border-style:dashed;background:transparent}
/* calculator page: the line under the title */
.ch-codes{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:8px 0 2px}
.ch-codes .cbs{margin:0}
.ch-codes .cl{font-size:12.5px;color:var(--stx-dim,#4F565D)}
.ch-codes .cl a{color:inherit}
/* hub: the code filter row */
.v2-cchips{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 0}
.v2-cchips .lb{font-size:12.5px;color:var(--stx-dim,#4F565D);align-self:center;margin-right:2px}
.v2-cchips button{height:30px;padding:0 11px;border-radius:15px;border:1px solid #C4C9CE;background:#fff;color:#1B1D1F;font:500 13px/1 inherit;cursor:pointer}
.v2-cchips button[aria-pressed="true"]{background:#126F66;border-color:#126F66;color:#fff}
.v2-cchips button .n{margin-left:6px;font-size:11.5px;opacity:.75}
.v2-cchips button:focus-visible{outline:2px solid #0B5C55;outline-offset:2px}
a.cc.c-off,body.ax-hub2 a.cc.c-off,body.ax-hub2 a.cc[hidden]{display:none!important}   /* [hidden]: the search box sets it; the v2 card rule (display:flex!important) beat it on live v1670 */
/* "Design codes" section (home, hub) */
.dc-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.dc-card{background:#fff;border:1px solid #D6DADE;border-radius:6px;padding:16px 16px 14px;display:flex;flex-direction:column;gap:8px}
.dc-card h3{margin:0;font-size:16px;line-height:1.25;display:flex;align-items:center;gap:8px}
.dc-card .n{font-size:12.5px;color:#4F565D}
.dc-card ul{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:6px}
.dc-card li{font-size:13.5px;line-height:1.4;color:#1B1D1F}
.dc-card li b{font-weight:600}
.dc-card li .s{display:block;font-size:12.5px;color:#4F565D}
.dc-card .more{margin-top:auto;font-size:13px}
.dc-card.sans{border-top:3px solid #126F66}
.dc-card.ec{border-top:3px solid #1F4E8C}
.dc-card.bs{border-top:3px solid #5A3E85}
.dc-card.us{border-top:3px solid #9A5400}
.dc-key{display:flex;flex-wrap:wrap;gap:6px 16px;margin:12px 0 0;font-size:12.5px;color:#4F565D;align-items:center}
.dc-key .cb{margin-right:4px}
.dc-honest{margin:10px 0 0;font-size:13px;color:#4F565D;max-width:900px}
@media (max-width:1100px){.dc-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){.dc-grid{grid-template-columns:1fr}.v2-cchips button{height:34px}}
/* STATIX 3D page: the codes per part of the model */
.dc-tw{overflow-x:auto;border:1px solid #D6DADE;border-radius:6px;background:#fff}
.dc-table{border-collapse:collapse;width:100%;min-width:640px;font-size:14px}
.dc-table th,.dc-table td{padding:9px 12px;border-bottom:1px solid #E6E8EB;text-align:left;vertical-align:top;line-height:1.4}
.dc-table thead th{background:#F3F4F5;font-size:13px}
.dc-table tbody th{font-weight:600;color:#1B1D1F;width:28%}
.dc-table td.pt{font-style:italic;color:#4F565D}
.dc-table td.no{color:#7A8087}
.dc-table tr:last-child th,.dc-table tr:last-child td{border-bottom:0}
.c-empty{display:none!important}
.ch-codes .cp{flex-basis:100%;font-size:12.5px;line-height:1.45;color:var(--stx-dim,#4F565D)}
