/* Blog: SIEM vs XDR (sx-) */
.sx-tabs, .sx-cmp-tabs { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.sx-tabs button, .sx-cmp-tabs button { font: 600 13px var(--font); border-radius: 999px; padding: 8px 18px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.sx-tabs button { color: var(--accent); background: transparent; border: 1px solid rgba(148,212,244,.45); }
.sx-tabs button[aria-selected="true"] { background: var(--accent); color: var(--navy); border-color: var(--accent); }
.sx-view { display: none; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1.25fr) 40px minmax(0, 1fr); align-items: center; gap: 0; margin-top: 22px; }
.sx-view.on { display: grid; animation: sxIn .45s var(--ease); }
@keyframes sxIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.sx-col { display: grid; gap: 6px; }
.sx-col small, .sx-engine b { display: block; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(203,232,230,.8); margin-bottom: 2px; }
.sx-col span { font-size: 12px; line-height: 1.35; font-weight: 600; color: #fff; border: 1px solid rgba(203,232,230,.45); border-radius: 999px; padding: 6px 10px; text-align: center; background: rgba(7,28,66,.7); }
.sx-outs span { border-color: var(--accent); color: var(--accent); }
.sx-engine { border: 1.5px solid var(--accent); border-radius: 18px; padding: 16px; background: rgba(148,212,244,.08); box-shadow: 0 0 30px rgba(148,212,244,.18); }
.sx-engine b { font-size: 22px; letter-spacing: .04em; color: #fff; text-align: center; margin-bottom: 10px; }
.sx-view[data-view="xdr"] .sx-engine { background: var(--accent); }
.sx-view[data-view="xdr"] .sx-engine b, .sx-view[data-view="xdr"] .sx-engine li { color: var(--navy); }
.sx-view[data-view="xdr"] .sx-engine li::before { background: var(--navy); }
.sx-engine ol { list-style: none; padding: 0 !important; margin: 0 !important; display: grid; gap: 8px; counter-reset: sx; }
.sx-engine li { min-height: 20px; margin: 0 !important; padding: 1px 0 0 28px !important; font-size: 13px; line-height: 1.4; color: var(--teal-pale); position: relative; counter-increment: sx; }
.sx-engine li::before { content: counter(sx); position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: var(--navy); font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.sx-pipe { position: relative; height: 100%; min-height: 120px; }
.sx-pipe::before { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 2px; background: rgba(148,212,244,.4); }
.sx-pipe i { position: absolute; top: calc(50% - 4px); left: 6px; width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px var(--accent); animation: sxFlow 1.8s linear infinite; opacity: 0; }
.sx-pipe i:nth-child(2) { animation-delay: .6s; } .sx-pipe i:nth-child(3) { animation-delay: 1.2s; }
@keyframes sxFlow { 0% { left: 6px; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 14px); opacity: 0; } }
.sx-cap { grid-column: 1 / -1; margin-top: 18px !important; font-size: 14px !important; }

.prose .sx-cmp { margin: 2em 0; border: 1px solid var(--line); border-radius: 16px; padding: 18px; background: var(--light); }
.sx-cmp-tabs { margin-top: 0; }
.sx-cmp-tabs button { color: var(--blue); background: #fff; border: 1px solid var(--line); }
.sx-cmp-tabs button[aria-selected="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.sx-cmp-body { display: grid; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr); align-items: stretch; margin-top: 16px; }
.sx-cmp-card { border-radius: 14px; padding: 18px; background: #fff; border: 1px solid var(--line); transition: opacity .25s; }
.sx-cmp-card.xdr { background: var(--navy); border-color: var(--navy); }
.sx-cmp-card small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--blue); }
.sx-cmp-card.xdr small { color: var(--accent); }
.sx-cmp-card b { display: block; font-size: 17px; color: var(--ink); margin: 2px 0 8px; }
.sx-cmp-card.xdr b { color: #fff; }
.sx-cmp-card p { margin: 0 !important; font-size: 15px !important; line-height: 1.6 !important; color: var(--muted); }
.sx-cmp-card.xdr p { color: var(--teal-pale); }
.sx-cmp-body.swap .sx-cmp-card { opacity: 0; }
.sx-cmp-vs { display: grid; place-items: center; font-weight: 800; color: var(--blue); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }

.sx-dqs { display: grid; gap: 10px; margin-top: 16px; }
.sx-dq { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; border: 1px solid rgba(148,212,244,.2); border-radius: 12px; padding: 12px 14px; background: rgba(7,28,66,.6); }
.sx-dq p { font-size: 14.5px !important; color: var(--mist) !important; line-height: 1.5 !important; }
.sx-yn { display: inline-flex; border: 1px solid rgba(148,212,244,.45); border-radius: 999px; overflow: hidden; }
.sx-yn button { font: 600 13px var(--font); color: var(--accent); background: transparent; border: 0; padding: 8px 16px; cursor: pointer; }
.sx-yn button + button { border-left: 1px solid rgba(148,212,244,.45); }
.sx-yn button[aria-pressed="true"] { background: var(--accent); color: var(--navy); }
.sx-pick { margin-top: 16px; border-radius: 14px; padding: 18px 20px; border: 1.5px dashed rgba(148,212,244,.4); background: rgba(148,212,244,.05); }
.sx-pick.done { border-style: solid; border-color: var(--accent); background: rgba(148,212,244,.1); }
.sx-opts { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.sx-opts span { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(203,232,230,.35); color: rgba(203,232,230,.6); transition: all .3s; }
.sx-opts span.on { background: var(--accent); border-color: var(--accent); color: var(--navy); transform: scale(1.06); }
.sx-pick b { display: block; color: #fff; font-size: 19px; margin-bottom: 4px; }
.sx-pick > span { display: block; color: var(--teal-pale); font-size: 14.5px; line-height: 1.55; }

.sx-layers { display: grid; gap: 10px; margin-top: 20px; }
.sx-layer { border-radius: 14px; padding: 16px 18px; border: 1px solid rgba(148,212,244,.3); background: rgba(7,28,66,.7); opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.sx-stack.in .sx-layer { opacity: 1; transform: none; }
.sx-stack.in .sx-layer.l1 { transition-delay: 0s; } .sx-stack.in .sx-layer.l2 { transition-delay: .35s; } .sx-stack.in .sx-layer.l3 { transition-delay: .7s; }
.sx-layer b { display: block; color: #fff; font-size: 15.5px; }
.sx-layer > span { display: block; font-size: 13.5px; color: var(--teal-pale); line-height: 1.5; margin-top: 3px; }
.sx-layer.l3 { background: var(--accent); border-color: #fff; box-shadow: 0 0 26px rgba(148,212,244,.35); }
.sx-layer.l3 b, .sx-layer.l3 > span { color: var(--navy); }
.sx-layer.l2 { border-color: var(--accent); }
.sx-layer.l1 span { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.sx-layer.l1 i { font-style: normal; font-size: 12px; font-weight: 600; color: #fff; border: 1px solid rgba(203,232,230,.5); border-radius: 999px; padding: 3px 10px; }

@media (max-width: 760px) {
  .sx-view { grid-template-columns: 1fr; gap: 0; }
  .sx-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sx-col small { grid-column: 1 / -1; }
  .sx-pipe { min-height: 44px; height: 44px; }
  .sx-pipe::before { left: 50%; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto; }
  .sx-pipe i { left: calc(50% - 4px); top: 6px; animation-name: sxFlowV; }
  @keyframes sxFlowV { 0% { top: 4px; opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { top: calc(100% - 12px); opacity: 0; } }
  .sx-cmp-body { grid-template-columns: 1fr; gap: 8px; }
  .sx-cmp-vs { height: 20px; }
  .sx-dq { grid-template-columns: 1fr; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .sx-pipe i { animation: none; opacity: 1; left: calc(50% - 4px); }
  .sx-view.on { animation: none; }
  .sx-layer { transition: none !important; }
}
