/* catalog.css — HCIC cylinder catalog pages (hub + 6 category + 16 detail)
   Loaded AFTER style.css + theme.css. All colors reference global vars or
   --cat-* tokens defined here; no hardcoded theme colors. */
:root{
  /* layout */
  --cat-maxw:1440px;
  --cat-head-h:48px;
  --cat-subnav-h:52px;
  --cat-anchor-offset:112px;

  /* table */
  --cat-cell-px:10px;
  --cat-cell-py:11px;
  --cat-cell-fs:14.5px;
  --cat-imp-fs:12px;
  --cat-th-bg:#f5f5f7;
  --cat-grp-bg:#eceef0;
  --cat-zebra:#fafafa;
  --cat-hover:#f0f4f2;
  --cat-scroll-max:min(72vh,900px);
  --cat-mono:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;

  /* contrast-fixed tokens (WCAG AA, see design-spec §1.4) */
  --cat-accent-ink:#15703f;
  --cat-btn-fill:#15703f;
  --cat-line-strong:#8a8a8e;
}

/* ---------- accessibility ---------- */
.cat-skip{position:absolute;left:-9999px;top:0;z-index:200;background:var(--ink);color:#fff;
  padding:10px 18px;border-radius:0 0 12px 0;font-size:14px}
.cat-skip:focus{left:0;color:#fff}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{
  outline:2px solid var(--accent);outline-offset:2px}
/* readable link color inside long-text blocks (--accent is 4.37:1, large-text only) */
.cat-faq a,.cat-notes a,.mtable a,.cat-tablecta a,.cat-lede a,.cat-section p a{color:var(--cat-accent-ink)}
.cat-faq a:hover,.cat-notes a:hover,.mtable a:hover,.cat-tablecta a:hover,.cat-lede a:hover,.cat-section p a:hover{color:var(--cat-accent-ink);text-decoration:underline}

/* ---------- layout ---------- */
.cat-container{max-width:var(--cat-maxw);margin:0 auto}
.cat-container .breadcrumb{max-width:none;margin:0;padding:20px 0 0}
.cat-section{margin-top:56px;scroll-margin-top:var(--cat-anchor-offset)}
.cat-section.cat-first{margin-top:36px}
.cat-section h2{margin:0 0 14px}
.cat-section > p{max-width:900px}
.cat-hero h1{margin:6px 0 16px;max-width:1020px}
.cat-lede{font-size:clamp(17px,1.6vw,20px);line-height:1.65;color:var(--gray);max-width:920px}
.cat-titlebar h1{margin:6px 0 0;max-width:1020px}
section[id],figure[id]{scroll-margin-top:var(--cat-anchor-offset)}

/* ---------- badges / stats / series cards ---------- */
.cat-badges{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 0}
.cat-badge{font-size:12.5px;font-weight:600;color:var(--cat-accent-ink);
  background:rgba(21,112,63,.08);border:1px solid rgba(21,112,63,.22);
  padding:5px 12px;border-radius:var(--pill)}
.cat-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:26px 0}
.cat-stat{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:16px 18px}
.cat-stat .k{font-size:12.5px;color:var(--gray);text-transform:uppercase;letter-spacing:.05em;margin-bottom:6px}
.cat-stat .v{font-size:20px;font-weight:700;color:var(--ink);letter-spacing:-.01em}
.cat-stat .s{font-size:13px;color:var(--gray);margin-top:2px}
.cat-seriescards{margin:26px 0}
.cat-sc{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:20px 22px}
.cat-sc h3{margin-bottom:10px;font-size:22px}
.cat-sc dl{display:grid;grid-template-columns:auto 1fr;gap:6px 14px;margin:0}
.cat-sc dt{color:var(--gray);font-size:13px}
.cat-sc dd{margin:0;font-size:14px;font-weight:600;color:var(--ink)}
.cat-sc .more{display:inline-block;margin-top:12px;font-size:14px;color:var(--cat-accent-ink)}

