/* WARDOGS post. Code styling is shared with the ForgeRock post. */
.code-block-wrapper pre { white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; } .code-block-wrapper code { white-space: inherit; background: transparent; border: 0; padding: 0; color: inherit; } code:not(.hljs) { padding: 0.08em 0.36em; border: 1px solid rgba(17, 24, 39, 0.10); border-radius: 0.38rem; background: rgba(17, 24, 39, 0.06); color: #1f2937; font-size: 0.88em; font-weight: 500; overflow-wrap: anywhere; word-break: break-word; -webkit-box-decoration-break: clone; box-decoration-break: clone; } code:not(.hljs)::before, code:not(.hljs)::after { content: none !important; } @media (prefers-color-scheme: dark) { code:not(.hljs) { border-color: rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.065); color: #e5e7eb; } }
.code-block-wrapper { --syntax-bg: #f8fafc; --syntax-base: #253447; --syntax-border: #d8e1ec; --syntax-comment: #64748b; --syntax-keyword: #7c3aed; --syntax-string: #047857; --syntax-attr: #0369a1; --syntax-number: #b45309; --syntax-variable: #be123c; --syntax-type: #1d4ed8; --syntax-meta: #9333ea; --syntax-symbol: #0f766e; --syntax-punctuation: #64748b; overflow: hidden; border: 1px solid var(--syntax-border); border-radius: 0.72rem; background: var(--syntax-bg); box-shadow: 0 7px 22px rgba(15, 23, 42, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.85); } .code-block-wrapper pre { padding: 1.05rem 1.15rem !important; border-radius: 0 !important; background: var(--syntax-bg) !important; color: var(--syntax-base) !important; font-size: 0.82rem; font-variant-ligatures: none; line-height: 1.62; tab-size: 2; } .code-block-wrapper code.hljs { display: block; background: transparent !important; color: var(--syntax-base) !important; } .code-block-wrapper .hljs-comment, .code-block-wrapper .hljs-quote { color: var(--syntax-comment); font-style: italic; } .code-block-wrapper .hljs-keyword, .code-block-wrapper .hljs-doctag, .code-block-wrapper .hljs-template-tag { color: var(--syntax-keyword); font-weight: 600; } .code-block-wrapper .hljs-string, .code-block-wrapper .hljs-regexp, .code-block-wrapper .hljs-addition { color: var(--syntax-string); } .code-block-wrapper .hljs-attr, .code-block-wrapper .hljs-attribute, .code-block-wrapper .hljs-property, .code-block-wrapper .hljs-name { color: var(--syntax-attr); } .code-block-wrapper .hljs-number, .code-block-wrapper .hljs-literal { color: var(--syntax-number); } .code-block-wrapper .hljs-variable, .code-block-wrapper .hljs-template-variable, .code-block-wrapper .hljs-variable.language_ { color: var(--syntax-variable); } .code-block-wrapper .hljs-title, .code-block-wrapper .hljs-type, .code-block-wrapper .hljs-built_in, .code-block-wrapper .hljs-class { color: var(--syntax-type); } .code-block-wrapper .hljs-meta, .code-block-wrapper .hljs-meta .hljs-keyword { color: var(--syntax-meta); } .code-block-wrapper .hljs-symbol, .code-block-wrapper .hljs-bullet, .code-block-wrapper .hljs-link { color: var(--syntax-symbol); } .code-block-wrapper .hljs-punctuation, .code-block-wrapper .hljs-operator { color: var(--syntax-punctuation); } .code-block-wrapper .hljs-subst { color: var(--syntax-base); } .code-block-wrapper .hljs-section, .code-block-wrapper .hljs-strong { color: var(--syntax-type); font-weight: 700; } .code-block-wrapper .hljs-emphasis { font-style: italic; } .code-block-wrapper .hljs-deletion { color: #b91c1c; background: rgba(254, 202, 202, 0.42); } .code-block-wrapper .hljs-addition { background: rgba(187, 247, 208, 0.35); } @media (max-width: 640px) { .code-block-wrapper { margin-top: 1.25rem; margin-bottom: 1.25rem; border-radius: 0.62rem; } .code-block-wrapper pre { padding: 0.9rem 0.85rem !important; font-size: 0.75rem; line-height: 1.58; } } @media (prefers-color-scheme: dark) { .code-block-wrapper { --syntax-bg: #0b1020; --syntax-base: #d7e1f2; --syntax-border: rgba(148, 163, 184, 0.2); --syntax-comment: #8290a5; --syntax-keyword: #c4a7ff; --syntax-string: #9ece6a; --syntax-attr: #7dcfff; --syntax-number: #ff9e64; --syntax-variable: #ff7a93; --syntax-type: #82aaff; --syntax-meta: #bb9af7; --syntax-symbol: #4fd6be; --syntax-punctuation: #718096; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.04); } .code-block-wrapper .hljs-deletion { color: #ff8d94; background: rgba(248, 113, 113, 0.11); } .code-block-wrapper .hljs-addition { background: rgba(74, 222, 128, 0.09); } } @media (prefers-contrast: more) { .code-block-wrapper { --syntax-border: #64748b; } .code-block-wrapper pre { font-weight: 450; } }
.code-block-wrapper { box-shadow: none !important; }


/* Proof-of-concept video */
.post-video { margin: 1.9rem 0 2.1rem; }
.post-video-frame {
  position: relative; overflow: hidden; aspect-ratio: 16 / 9;
  border-radius: 0.375rem; background: #0b0d10;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08), 0 14px 32px -18px rgba(15, 23, 42, 0.55);
}
.post-video video { display: block; width: 100%; height: 100%; margin: 0 !important; object-fit: contain; background: #0b0d10; }
.post-video-play {
  position: absolute; inset: 0; display: grid; place-items: center; width: 100%; padding: 0; border: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.04) 55%);
  color: #0b0d10; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.post-video-play-icon {
  display: grid; place-items: center; width: 4.4rem; height: 4.4rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.94); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform 160ms ease, background-color 160ms ease;
}
.post-video-play-icon svg { width: 1.6rem; height: 1.6rem; margin-left: 0.22rem; fill: currentColor; }
.post-video-play:hover .post-video-play-icon { transform: scale(1.06); background: #fff; }
.post-video-play:focus-visible { outline: none; }
.post-video-play:focus-visible .post-video-play-icon { outline: 3px solid #fff; outline-offset: 3px; }
.post-video-duration {
  position: absolute; right: 0.75rem; bottom: 0.7rem; padding: 0.18rem 0.5rem; border-radius: 0.3rem;
  background: rgba(0, 0, 0, 0.62); color: #fff; font-size: 0.75rem; font-weight: 600;
  font-variant-numeric: tabular-nums; letter-spacing: 0.01em; pointer-events: none;
}
.post-video.is-started .post-video-play, .post-video.is-started .post-video-duration { display: none; }
@media (prefers-color-scheme: dark) {
    .post-video-frame { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 14px 32px -18px rgba(0, 0, 0, 0.9); }
}
@media (max-width: 640px) {
  .post-video-play-icon { width: 3.6rem; height: 3.6rem; }
  .post-video-play-icon svg { width: 1.3rem; height: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) { .post-video-play-icon { transition: none; } }

/* Tighter code blocks than the site default (31px gaps read as section breaks here). */
.code-block-wrapper { margin-top: 1.15rem !important; margin-bottom: 1.15rem !important; }
.code-block-wrapper pre { padding: 0.8rem 1rem !important; }
