/* Solve figures: the drawing theme for "simple automation" posts.
   Every figure is built from the same parts so posts look like one series:
   panel, step node (icon tile + title + one line), numbered badge, connector,
   mini sheet, before/after pair, checklist, and call-to-action card.
   Colours come from pub.css tokens, so light and dark mode work for free. */

.sv-fig { background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 16px; box-shadow: 0 1px 0 rgba(21,20,15,.04), 0 14px 30px -22px rgba(21,20,15,.35); font-family: var(--sans); color: var(--ink); }
.sv-fig + .sv-fig { margin-top: 14px; }
.sv-eyebrow { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.sv-eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.sv-eyebrow.warn::before { background: var(--warn); }

/* icon tile */
.sv-ico { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.sv-ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sv-ico.warn { background: color-mix(in srgb, var(--warn) 12%, transparent); color: var(--warn); }
.sv-ico.ink { background: var(--paper-2); color: var(--ink-2); }

/* step node */
.sv-node { position: relative; display: flex; gap: 12px; align-items: center; background: var(--paper); border: 1px solid var(--rule); border-radius: 12px; padding: 10px 12px; transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease); }
.sv-node b { display: block; font-weight: 600; font-size: 13.5px; line-height: 1.25; }
.sv-node span { display: block; font-size: 12px; color: var(--ink-3); line-height: 1.3; margin-top: 2px; }
.sv-node .sv-n { position: absolute; top: -8px; left: -8px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: var(--paper); font: 600 10.5px var(--mono); display: grid; place-items: center; }
/* the icon tile and badge are spans too: keep them out of the one-liner rule above */
.sv-node .sv-ico { display: grid; margin-top: 0; color: var(--accent); }
.sv-node.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.sv-node.on .sv-n { background: var(--accent); color: var(--accent-ink); }

/* flow: vertical by default, horizontal with .h on wide containers */
.sv-flow { list-style: none; margin: 0; padding: 0 0 0 8px; display: grid; gap: 18px; position: relative; }
.sv-flow > li { position: relative; }
.sv-flow > li + li::before { content: ""; position: absolute; left: 25px; top: -18px; height: 18px; width: 0; border-left: 1.5px dashed var(--accent); }
.sv-flow.h { grid-auto-flow: column; grid-auto-columns: 1fr; gap: 22px; padding: 8px 0 0 8px; }
.sv-flow.h > li + li::before { left: -22px; top: 50%; width: 22px; height: 0; border-left: 0; border-top: 1.5px dashed var(--accent); }
@media (max-width: 640px) { .sv-flow.h { grid-auto-flow: row; gap: 18px; } .sv-flow.h > li + li::before { left: 25px; top: -18px; height: 18px; width: 0; border-top: 0; border-left: 1.5px dashed var(--accent); } }

/* mini sheet */
.sv-sheet { width: 100%; border-collapse: separate; border-spacing: 0; font: 11.5px/1.3 var(--mono); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; }
.sv-sheet th { text-align: left; font-weight: 500; color: var(--ink-3); background: var(--paper-2); padding: 7px 9px; font-size: 10px; letter-spacing: .08em; }
.sv-sheet td { padding: 7px 9px; border-top: 1px solid var(--rule); color: var(--ink); vertical-align: top; }
.sv-sheet tr.new td { animation: sv-row 4.8s var(--ease) infinite; }
.sv-sheet tr.new:nth-child(2) td { animation-delay: .6s; }
.sv-sheet tr.new:nth-child(3) td { animation-delay: 1.2s; }
@keyframes sv-row { 0%, 8% { opacity: 0; background: var(--accent-soft); } 20%, 70% { opacity: 1; background: transparent; } 100% { opacity: 1; } }
.sv-note { font-size: 11px; color: var(--ink-3); margin: 8px 0 0; font-family: var(--mono); }

/* before / after */
.sv-ba { display: grid; gap: 10px; }
.sv-ba.h { grid-template-columns: 1fr 1fr; }
.sv-side { border-radius: 12px; padding: 12px; border: 1px solid var(--rule); background: var(--paper); }
.sv-side .tag { display: inline-block; font: 600 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 3px 7px; border-radius: 999px; margin-bottom: 8px; }
.sv-side.before .tag { background: color-mix(in srgb, var(--warn) 12%, transparent); color: var(--warn); }
.sv-side.after { border-color: color-mix(in srgb, var(--accent) 45%, var(--rule)); }
.sv-side.after .tag { background: var(--accent-soft); color: var(--accent); }
.sv-side p { margin: 0; font-size: 13px; line-height: 1.4; }
.sv-side .row { display: flex; gap: 10px; align-items: center; }
.sv-side .sv-big { font: 300 26px/1 var(--serif); margin-top: 8px; }

/* checklist */
.sv-check { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sv-check li { display: flex; gap: 12px; align-items: center; font-size: 13px; }
.sv-check li b { display: block; font-weight: 600; font-size: 13.5px; }
.sv-check li span { color: var(--ink-3); font-size: 12px; }

/* quote and call-to-action cards */
.sv-quote { font: italic 300 22px/1.3 var(--serif); margin: 0; color: var(--ink); }
.sv-cta { display: block; background: var(--ink); color: var(--paper); border-radius: 14px; padding: 18px; font-family: var(--sans); }
.sv-cta b { display: block; font: 400 22px/1.2 var(--serif); margin-bottom: 8px; }
.sv-cta span { font-size: 13px; opacity: .8; display: block; margin-bottom: 14px; }
.sv-cta em { font-style: normal; font-weight: 600; font-size: 13.5px; border-bottom: 1.5px solid currentColor; }
.sv-cta:hover { color: var(--paper); background: var(--accent); }

@media (prefers-reduced-motion: reduce) { .sv-sheet tr.new td { animation: none; } .sv-node { transition: none; } }
