/* Single source for card typography. Never add category-specific size/weight overrides. */
:root{--card-display-font:'Bricolage Grotesque',sans-serif;--card-detail-font:'DM Sans',sans-serif;--card-display-size:36px;--card-display-weight:700;--card-body-size:15px;--card-body-weight:600;--card-label-size:9px;--card-label-weight:700}
.flip-card{width:min(100%,320px);max-width:320px;height:448px}
.flip-card .puzzle-words,.flip-card .answer-face>p{font-family:var(--card-display-font);font-size:var(--card-display-size);font-weight:var(--card-display-weight);line-height:1.1;letter-spacing:-.03em;hyphens:none;overflow-wrap:normal;word-break:normal;white-space:normal;text-wrap:wrap}
.flip-card .puzzle-words{color:inherit;padding-top:35px}
.flip-card .answer-face>p{color:inherit;min-height:119px;margin:24px 0 18px}
.flip-card .answer-label{font-family:var(--card-detail-font);font-size:var(--card-label-size);font-weight:var(--card-label-weight);letter-spacing:1.1px;line-height:1.5;color:inherit}
.flip-card .answer-joke{font-family:var(--card-detail-font);font-size:var(--card-body-size);font-weight:var(--card-body-weight);line-height:1.5;letter-spacing:0;color:inherit;border-top:1.5px solid currentColor;padding-top:14px}
.flip-card .puzzle-bottom{font-family:var(--card-detail-font);font-size:8px;font-weight:var(--card-label-weight);line-height:1.4;letter-spacing:.8px;color:inherit}
.flip-card .puzzle-bottom span:first-child,.flip-card .answer-brand{font:inherit;color:inherit}
.flip-card[data-colour="green"]{color:var(--ink)}
.flip-card[data-colour="ink"]{background:var(--ink);color:var(--cream)}
.flip-card[data-colour="blue"]{color:var(--cream)}
.flip-card[data-colour="red"],.flip-card[data-colour="red"].revealed{color:var(--ink)}
/* Decorative marks stay quieter than the text; text within each face uses one ink. */
.flip-card.revealed .sample-mark{color:currentColor}
header .brand-logo img,.footer-logo img{width:154px;height:32px;object-fit:contain}
@media(max-width:700px){:root{--card-display-size:32px}.flip-card{width:min(100%,280px);max-width:280px;height:392px}.flip-card .answer-face>p{min-height:106px}header .brand-logo img,.footer-logo img{width:128px;height:28px}}

.sample-office{display:none}.sample-office img{display:block;width:100%;height:100%;object-fit:contain}.flip-card[data-colour="ink"] .sample-office{display:block}

/* Two distinct faces: category-colour puzzle fronts, cream-white answer backs. */
.flip-card[data-colour].revealed{background:var(--cream);color:var(--ink);border-color:var(--ink)}
.flip-card.revealed .sample-office img{filter:brightness(0)}

/* A solid category band and rule carry colour; large watermarks remain dark. */
.flip-card[data-colour="green"]{--card-category:var(--green)}.flip-card[data-colour="blue"]{--card-category:var(--blue)}.flip-card[data-colour="red"]{--card-category:var(--red)}.flip-card[data-colour="ink"]{--card-category:var(--ink)}
.flip-card[data-colour].revealed:before{content:"";position:absolute;top:0;left:0;right:0;height:12px;background:var(--card-category);border-radius:13px 13px 0 0;pointer-events:none}
.flip-card.revealed .answer-joke{border-top:3px solid var(--card-category)}
.flip-card[data-colour].revealed .sample-mark{color:var(--ink);opacity:.075}

/* Shared geometry from the green interactive master: 14-unit anchors, 12-unit handles. */
.unified-bezier{--bezier-ink:currentColor;--bezier-anchor-fill:var(--cream);--bezier-handle-fill:var(--green)}
.unified-bezier .bezier-curve{fill:none;stroke:var(--bezier-ink);stroke-width:4;stroke-linecap:round}
.unified-bezier .bezier-line{fill:none;stroke:var(--bezier-ink);stroke-width:1.3}
.unified-bezier .bezier-anchor{fill:var(--bezier-anchor-fill);stroke:var(--bezier-ink);stroke-width:3;rx:0}
.unified-bezier .bezier-handle{fill:var(--bezier-handle-fill);stroke:var(--bezier-ink);stroke-width:1.5}
.art-tool .unified-bezier{--bezier-ink:var(--cream);--bezier-anchor-fill:var(--blue)}
.sample-curve{--bezier-anchor-fill:var(--blue)}
.flip-card.revealed .sample-curve{--bezier-anchor-fill:var(--cream);--bezier-handle-fill:var(--ink)}
.people-section .anchor-point .point-visible{stroke-width:3}
.people-section .control-point .point-visible{stroke-width:1.5}
/* Geometry remains constant during interaction; focus is indicated without resizing points. */
.people-section .curve-point:is(:hover,:focus-visible,.is-dragging) .point-visible{stroke:var(--ink)}
.people-section .anchor-point:is(:hover,:focus-visible,.is-dragging) .point-visible{stroke-width:3}
.people-section .control-point:is(:hover,:focus-visible,.is-dragging) .point-visible{stroke-width:1.5}
.people-section .curve-point:focus-visible .point-hit{stroke:var(--cream);stroke-width:1;stroke-dasharray:3 3}
/* All five card identities share the same content frame and footer baseline. */
.flip-card{--card-inset:25px;padding:var(--card-inset)}
.flip-card .sample-mark,.flip-card[data-colour] .sample-mark{top:auto;bottom:64px;right:-18px;width:205px;height:145px;transform:rotate(-13deg);opacity:.09;color:inherit}
.flip-card .puzzle-bottom{position:absolute;left:var(--card-inset);right:var(--card-inset);bottom:var(--card-inset);display:flex;align-items:flex-end;justify-content:space-between}
.flip-card .answer-brand{left:var(--card-inset);bottom:var(--card-inset)}
.flip-card .card-brand-mark{width:34px;height:34px;object-fit:contain}
.flip-card[data-colour="yellow"]{--card-category:#F4D64E;background:#F4D64E;color:var(--ink)}
.flip-card[data-colour="yellow"] .sample-code{display:block}
/* Explicit dots prevent inherited SVG treatments from hollowing out the bubble. */
.boredroom-cat .art-expansion circle{fill:var(--cream);stroke:none;opacity:1}
.category-card .cat-art{height:153px;flex:none;margin:15px 0 6px}
.category-card .cat-top{min-height:24px;align-items:flex-start}
.category-card h3{min-height:74px}
@media(max-width:700px){.flip-card{--card-inset:22px}.flip-card .sample-mark,.flip-card[data-colour] .sample-mark{width:179px;height:127px;bottom:56px;right:-16px}}

/* Avoid short final lines while preserving the approved type and card geometry. */
.flip-card .answer-joke{text-wrap:pretty}
