/* Boohoo update: photo-led polaroid expense cards on the timeline. The polaroid IS the expense card
   (photo, name + amount in Poppins, one handwritten caption). Fixed costs (Huur, Abbo) stay as small plain cards.
   Layout is driven by --mh (timeline height) so cards never clip above/below the line. */
/* The timeline is designed at a fixed size (--mh x --pw) and scaled as a whole by --z (set in boohoo2.js from the free height),
   so two stacked polaroids always fit between the heading and the bottom of the screen, on laptops and phones alike. */
#herkenbaar{--z:1;--mh:660px;--pw:200px;--gap:34px;height:230svh}
#herkenbaar .boohoo-sticky{padding-bottom:26px}
#herkenbaar .boohoo-head h2{font-size:clamp(34px,3.6vw,52px)}
#herkenbaar .boohoo-head .eyebrow{margin-bottom:12px}
#herkenbaar .money-viewport{height:var(--mh);width:calc(100%/var(--z));max-width:calc(1280px/var(--z));margin:14px 0 calc(var(--mh)*(var(--z) - 1)) calc((100% - min(100%,1280px))/2);transform:scale(var(--z));transform-origin:0 0}
#herkenbaar .money-timeline{height:var(--mh)}
#herkenbaar .boohoo-sticky{min-height:0}
#herkenbaar .timeline-line{top:calc(var(--mh)/2 + 2px)}
#herkenbaar .money-timeline .money-particle{top:calc(var(--mh)/2 + 5px)}
#herkenbaar .money-timeline .income-ticket{top:calc(var(--mh)/2 - 64px)}
.timeline-spend{overflow:visible}

/* all expense cards hang off the line: top cards grow upward, bottom cards grow downward */
#herkenbaar .money-timeline .timeline-spend{top:auto;height:auto}
#herkenbaar .money-timeline .timeline-spend.cost-top{bottom:calc(var(--mh)/2 + 32px);transform-origin:50% 100%}
#herkenbaar .money-timeline .timeline-spend.cost-bottom{top:calc(var(--mh)/2 + 42px);transform-origin:50% 0}
#herkenbaar .timeline-spend::after{height:var(--gap);z-index:-1}
#herkenbaar .cost-top::after{top:100%}
#herkenbaar .cost-bottom::after{bottom:100%}
#herkenbaar .timeline-spend::before{content:'';position:absolute;left:50%;width:12px;height:12px;margin-left:-6px;border-radius:50%;background:#8853b8;border:2px solid #fff;box-shadow:0 0 0 1px #8853b855;z-index:-1}
#herkenbaar .cost-top::before{top:calc(100% + var(--gap) - 3px)}
#herkenbaar .cost-bottom::before{bottom:calc(100% + var(--gap) - 3px)}

/* fixed costs: small, plain, no photo */
#herkenbaar .money-timeline .timeline-spend.fixed{width:190px;padding:14px 18px}
#herkenbaar .money-timeline .timeline-spend.fixed>span{font-size:17px}
#herkenbaar .money-timeline .timeline-spend.fixed strong{font-size:24px;margin-top:6px}

/* polaroid */
#herkenbaar .money-timeline .timeline-spend.pcard{width:var(--pw);min-width:0;padding:10px 10px 0;background:#fff;border:0;border-radius:3px;color:#2b1b3c;box-shadow:0 16px 30px #3b1d5a26,0 3px 8px #3b1d5a14,0 0 0 1px #3b1d5a0f}
.pc-photo{position:relative;margin:0;aspect-ratio:1;overflow:hidden;background:#eee7f4;border-radius:1px}
.pc-photo img{display:block;width:100%;height:100%;object-fit:cover}
.pc-photo::after{content:'';position:absolute;inset:0;box-shadow:inset 0 0 0 1px #0000000f;pointer-events:none}
#herkenbaar .pc-row{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin:11px 2px 0;font-family:Poppins,Inter,sans-serif}
#herkenbaar .money-timeline .pc-name{display:block;font-size:clamp(12.5px,calc(var(--pw)*.067),15px);font-weight:600;line-height:1.25;letter-spacing:-.01em;white-space:normal}
#herkenbaar .money-timeline .timeline-spend.pcard .pc-amt{display:block;margin:0;font-size:clamp(14px,calc(var(--pw)*.078),17px);font-weight:700;line-height:1.25;white-space:nowrap;letter-spacing:-.02em}
#herkenbaar .pc-cap{margin:3px 2px 0;padding:0 0 13px;font-family:Caveat,"Bradley Hand","Segoe Script",cursive;font-weight:600;font-size:clamp(18px,calc(var(--pw)*.105),23px);line-height:1.1;color:#5b3a82;text-wrap:balance}

/* payoff: declined payment + "Boohoo." (positioned from the line so it follows --mh) */
.money-hole.declined{width:230px;height:auto;top:96px;right:-6px;transform:rotate(-4deg)}
.money-hole.declined .pay-terminal{background:#1d1430;color:#fff;border-radius:22px;padding:20px 18px 18px;display:grid;justify-items:center;gap:4px;text-align:center;box-shadow:0 18px 40px #1d143045;font-family:Poppins,Inter,sans-serif}
.pay-x{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:#ff7a6b;color:#fff;font-size:22px;font-weight:800;margin-bottom:6px}
.money-hole.hit .pay-x{animation:pay-shake .5s 1}
.pay-terminal b{font-size:18px;letter-spacing:-.02em}
.pay-terminal small{font-size:13px;color:#ffb3aa}
.pay-terminal em{font-style:normal;font-size:11.5px;color:#b9aecb;margin-top:6px}
@keyframes pay-shake{0%,100%{transform:translateX(0)}20%,60%{transform:translateX(-6px)}40%,80%{transform:translateX(6px)}}
.hole-question{top:228px;bottom:auto;width:330px;right:-56px;font-size:16px;line-height:1.35;background:transparent}
.hole-question strong{display:inline;font-size:34px;letter-spacing:-.04em;color:var(--purple)}

#herkenbaar .money-timeline .money-hole.declined{top:calc(var(--mh)/2 - 105px)}
#herkenbaar .money-timeline .hole-question{top:calc(var(--mh)/2 + 85px)}
@media(max-width:600px){
#herkenbaar{height:260svh}
#herkenbaar .boohoo-sticky{padding:60px 24px 24px}
#herkenbaar .boohoo-head h2{font-size:34px}
#herkenbaar .money-timeline .timeline-spend.fixed{width:180px;padding:13px 16px}
}
@media(max-height:760px){#herkenbaar .boohoo-sticky{padding-top:74px}#herkenbaar .boohoo-head .eyebrow{display:none}#herkenbaar .boohoo-head h2{font-size:32px}}
@media(prefers-reduced-motion:reduce){#herkenbaar .timeline-spend{transition:none}}
@media(max-width:600px) and (max-height:760px){#herkenbaar .boohoo-sticky{padding-top:90px}}
