body { margin: 0; font: 16px/1.5 system-ui, sans-serif; color: #222; background: #fff; }
header { padding: 8px 16px; border-bottom: 1px solid #ddd; }
header img { height: 48px; }
main { max-width: 52rem; margin: 0 auto; padding: 0 16px 4rem; }
h2 { margin-top: 2rem; border-bottom: 1px solid #ddd; }
pre.def, pre.ans { display: none; }
/* question numbers sit in the heading (build-md.js); hide the copy nosqlzoo.js puts inside the question */
.qnum { font-size: 250%; line-height: 1; color: #ee8301; margin-right: 0.3em; vertical-align: -0.15em; }
.q.hnum > span.id, .q.hnum > span.id + br { display: none; }

/* the vine (feedback.js): a gutter down the left of main */
:root { --vine: 72px; }
@media (max-width: 600px) { :root { --vine: 36px; } }
main.wk-vined { position: relative; padding-left: calc(var(--vine) + 12px); }
.wk-vine { position: absolute; left: 0; top: 0; width: var(--vine); overflow: visible; pointer-events: none; }
.wk-vined .qcorrect { display: none; }    /* the flower replaces the tick */

.wk-stem { fill: none; stroke: #4a5a2e; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.wk-stalk { fill: none; stroke: #4a5a2e; stroke-width: 1.6; stroke-linecap: round; }
.wk-tendril { fill: none; stroke: #5d7238; stroke-width: 1; stroke-linecap: round; }
.wk-leaf { fill: #5f7a3c; stroke: #26301b; stroke-width: 1; stroke-linejoin: round; }
.wk-leaf-light { fill: #9cb06e; }
.wk-vein { fill: none; stroke: #26301b; stroke-width: 0.7; stroke-linecap: round; }
.wk-vein-light { fill: none; stroke: #e8a08a; stroke-width: 0.8; stroke-linecap: round; }
.wk-sepal { fill: #55703a; stroke: #26301b; stroke-width: 0.8; stroke-linejoin: round; }
.wk-budbody { fill: #a8432f; stroke: #3a1a14; stroke-width: 1; }
.wk-petal { fill: #c4584a; stroke: #3a1a14; stroke-width: 0.9; stroke-linejoin: round; }
.wk-petal-light { fill: #eba48a; }
.wk-centre { fill: #d9a43a; stroke: #5a3a10; stroke-width: 0.8; }
.wk-stamen { fill: #5a3a10; }

/* growth: each part scales out from its base; --d staggers the parts */
.wk-grow, .wk-open, .wk-pop { transform-origin: 0 0; animation: 0.9s cubic-bezier(.2,.8,.3,1.1) var(--d, 0s) both; }
.wk-grow { animation-name: wk-grow; }
.wk-open { animation-name: wk-open; animation-duration: 1.1s; }
.wk-pop { animation-name: wk-pop; animation-duration: 0.6s; }
@keyframes wk-grow { from { transform: scale(0) rotate(-30deg); } to { transform: none; } }
@keyframes wk-open { from { transform: scale(0.15) rotate(-50deg); opacity: 0; } 40% { opacity: 1; } to { transform: none; } }
@keyframes wk-pop { from { transform: scale(0); } 70% { transform: scale(1.3); } to { transform: none; } }
.wk-draw { stroke-dasharray: 1; animation: wk-draw 0.5s ease-out both; }
.wk-intro .wk-stem { stroke-dasharray: 1; animation: wk-draw 2.5s ease-out both; }
@keyframes wk-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.wk-swell > g { transform-origin: 0 0; transition: transform 1.2s cubic-bezier(.3,1.4,.5,1); }
.wk-gone { transform-origin: 0 0; animation: wk-gone 0.6s ease-in both; }
@keyframes wk-gone { to { opacity: 0; transform: scale(1.4); } }
