/* RAYPCB Tools — Ceramic pack styles. Extends the ray-* / ps-* system. */

/* Material comparison bars */
.cx-cmp-row { margin: 0 0 18px; }
.cx-cmp-lab { font-weight: 700; color: #0d1b24; margin: 0 0 8px; font-size: 14px; }
.cx-cmp-grid { display: grid; gap: 7px; }
.cx-bar-line { display: grid; grid-template-columns: 120px 1fr 62px; align-items: center; gap: 10px; }
.cx-bar-name { font-size: 12px; color: #5b6b7b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-bar-track { background: #eef2f4; border-radius: 6px; height: 16px; overflow: hidden; }
.cx-bar { height: 16px; border-radius: 6px; transition: width .8s cubic-bezier(.22,.61,.36,1); }
.cx-bar-val { font-size: 12px; font-weight: 700; color: #0d1b24; text-align: right; }
@media (max-width: 520px) { .cx-bar-line { grid-template-columns: 88px 1fr 48px; } }

/* Stack-up viewer */
.cx-pills { flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.cx-stack-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.cx-stack-stage { display: flex; justify-content: center; }
.cx-stack-note strong { color: #0e4c5c; display: block; margin-bottom: 6px; font-size: 15px; }
.cx-stack-note p { color: #5b6b7b; font-size: 13.5px; line-height: 1.55; margin: 0; }
@media (max-width: 560px) { .cx-stack-wrap { grid-template-columns: 1fr; } }

/* Process timeline */
.cx-time-track { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.cx-time-node { display: flex; align-items: center; gap: 8px; background: #f2f6f7; border: 1px solid #dce4e7;
  border-radius: 999px; padding: 6px 12px 6px 6px; cursor: pointer; font: inherit; color: #5b6b7b; transition: .2s; }
.cx-time-node:hover { border-color: #0a6d7f; color: #0d1b24; }
.cx-time-node.is-active { background: #0e4c5c; border-color: #0e4c5c; color: #fff; }
.cx-time-dot { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px;
  border-radius: 50%; background: #0a6d7f; color: #fff; font-size: 12px; font-weight: 700; flex: none; }
.cx-time-node.is-active .cx-time-dot { background: #b5622c; }
.cx-time-name { font-size: 12.5px; font-weight: 600; }
.cx-time-detail { background: #f7fafb; border: 1px solid #e4ecee; border-left: 4px solid #b5622c; border-radius: 8px; padding: 14px 16px; }
.cx-time-step { font-size: 12px; font-weight: 700; color: #b5622c; text-transform: uppercase; letter-spacing: .5px; }
.cx-time-detail h4 { margin: 4px 0 6px; color: #0e4c5c; font-size: 16px; }
.cx-time-detail p { margin: 0; color: #5b6b7b; font-size: 13.5px; line-height: 1.6; }
