/*
 * Blog article cover objects (covers.js + objects/*.js).
 * Placement: phones and tablets, centred above the title; wide screens, to the
 * right of the title block. Only the header widens; the reading column below
 * keeps its width.
 */

.vbc-stage {
  position: relative;
  width: 100%;
  max-width: 220px;
  margin: -26px auto -18px;
  cursor: pointer;
  --hairline-stroke: 1;
}
/* a soft light behind the object, so dark parts still read on the blue header */
.vbc-stage::before {
  content: '';
  position: absolute;
  inset: 4% 6% 0;
  background: radial-gradient(closest-side, var(--vbc-glow), transparent);
  pointer-events: none;
}

@media (min-width: 1100px) {
  .post-header-inner.vbc-has-cover {
    position: relative;
    max-width: 1000px;
    padding-right: 300px;
    min-height: 224px;
  }
  .vbc-has-cover .vbc-stage {
    position: absolute;
    right: 0;
    top: 50%;
    width: 280px;
    max-width: none;
    margin: 0;
    transform: translateY(-50%);
  }
}

/* the palette: Visaify navy, sky, gold, green, rose, violet and paper whites */
.vbc-stage {
  --vbc-glow: rgba(255, 255, 255, .17);
  --vbc-edge: #0b1834;
  --vbc-line: #c4cfde;
  --vbc-ink: #8fa0b9;
  --vbc-shadow: rgba(3, 10, 28, .5);
  --vbc-navy: #24447d; --vbc-navy2: #34609f;
  --vbc-sky: #0ea5e9; --vbc-skylt: #bfe6fb;
  --vbc-gold: #f59e0b; --vbc-goldlt: #fcd34d;
  --vbc-green: #10b981; --vbc-greenlt: #6ee7b7;
  --vbc-rose: #f43f5e; --vbc-roselt: #fda4af;
  --vbc-violet: #8b5cf6;
  --vbc-paper: #fdfdfb; --vbc-paper2: #e6ecf4; --vbc-cream: #fdf6e8;
  --vbc-wood: #c98b4a; --vbc-dark: #172a4f;
  --vbc-silver: #dfe6ef;
}
[data-theme="dark"] .vbc-stage {
  --vbc-glow: rgba(255, 255, 255, .2);
  --vbc-edge: #0a1630;
  --vbc-line: #a9b8cf;
  --vbc-ink: #7f91ad;
  --vbc-shadow: rgba(2, 8, 24, .55);
  --vbc-navy: #1c3461; --vbc-navy2: #2b4f8f;
  --vbc-sky: #38bdf8; --vbc-skylt: #c9ecfd;
  --vbc-gold: #fbbf24; --vbc-goldlt: #fde68a;
  --vbc-green: #34d399; --vbc-greenlt: #a7f3d0;
  --vbc-rose: #fb7185; --vbc-roselt: #fecdd3;
  --vbc-violet: #a78bfa;
  --vbc-paper: #f4f7fb; --vbc-paper2: #ccd7e6; --vbc-cream: #f5ecda;
  --vbc-wood: #d39a5c; --vbc-dark: #13254a;
  --vbc-silver: #e6ecf4;
}

/* shapes: a flat fill per colour (the fallback where color-mix is missing; JS shades it) */
.vbc-stage svg path { stroke: var(--vbc-edge); stroke-width: 1; fill: none; }
.vbc-stage .vbc-shadow { fill: var(--vbc-shadow); stroke: none; }
.vbc-stage .vbc-s.vbc-navy { fill: var(--vbc-navy); }
.vbc-stage .vbc-s.vbc-navy2 { fill: var(--vbc-navy2); }
.vbc-stage .vbc-s.vbc-sky { fill: var(--vbc-sky); }
.vbc-stage .vbc-s.vbc-skylt { fill: var(--vbc-skylt); }
.vbc-stage .vbc-s.vbc-gold { fill: var(--vbc-gold); }
.vbc-stage .vbc-s.vbc-goldlt { fill: var(--vbc-goldlt); }
.vbc-stage .vbc-s.vbc-green { fill: var(--vbc-green); }
.vbc-stage .vbc-s.vbc-greenlt { fill: var(--vbc-greenlt); }
.vbc-stage .vbc-s.vbc-rose { fill: var(--vbc-rose); }
.vbc-stage .vbc-s.vbc-roselt { fill: var(--vbc-roselt); }
.vbc-stage .vbc-s.vbc-violet { fill: var(--vbc-violet); }
.vbc-stage .vbc-s.vbc-paper { fill: var(--vbc-paper); }
.vbc-stage .vbc-s.vbc-paper2 { fill: var(--vbc-paper2); }
.vbc-stage .vbc-s.vbc-cream { fill: var(--vbc-cream); }
.vbc-stage .vbc-s.vbc-wood { fill: var(--vbc-wood); }
.vbc-stage .vbc-s.vbc-dark { fill: var(--vbc-dark); }
.vbc-stage .vbc-s.vbc-silver { fill: var(--vbc-silver); }

