:root {
  --cb-red: #c62828;
  --cb-red-dark: #a20513;
  --cb-navy: #1f2a37;
  --cb-ink: #111827;
  --cb-muted: #667085;
  --cb-line: #d0d5dd;
  --cb-soft: #f5f7fa;
  --cb-blue-soft: #e8eeff;
  --cb-white: #fff;
}

.cb-eyebrow {
  margin: 0 0 8px;
  color: var(--cb-red-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.cb-archive-head {
  max-width: 820px;
  margin-bottom: 32px;
  border-left: 4px solid var(--cb-red);
  padding-left: 24px;
}

.cb-archive-head h1,
.cb-product-head h1 {
  margin: 0 0 12px;
  color: var(--cb-navy);
  font-size: 42px;
  line-height: 1.15;
  letter-spacing: 0;
}

.cb-archive-head p,
.cb-product-head p {
  color: var(--cb-muted);
  font-size: 17px;
  line-height: 1.65;
}

.cb-type-grid,
.cb-product-grid,
.cb-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.cb-type-grid {
  margin-bottom: 40px;
}

.cb-type-card,
.cb-product-card,
.cb-related-card {
  display: block;
  color: inherit;
  text-decoration: none;
  background: var(--cb-white);
  border: 1px solid var(--cb-line);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.cb-type-card,
.cb-related-card {
  padding: 22px;
}

.cb-type-card:hover,
.cb-product-card:hover,
.cb-related-card:hover {
  border-color: var(--cb-red);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(31, 42, 55, .08);
}

.cb-type-card h2,
.cb-product-card h2,
.cb-related-card h2,
.cb-related-card h3 {
  margin: 0 0 10px;
  color: var(--cb-navy);
  font-size: 20px;
  line-height: 1.35;
}

.cb-type-card p,
.cb-product-card p,
.cb-related-card p {
  color: var(--cb-muted);
  line-height: 1.6;
}

.cb-type-card span,
.cb-card-cta {
  color: var(--cb-red-dark);
  font-size: 13px;
  font-weight: 700;
}

.cb-product-card-link {
  color: inherit;
  text-decoration: none;
}

.cb-product-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: linear-gradient(135deg, #172033, #eef2f7);
}

.cb-product-thumb-fallback {
  position: relative;
}

.cb-product-thumb-fallback::after {
  content: "";
  position: absolute;
  inset: 28%;
  border: 10px solid rgba(255, 255, 255, .45);
  border-radius: 50%;
}

.cb-product-card-body {
  padding: 20px;
}

.cb-product-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 40px;
}

.cb-side {
  position: relative;
}

.cb-toc-title {
  margin: 0 0 12px;
  font-weight: 700;
  color: var(--cb-navy);
}

.cb-toc a:hover {
  color: var(--cb-red-dark);
}

.cb-product-head {
  margin-bottom: 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--cb-line);
}

.cb-article-body h2,
.cb-faq h2,
.cb-related h2 {
  margin: 34px 0 14px;
  color: var(--cb-navy);
  font-size: 28px;
  line-height: 1.25;
}

.cb-spec-table tr:nth-child(even) {
  background: var(--cb-soft);
}

.cb-rfq {
  margin: 34px 0;
  padding: 26px;
  border: 1px solid var(--cb-line);
  border-radius: 8px;
  background: var(--cb-blue-soft);
}

.cb-rfq-head h2 {
  margin: 0 0 8px;
  color: var(--cb-navy);
  font-size: 26px;
}

.cb-rfq-head p {
  color: var(--cb-muted);
}

.cb-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.cb-rfq label {
  display: block;
  color: var(--cb-navy);
  font-weight: 700;
  font-size: 14px;
}

.cb-rfq label span {
  display: block;
  margin-bottom: 6px;
}

.cb-rfq input,
.cb-rfq textarea {
  width: 100%;
  border: 1px solid var(--cb-line);
  border-radius: 4px;
  background: #fff;
  color: var(--cb-ink);
  padding: 10px 12px;
}

.cb-rfq input:focus,
.cb-rfq textarea:focus {
  border-color: var(--cb-navy);
  box-shadow: 0 0 0 2px rgba(31, 42, 55, .1);
  outline: none;
}

.cb-form-wide {
  margin-top: 16px;
}

.cb-file-field input[type="file"] {
  padding: 12px;
  border-style: dashed;
}

.cb-file-field em {
  display: block;
  margin-top: 8px;
  color: var(--cb-muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.45;
}

.cb-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cb-form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.cb-form-msg {
  min-height: 24px;
  margin-top: 12px;
  color: var(--cb-muted);
}

.cb-form-msg.is-ok {
  color: #047857;
}

.cb-form-msg.is-error {
  color: #b42318;
}

.cb-faq-item {
  border: 1px solid var(--cb-line);
  border-radius: 6px;
  padding: 14px 16px;
  margin: 10px 0;
  background: #fff;
}

.cb-faq-item summary {
  cursor: pointer;
  color: var(--cb-navy);
  font-weight: 800;
}

@media (max-width: 900px) {
  .cb-type-grid,
  .cb-product-grid,
  .cb-related-grid,
  .cb-form-grid,
  .cb-product-layout {
    grid-template-columns: 1fr;
  }

  .cb-side {
    display: none;
  }

  .cb-archive-head h1,
  .cb-product-head h1 {
    font-size: 32px;
  }
}
.cb-chip-row a:hover{border-color:#477a52;color:#315b45}
.cb-decision-path .cb-related-card{display:flex;flex-direction:column;gap:.45rem}
.cb-decision-path .cb-related-card>a{display:block;text-decoration:none;font-weight:650;color:#315b7d}
.cb-decision-path .cb-related-card>a:hover{text-decoration:underline}

/* v1.6.4 RFQ engineering fields */
.cb-rfq select { width:100%; min-height:44px; border:1px solid var(--cb-line); background:#fff; color:var(--cb-ink); padding:10px 12px; font:inherit; }
.cb-rfq input:invalid:not(:placeholder-shown),.cb-rfq textarea:invalid:not(:placeholder-shown) { border-color:#b42318; }
.cb-rfq-advanced { margin:16px 0; border:1px solid var(--cb-line); background:var(--cb-soft); }
.cb-rfq-advanced summary { cursor:pointer; padding:13px 15px; color:var(--cb-navy); font-weight:800; }
.cb-rfq-advanced[open] summary { border-bottom:1px solid var(--cb-line); }
.cb-rfq-advanced .cb-form-grid { padding:16px; }
.cb-file-field input[required] { background:#fff; }

/* Blog Guide fallback: continuous source body with an H2-only TOC. */
.cb-guide-reading-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 840px);
  gap: 48px;
  justify-content: center;
  align-items: start;
}
.cb-guide-toc { position: sticky; top: 112px; }
.cb-guide-toc > h2 { margin: 0 0 14px; font-size: 18px; }
.cb-toc-list { list-style: none; margin: 0; padding: 0; }
.cb-guide-toc .cb-toc { position: static; }
.cb-guide-detail .cb-article-body { min-width: 0; background: transparent; border: 0; padding: 0; }
.cb-guide-detail .cb-related-resources,
.cb-guide-detail .cb-inline-rfq { margin-top: 64px; }
@media (max-width: 900px) {
  .cb-guide-reading-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .cb-guide-toc { position: static; }
}

/* Step 3 fallback templates: Product Features and compact product cards. */
.cb-toc-shell{border:1px solid var(--cb-line);background:#fff}.cb-toc-shell>summary{padding:14px 16px;font-weight:800;cursor:pointer}.cb-toc-shell .cb-toc{padding:0 16px 16px}.cb-product-features{margin-bottom:42px}.cb-feature-card{padding:20px;border:1px solid var(--cb-line);background:#fff}.cb-feature-card h3{margin:0 0 8px;font-size:18px}.cb-feature-card p{margin:0}.cb-product-feature-list{display:grid;gap:7px;margin:12px 0 0;padding-left:18px;color:var(--cb-muted);font-size:13px}.cb-product-thumb{width:100%;aspect-ratio:4/3;object-fit:contain;background:#fff}.cb-product-thumb-fallback{background:linear-gradient(135deg,#edf2f7,#dbe4ec)}@media(max-width:760px){}

.cb-condition-group{margin-top:18px;padding:18px;border:1px solid var(--cb-line);border-radius:10px;background:var(--cb-white)}
.cb-condition-group h3{margin:0 0 14px;font-size:1.05rem}

.cb-file-control{position:relative;display:flex;align-items:center;gap:12px;margin-top:6px;min-height:46px;border:1px solid #bac4cc;border-radius:8px;background:#fff;overflow:hidden}.cb-file-button{display:inline-flex;align-items:center;align-self:stretch;padding:0 16px;background:#17202a;color:#fff;font-weight:700;white-space:nowrap}.cb-file-status{min-width:0;padding:8px 12px;color:#56616d;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cb-file-control input[type=file]{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}.cb-file-control:focus-within{outline:2px solid #b42318;outline-offset:2px}

/* v2.3.4.1 Plan 1-1 fallback: Brush Type choice guidance. */
.cb-choice-guidance{margin-top:22px;padding:18px 20px;border:1px solid var(--cb-line);border-radius:12px;background:var(--cb-soft)}
.cb-choice-guidance h3{margin:0 0 8px}.cb-choice-guidance p:last-child{margin-bottom:0}
