/* =========================================================================
   SafeAll Asia - CSIM product page extras (linked only from products/csim.html and en/products/csim.html)
   The shared engine (product.css / product.js) is not edited. Everything here is page-local:
   the link rail for chapter 5, a 3-column deploy band, and a few mock pieces the engine has no class for.
   Same rules as product.css: neutral for selection, status colours never used, no @property / :has().
   ========================================================================= */

/* chapter 5: link rail to the other four product pages (no mock) */
.prail { padding-block: clamp(28px, 5vw, 56px); border-top: 1px solid var(--line-soft); min-width: 0; }
.prail > .h3 { line-height: var(--lh-th); overflow-wrap: break-word; margin-bottom: 18px; }
.prail .grid--auto { margin-top: 0; }
.prail .card--quiet { color: var(--text); text-decoration: none; min-width: 0; min-height: 44px; }
.prail .card--quiet h4 { margin: 0 0 8px; line-height: var(--lh-th); overflow-wrap: break-word; }
.prail .card--quiet p { line-height: var(--lh-th); overflow-wrap: break-word; }
.prail .card--quiet:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.prail__note { margin-top: 18px; max-width: 70ch; line-height: var(--lh-th); }
@media (min-width: 900px) { .facts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* static caption chip ("ไม่จำกัดจำนวน", priority ranking): a label, not a state */
.mk .cs-cap { border-style: dashed; border-color: var(--muted); color: var(--text-2); background: transparent; }

/* ch1: four screens per operator, saved views */
.cs-scrs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
@media (min-width: 560px) { .cs-scrs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cs-scr { display: grid; place-items: center; min-height: 64px; padding: 6px 8px; border: 2px solid var(--text-2); border-radius: 4px; background: linear-gradient(135deg, #2b2b32, #1a1a1f); color: var(--text); font-size: 12.5px; line-height: var(--lh-th); text-align: center; overflow-wrap: break-word; }
.cs-seq { position: relative; min-height: 96px; margin-top: 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-alt); }
.cs-seq .mk-cell { min-height: 40px; }
.cs-hop { width: calc((100% - 9px) / 2); height: calc((100% - 9px) / 2); }

/* ch2: event queue beside a camera cell, door state, BAS rows */
.cs-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 10px; align-items: start; }
.cs-left, .cs-q { display: grid; gap: 8px; align-content: start; min-width: 0; }
.cs-door { display: grid; gap: 6px; }
.cs-ev { display: flex; align-items: center; gap: 9px; min-height: 40px; }
.mk-card--acc { border-left-color: var(--dw-acc, #fff); }
/* category = colour + shape, the same shapes the desktop legend uses: access cross, intrusion diamond, fire ring */
.cs-sh { flex: none; width: 12px; height: 12px; display: inline-block; }
.cs-sh--acc { background: linear-gradient(var(--dw-acc, #fff), var(--dw-acc, #fff)) center / 3px 100% no-repeat, linear-gradient(var(--dw-acc, #fff), var(--dw-acc, #fff)) center / 100% 3px no-repeat; }
.cs-sh--intr { background: var(--dw-intr, #7B5FD6); transform: rotate(45deg) scale(.74); }
.cs-sh--fire { border: 2px solid var(--dw-fire, #E08CC0); border-radius: 50%; box-sizing: border-box; }
.cs-row { justify-content: space-between; }
.cs-tg { flex: none; }

/* ch3: lanes, SOP, alert channels */
.mk-lanes4 .mk-col { min-height: 0; }
.cs-ic { display: flex; align-items: center; font: 600 12px/1.5 var(--mono); color: var(--text); white-space: nowrap; }
.mk-sop { list-style: none; margin: 0; padding: 0; }
.mk-sop li { padding: 0; margin: 0; }
.mk-sop i { position: relative; display: inline-block; }
.mk-sop i > b { position: absolute; inset: -1px; border-radius: 3px; background: var(--text); }
.cs-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.cs-per { display: inline-flex; align-items: center; padding: 4px 12px; }

/* ch4: failover pair, TH / EN flip label */
.cs-fo { flex-wrap: wrap; }
.cs-fo > .mk-hline { flex: 1 1 24px; }
.cs-flip { font-weight: 600; color: var(--text); }
.cs-flip > span { text-align: left; }

