/* Click-to-load video embeds (_video_embed.html + js/video-embed.js).
   Nothing from YouTube loads until the visitor presses play: the poster is our
   own copy and the player is youtube-nocookie.com, added on click. */
.vid { position: relative; width: 100%; border-radius: 14px; overflow: hidden; background: #000;
    border: 1px solid var(--border-color, var(--border, #333)); aspect-ratio: 16 / 9; }
.vid--v { aspect-ratio: 9 / 16; max-width: 320px; margin-inline: auto; }
.vid iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vid-facade { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; margin: 0; border: 0;
    cursor: pointer; background: #000; display: block; color: #fff; font: inherit; }
.vid-facade img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .25s ease, transform .4s ease; }
.vid-facade:hover img { opacity: .85; transform: scale(1.02); }
.vid-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px;
    border-radius: 50%; background: rgba(10, 9, 8, .72); border: 2px solid rgba(255, 255, 255, .9);
    display: flex; align-items: center; justify-content: center; transition: background .2s ease, border-color .2s ease; }
.vid--lg .vid-play { width: 84px; height: 84px; }
.vid--sm .vid-play { width: 48px; height: 48px; }
.vid-play svg { width: 40%; height: 40%; fill: #fff; margin-left: 8%; transition: fill .2s ease; }
.vid-facade:hover .vid-play { background: var(--accent, #ff9800); border-color: var(--accent, #ff9800); }
.vid-facade:hover .vid-play svg { fill: #1a1a1a; }
.vid-facade:focus-visible { outline: 3px solid var(--accent, #ff9800); outline-offset: -3px; }
.vid-dur { position: absolute; right: 10px; bottom: 10px; background: rgba(10, 9, 8, .85); color: #fff; font-size: .78rem;
    font-weight: 700; padding: 2px 8px; border-radius: 6px; font-variant-numeric: tabular-nums; pointer-events: none; }
/* Plain link for crawlers and no-JS readers; not shown on screen. */
.vid-fallback { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
    .vid-facade img, .vid-play, .vid-play svg { transition: none; }
    .vid-facade:hover img { transform: none; }
}

/* A strip of embeds: "See it in action" blocks and the /videos grids. */
.vid-feature { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 20px; align-items: start; max-width: 1080px; margin: 0 auto; }
.vid-feature-side { display: grid; gap: 20px; }
.vid-item { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.vid-item h3 { font-size: 1rem; line-height: 1.35; margin: 0; color: var(--text-primary, #f0f0f0); }
.vid-item p { margin: 0; font-size: .9rem; line-height: 1.55; color: var(--text-secondary, #a0a0a0); }
.vid-item .vid-more { font-size: .88rem; font-weight: 600; color: var(--accent, #ff9800); }
.vid-more-row { text-align: center; margin-top: 26px; }
.vid-more-row a { color: var(--accent, #ff9800); font-weight: 600; }
@media (max-width: 760px) { .vid-feature { grid-template-columns: minmax(0, 1fr); } }

.vid-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 22px; }
.vid-grid--v { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.vid-grid--v .vid--v { max-width: 100%; }
.vid-grid--v .vid-item h3 { font-size: .92rem; }
@media (max-width: 980px) { .vid-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .vid-grid--v { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) { .vid-grid { grid-template-columns: minmax(0, 1fr); } .vid-grid--v { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; } }

.vid-section { margin-top: 56px; }
.vid-section:first-child { margin-top: 0; }
.vid-section h2 { font-size: 1.5rem; margin: 0 0 8px; }
.vid-section > p { color: var(--text-secondary, #a0a0a0); margin: 0 0 22px; max-width: 720px; line-height: 1.6; }
.vid-page-hero { padding: 96px 0 32px; background: var(--bg-secondary, #141414); text-align: center; }
.vid-page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 14px; }
.vid-page-hero p { color: var(--text-secondary, #a0a0a0); font-size: 1.1rem; max-width: 680px; margin: 0 auto; line-height: 1.6; }
.vid-page-main { padding: 40px 0 72px; }
.vid-cta { text-align: center; margin-top: 64px; }
.vid-cta p { color: var(--text-secondary, #a0a0a0); margin: 0 0 16px; }

/* Inside narrow article-style pages (workflows, MCP tool reference, tools). */
.vid-inline { margin: 40px 0; }
.vid-inline h2 { margin-bottom: 16px; }
.vid-inline-row { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; }
.vid-inline-row .vid-item { flex: 1 1 300px; max-width: 520px; }
.vid-inline-row .vid-item:has(.vid--v) { flex: 0 1 220px; }
.vid-inline-more { margin: 14px 0 0; font-size: .92rem; }
.vid-inline-more a { color: var(--accent, #ff9800); font-weight: 600; }