/* category cards on hub: keep drawings uncropped (overrides .card img crop) */
.cat-card img{object-fit:contain;background:#fff;padding:12px}

/* ---------- table system ---------- */
.cat-tablewrap{
  margin:14px 0 10px;border:1px solid var(--line);border-radius:var(--radius);
  background:#fff;overflow:auto;-webkit-overflow-scrolling:touch;
}
.cat-tablewrap.is-tall{max-height:var(--cat-scroll-max)}
.cat-tablewrap:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

.mtable{width:100%;border-collapse:separate;border-spacing:0;
  font-size:var(--cat-cell-fs);font-variant-numeric:tabular-nums}
.mtable caption{text-align:left;font-size:13px;color:var(--gray);padding:10px 12px 8px}
.mtable thead th{
  position:sticky;top:0;z-index:2;
  background:var(--cat-th-bg);color:var(--ink);font-weight:600;font-size:13px;
  text-align:left;white-space:nowrap;
  padding:10px var(--cat-cell-px);
  border-bottom:1px solid var(--line);
  box-shadow:0 1px 0 var(--line)
}
.mtable tbody tr.grp th{
  background:var(--cat-grp-bg);color:var(--ink);font-weight:600;
  font-size:12.5px;letter-spacing:.04em;text-transform:uppercase;
  padding:8px var(--cat-cell-px);text-align:left;border-bottom:1px solid var(--line)
}
.cat-tablewrap.is-tall .mtable tbody tr.grp th{position:sticky;top:38px;z-index:1}
.mtable th[scope="row"]{
  position:sticky;left:0;z-index:1;background:#fff;
  font-family:var(--cat-mono);font-size:13.5px;font-weight:600;
  padding:var(--cat-cell-py) var(--cat-cell-px);
  border-bottom:1px solid var(--line);border-right:1px solid var(--line);
  text-align:left;white-space:nowrap
}
.mtable thead th:first-child{left:0;z-index:3}
.mtable tbody td{
  padding:var(--cat-cell-py) var(--cat-cell-px);
  border-bottom:1px solid var(--line);vertical-align:top;white-space:nowrap
}
.mtable td.wrap{white-space:normal;min-width:150px}
.mtable td b{font-weight:600}
.mtable td i{display:block;font-style:normal;font-size:var(--cat-imp-fs);color:var(--gray);font-weight:400;margin-top:1px}
.mtable .na{color:var(--gray)}
.mtable .fn a{font-size:11px;color:var(--accent);text-decoration:none;padding:0 2px;font-weight:700}
.mtable .fn a:hover{color:var(--cat-accent-ink)}
/* zebra + hover on cells, not tr, so the sticky model column follows row color */
.mtable tbody tr:not(.grp):nth-child(even) > *{background:var(--cat-zebra)}
.mtable tbody tr:not(.grp):hover > *{background:var(--cat-hover)}
.mtable tbody tr.is-current > *{background:rgba(31,138,78,.10);font-weight:600}

/* per-family min widths (design-spec §14.3) */
.mtable--11col{min-width:1160px}
.mtable--hsp{min-width:720px}
.mtable--htc{min-width:800px}
.mtable--hht{min-width:620px}
.mtable--lser{min-width:760px}
.mtable--ranges{min-width:720px}
.mtable--ranges td{white-space:normal;min-width:110px}
.mtable--sibling td{white-space:nowrap}

/* table-tail CTA */
.cat-tablecta{font-size:13.5px;color:var(--gray);margin:0 0 34px}
.cat-tablenote{font-size:13px;color:var(--gray);margin:2px 0 12px}

/* ---------- series subnav ---------- */
.cat-subnav{position:sticky;top:var(--cat-head-h);z-index:90;
  background:rgba(255,255,255,.86);
  backdrop-filter:saturate(180%) blur(20px);
  -webkit-backdrop-filter:saturate(180%) blur(20px);
  border-bottom:1px solid var(--line)}
.cat-subnav-inner{max-width:var(--cat-maxw);margin:0 auto;padding:0 22px;
  display:flex;align-items:center;gap:6px;height:var(--cat-subnav-h);
  overflow-x:auto;scrollbar-width:none}
.cat-subnav-inner::-webkit-scrollbar{display:none}
.cat-subnav a{flex:0 0 auto;white-space:nowrap;font-size:14px;color:var(--ink);
  padding:7px 14px;border-radius:var(--pill);border:1px solid transparent}
.cat-subnav a:hover{background:var(--bg-alt);color:var(--ink)}
.cat-subnav a em{font-style:normal;color:var(--gray);font-size:12.5px}
.cat-subnav a.cat-subnav-cta{margin-left:auto;background:var(--accent);color:#fff}
.cat-subnav a.cat-subnav-cta:hover{background:var(--accent-2);color:#fff}

/* ---------- figures ---------- */
.cat-figure{margin:26px 0;border:1px solid var(--line);border-radius:var(--radius);
  overflow:hidden;background:#fff}
.cat-figure img{display:block;width:100%;height:auto;background:#fff}
.cat-figure--contain img{object-fit:contain;padding:16px;box-sizing:border-box}
.cat-figure--lead{max-width:720px;margin-left:auto;margin-right:auto}
.cat-figure figcaption{font-size:13px;color:var(--gray);line-height:1.6;
  padding:11px 16px;border-top:1px solid var(--line);background:var(--bg-alt)}
.cat-figure figcaption a{color:var(--cat-accent-ink)}
.cat-figgrid{display:grid;grid-template-columns:repeat(2,1fr);gap:22px;margin:26px 0}
.cat-figgrid--auto{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}
.cat-figgrid .cat-figure{margin:0}
.cat-figure--scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
.cat-figure--scroll img{min-width:480px;width:100%;max-width:none}
.cat-figure--narrow{max-width:760px}
.cat-figcaption-hint{display:none}

/* ---------- notes / faq / misc ---------- */
.cat-notes{max-width:860px}
.cat-notes-list{list-style:decimal;padding-left:22px;margin:10px 0 0}
.cat-notes-list li{font-size:14px;color:var(--gray);line-height:1.72;margin-bottom:12px}
.cat-notes-list li::marker{color:var(--accent);font-weight:700}
.cat-backref{color:var(--accent);text-decoration:none;padding-left:4px}
.cat-faq{max-width:820px}
.cat-faq h3{font-size:18px;margin:26px 0 8px}
.cat-faq h3:first-child{margin-top:0}
.cat-faq p{font-size:15.5px;line-height:1.7;color:var(--gray);margin:0}
.cat-ordercode{background:var(--bg-alt);border:1px solid var(--line);border-radius:var(--radius);
  padding:18px 22px;margin:14px 0 26px;font-size:15px;line-height:1.65;color:var(--ink)}
.cat-related{display:flex;flex-wrap:wrap;gap:10px;margin-top:8px}
.cat-related a{border:1px solid var(--line);border-radius:var(--pill);padding:8px 16px;font-size:14px;color:var(--cat-accent-ink)}
.cat-related a:hover{border-color:var(--accent);color:var(--cat-accent-ink)}
.cat-trustbar{max-width:var(--maxw-wide);margin:0 auto 18px;padding-top:16px;border-top:1px solid var(--line);
  font-size:12.5px;color:var(--gray);text-align:center;letter-spacing:.02em}
.cat-totop{position:fixed;right:18px;bottom:18px;z-index:80;display:inline-flex;align-items:center;gap:6px;
  background:#fff;color:var(--cat-accent-ink);border:1px solid var(--cat-line-strong);border-radius:var(--pill);
  padding:9px 16px;font-size:13.5px;font-weight:600;box-shadow:var(--shadow)}
.cat-totop:hover{background:var(--bg-alt);color:var(--cat-accent-ink)}

/* detail page spec card keeps existing .spec-table; widen container only */
.cat-speccard{max-width:860px}

/* ---------- responsive (existing breakpoints 920/760 only) ---------- */
@media(max-width:1199px){
  .cat-figgrid{grid-template-columns:1fr}
  .cat-stats{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:920px){
  .cat-seriescards.grid-3{grid-template-columns:1fr}
}
@media(max-width:760px){
  .cat-stats{gap:10px}
  .cat-stat{padding:13px 14px}
  .cat-stat .v{font-size:17px}
  .mtable th[scope="row"]{max-width:132px;white-space:normal;word-break:break-word;font-size:12.5px}
  .mtable{font-size:14px}
  .mtable td i{font-size:11.5px}
  .cat-subnav-inner{padding:0 16px}
  .cat-tablewrap{border-radius:14px}
  .cat-figcaption-hint{display:inline}
  .cat-totop{right:12px;bottom:12px;padding:8px 13px}
}

/* ---------- print ---------- */
@media print{
  .site-header,.cat-subnav,.site-footer,.hcic-wa-float,.cat-totop,.cat-skip,
  .cat-tablecta,.form-note,.cat-figgrid .cat-figure a{display:none !important}
  .cat-tablewrap{max-height:none !important;overflow:visible !important;border:0;border-radius:0}
  .mtable{font-size:8.5pt;min-width:0 !important}
  .mtable thead th{position:static !important;box-shadow:none;background:#eee !important}
  .mtable tbody tr.grp th{position:static !important}
  .mtable th[scope="row"]{position:static !important;border-right:0}
  .mtable tbody tr:not(.grp):nth-child(even) > *{background:transparent !important}
  .mtable thead{display:table-header-group}
  .cat-figure{break-inside:avoid}
  .cat-figure img{max-height:240px;object-fit:contain}
  .cat-figure--scroll img{min-width:0;width:100%}
  .section{padding:10px 0}
  .cat-section{margin-top:18px}
  @page{margin:14mm}
}