/* lines drawn on faces */
.vbc-stage .vbc-lines { stroke: var(--vbc-line); stroke-width: .9; }
.vbc-stage .vbc-ink { stroke: var(--vbc-ink); stroke-width: 1.4; }
.vbc-stage .vbc-k-gold { stroke: var(--vbc-gold); stroke-width: 1.3; }
.vbc-stage .vbc-k-green { stroke: var(--vbc-green); stroke-width: 1.8; }
.vbc-stage .vbc-k-rose { stroke: var(--vbc-rose); stroke-width: 1.4; }
.vbc-stage .vbc-k-sky { stroke: var(--vbc-sky); stroke-width: 1.4; }
.vbc-stage .vbc-k-navy { stroke: var(--vbc-navy); stroke-width: 1.4; }
.vbc-stage .vbc-k-edge { stroke: var(--vbc-edge); stroke-width: 1.6; }
.vbc-stage .vbc-fill-gold { fill: var(--vbc-gold); stroke: none; }
.vbc-stage .vbc-fill-glow { fill: var(--vbc-goldlt); stroke: none; }
/* thick bands that should scale with the drawing */
.vbc-stage .vbc-band { vector-effect: none; fill: none; stroke-linecap: round; }

/* a slow float, with the shadow breathing under it */
.vbc-stage .vbc-float { animation: vbc-float 6s ease-in-out infinite; }
.vbc-stage .vbc-shade { animation: vbc-shade 6s ease-in-out infinite; }
@keyframes vbc-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes vbc-shade { 0%, 100% { opacity: 1; } 50% { opacity: .75; } }

@media (prefers-reduced-motion: reduce) {
  .vbc-stage .vbc-float, .vbc-stage .vbc-shade { animation: none; }
}

/* object details */
.vbc-stage .vbc-cord { stroke: var(--vbc-gold); stroke-width: 2.4; }
.vbc-stage .vbc-glowpool { filter: blur(2px); }
.vbc-stage .vbc-handle { stroke: color-mix(in oklab, var(--vbc-wood) 55%, var(--vbc-edge)); stroke-width: 5; }
.vbc-stage .vbc-stitch { stroke: var(--vbc-goldlt); stroke-width: .9; stroke-dasharray: 2.5 2; opacity: .7; }
.vbc-stage .vbc-ring-band { stroke-width: 7.5; }
.vbc-stage .vbc-clockbar { stroke: var(--vbc-gold); stroke-width: 2.6; }
.vbc-stage .vbc-ticks { stroke-width: 1.2; }
.vbc-stage .vbc-hand-h { stroke: var(--vbc-edge); stroke-width: 3; }
.vbc-stage .vbc-hand-m { stroke: var(--vbc-edge); stroke-width: 2; }
.vbc-stage .vbc-heading { stroke-width: 3.2; }
.vbc-stage .vbc-sign { stroke-width: 1.2; }
.vbc-stage .vbc-border { stroke-width: 1; }
.vbc-stage .vbc-grass { stroke: var(--vbc-greenlt); stroke-width: 1.3; }
.vbc-stage .vbc-shadow-soft { opacity: .45; }
.vbc-stage .vbc-dialband { stroke-width: 5; stroke-linecap: butt; }
.vbc-stage .vbc-needle { stroke: var(--vbc-edge); stroke-width: 2.2; }
