/* Shared styles for the VF7 HMI blog posts (vf7-hmi-blog.html, vf7-hmi-blog-en.html) */
body {
    font-family: 'Inter', sans-serif;
    color: #ffffff;
    overflow-x: hidden;
    background-color: #050505;
    background-image:
        radial-gradient(at 0% 0%, rgba(58, 29, 0, 0.3) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(247, 148, 29, 0.1) 0px, transparent 50%);
}
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 2px; }
.font-geist { font-family: 'Geist', 'Inter', sans-serif; }
.font-mono { font-family: 'Geist Mono', ui-monospace, monospace; }

/* Article typography (same as the other Double D posts) */
.article-content p { margin-bottom: 1.5rem; line-height: 1.75; color: #d4d4d4; font-size: 1.125rem; }
.article-content h2 { color: #fff; font-family: 'Geist', 'Inter', sans-serif; font-weight: 600; font-size: 1.875rem;
    margin-top: 3.5rem; margin-bottom: 1rem; letter-spacing: -0.025em; scroll-margin-top: 100px; }
.article-content h3 { color: #fff; font-family: 'Geist', 'Inter', sans-serif; font-weight: 500; font-size: 1.375rem;
    margin-top: 2rem; margin-bottom: 0.75rem; letter-spacing: -0.025em; scroll-margin-top: 100px; }
.article-content ul { list-style-type: disc; margin-left: 1.5rem; margin-bottom: 1.5rem; color: #d4d4d4; }
.article-content li { margin-bottom: 0.5rem; line-height: 1.7; }
.article-content blockquote { border-left: 2px solid #f7941d; padding-left: 1.5rem; font-style: italic; color: #a3a3a3; margin: 2rem 0; font-size: 1.125rem; }
.article-content code { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 0.85em; background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08); border-radius: 4px; padding: 1px 6px; color: #fbbf74; }
.article-content figure { margin: 2rem 0; }
.article-content figcaption { font-size: 0.8125rem; color: #8a8a8a; margin-top: 0.6rem; line-height: 1.5; }

/* Live demo */
.demo-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden;
    border: 1px solid rgba(255,255,255,.1); background: #07080a; }
.demo-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.demo-poster { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: #07080a; }
.demo-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s, opacity .3s; opacity: .85; }
.demo-poster:hover img { transform: scale(1.02); opacity: 1; }
.demo-poster .play { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
    background: radial-gradient(circle at center, rgba(0,0,0,.25), rgba(0,0,0,.65)); }
.demo-poster .play-btn { width: 76px; height: 76px; border-radius: 999px; background: #f7941d; color: #000; display: flex;
    align-items: center; justify-content: center; box-shadow: 0 0 0 10px rgba(247,148,29,.18); transition: transform .2s; }
.demo-poster:hover .play-btn { transform: scale(1.08); }
.demo-poster .play-label { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #fff; }
.demo-poster .play-note { font-size: 12px; color: #a3a3a3; }

.ctl-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ctl-label { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 10px; text-transform: uppercase; letter-spacing: .15em; color: #737373; margin-right: 4px; }
.ctl { font-size: 12px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); color: #d4d4d4;
    background: rgba(255,255,255,.03); transition: all .2s; cursor: pointer; }
.ctl:hover:not(:disabled) { border-color: #f7941d; color: #fff; }
.ctl.on { background: #f7941d; border-color: #f7941d; color: #000; font-weight: 600; }
.ctl:disabled { opacity: .35; cursor: not-allowed; }
.swatch { width: 26px; height: 26px; border-radius: 999px; border: 2px solid rgba(255,255,255,.2); cursor: pointer; transition: transform .2s, border-color .2s; }
.swatch:hover:not(:disabled) { transform: scale(1.12); }
.swatch.on { border-color: #f7941d; box-shadow: 0 0 0 3px rgba(247,148,29,.25); }
.swatch:disabled { opacity: .35; cursor: not-allowed; }

/* Screen gallery */
.shot { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid rgba(255,255,255,.08); background: #0f0f0f; cursor: zoom-in; display: block; width: 100%; padding: 0; text-align: left; }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .6s; display: block; }
.shot:hover img { transform: scale(1.03); }
.shot .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px; background: linear-gradient(to top, rgba(0,0,0,.9), transparent); pointer-events: none; }
.shot .cap b { display: block; color: #fff; font-size: 14px; font-weight: 600; }
.shot .cap span { display: block; color: #a3a3a3; font-size: 12px; margin-top: 2px; line-height: 1.4; }
.shot .num { position: absolute; top: 10px; left: 12px; font-family: 'Geist Mono', ui-monospace, monospace; font-size: 10px; color: #f7941d;
    background: rgba(0,0,0,.6); border: 1px solid rgba(247,148,29,.3); border-radius: 999px; padding: 2px 8px; }

/* Light / dark compare */
.compare { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; border: 1px solid rgba(255,255,255,.08); user-select: none; touch-action: pan-y; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare .top { clip-path: inset(0 0 0 var(--pos, 50%)); }
.compare .bar { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; margin-left: -1px; background: #f7941d; pointer-events: none; }
.compare .knob { position: absolute; top: 50%; left: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 999px; background: #f7941d; color: #000;
    display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare .tag { position: absolute; top: 12px; font-family: 'Geist Mono', ui-monospace, monospace; font-size: 10px; text-transform: uppercase; letter-spacing: .12em;
    padding: 3px 9px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; pointer-events: none; }

/* Pipeline */
.pipe { display: grid; gap: 10px; grid-template-columns: 1fr; margin: 2rem 0; }
@media (min-width: 640px) { .pipe { grid-template-columns: repeat(3, 1fr); } }
.pipe-step { position: relative; padding: 16px; border-radius: 10px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); }
.pipe-step .n { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 10px; color: #f7941d; letter-spacing: .12em; }
.pipe-step b { display: block; color: #fff; font-size: 15px; margin: 6px 0 4px; font-weight: 600; }
.pipe-step span { display: block; color: #a3a3a3; font-size: 13px; line-height: 1.5; }
.pipe-step.hl { border-color: rgba(247,148,29,.45); background: rgba(247,148,29,.07); }

/* Stats */
.stat { padding: 18px; border-radius: 10px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); }
.stat b { display: block; font-family: 'Geist', 'Inter', sans-serif; font-size: 2rem; line-height: 1.1; color: #fff; letter-spacing: -0.03em; font-weight: 600; }
.stat span { display: block; font-size: 12px; color: #a3a3a3; margin-top: 6px; line-height: 1.4; }

/* Code */
.code { background: #0b0b0c; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: 18px 20px; overflow-x: auto;
    font-family: 'Geist Mono', ui-monospace, monospace; font-size: 13px; line-height: 1.7; color: #d4d4d4; margin-bottom: 1.5rem; }
.code .c { color: #6b7280; }
.code .k { color: #f7941d; }
.code .s { color: #a7f3d0; }

/* Lightbox */
#lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.92); display: none; align-items: center; justify-content: center; padding: 16px; cursor: zoom-out; }
#lightbox.open { display: flex; }
#lightbox img { max-width: 100%; max-height: 90vh; border-radius: 8px; }
