/* Review deck and colour fan masters (moved from style.css 2026-12-01): shared by the home page and the article pages. */
/* Home review deck (#google-reviews): server-rendered scroll-snap row; loop-carousel.client.js adds .is-deck for the 3D arc. */
.review-deck-section{--rs:.8;--review-card-w:calc(16.5rem * var(--rs));--review-photo-h:var(--review-card-w);--review-body-h:calc(16.5rem * var(--rs));--review-card-h:calc(var(--review-photo-h) + var(--review-body-h));overflow:hidden;padding-top:calc(var(--section-pad) - 24px);padding-bottom:calc(var(--section-pad) - 24px)}

.review-deck{position:relative;height:calc(var(--review-card-h) + 3rem);outline:none}
.review-deck:focus-visible{outline:var(--focus-width) solid var(--brand-orange);outline-offset:-2px}
.review-deck-track{display:flex;gap:16px;height:100%;--review-inset:calc(max(0px,(100% - 1280px) / 2) + min(6vw,76.8px));padding:1.5rem var(--review-inset);box-sizing:border-box;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding-inline:var(--review-inset);overscroll-behavior-x:contain}
.review-card{flex:0 0 var(--review-card-w);width:var(--review-card-w);height:var(--review-card-h);box-sizing:border-box;display:flex;flex-direction:column;scroll-snap-align:start;border-radius:6px;overflow:hidden;background:var(--review-tint,#f7e4d6);color:var(--ink);box-shadow:0 18px 40px -24px rgba(41,41,36,.45),0 0 0 1px rgba(41,41,36,.06)}
.review-card:nth-child(5n+2){--review-tint:#efe8d6}
.review-card:nth-child(5n+3){--review-tint:#e3e9dc}
.review-card:nth-child(5n+4){--review-tint:#f3e0de}
.review-card:nth-child(5n){--review-tint:#e6e3ee}
.review-card-photo{flex:0 0 var(--review-photo-h);height:var(--review-photo-h);background:var(--cream)}
.review-card-photo img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 40%;user-select:none;-webkit-user-drag:none}
/* The whole card scales as one unit: width/photo by --rs, the text block by zoom (same proportions as the approved card). */
.review-card-body{zoom:var(--rs,1);flex:1;min-height:0;display:flex;flex-direction:column;gap:8px;padding:16px 18px 18px}
.review-card-stars{margin:0;color:var(--action);letter-spacing:2px;font-size:var(--type-small-size);line-height:1.2}
.review-card-text{margin:0}
.review-card-text p{margin:0;font:var(--weight-body) .9375rem/1.55 var(--font-body);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:5;line-clamp:5;overflow:hidden;overflow-wrap:break-word}
.review-card-link{align-self:flex-start;font-size:var(--type-meta-size);line-height:var(--type-meta-leading);color:var(--ink);text-decoration:underline;text-underline-offset:3px;-webkit-user-drag:none}
.review-card-link:hover{color:var(--action-hover)}
.review-card-link:focus-visible{outline:var(--focus-width) solid var(--brand-orange);outline-offset:var(--focus-offset)}
.review-card-meta{margin:auto 0 0;display:flex;flex-direction:column;font-size:var(--type-meta-size);line-height:var(--type-meta-leading);color:var(--muted)}
.review-card-meta strong{font:var(--weight-label) var(--type-small-size)/1.4 var(--font-body);color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.review-card--text .review-card-body{justify-content:center;padding:28px 24px}
.review-card--text .review-card-text p{font:var(--weight-heading) var(--type-card-size)/var(--type-card-leading) var(--font-heading);-webkit-line-clamp:7;line-clamp:7}
.review-deck.is-deck{perspective:1400px;perspective-origin:50% 45%;touch-action:pan-y;cursor:grab;user-select:none}
.review-deck.is-deck.is-dragging{cursor:grabbing}
.review-deck.is-deck .review-deck-track{position:absolute;inset:0;display:block;padding:0;overflow:visible;transform-style:preserve-3d}
.review-deck.is-deck .review-card{position:absolute;left:50%;top:1.5rem;will-change:transform;backface-visibility:hidden}
.review-deck.is-deck .review-card::after{content:'';position:absolute;inset:0;background:var(--paper);opacity:var(--review-dim,0);pointer-events:none;border-radius:inherit}
.review-deck.is-deck .review-card:not(.is-active){cursor:pointer}
.review-deck-dots{display:flex;justify-content:center;gap:2px;margin-top:8px}
.review-deck-dots[hidden]{display:none}
.review-deck-dots button{width:24px;height:24px;padding:0;border:0;background:none;cursor:pointer;display:grid;place-items:center}
.review-deck-dots button::before{content:'';width:7px;height:7px;border-radius:4px;background:var(--line);transition:width .3s,background-color .3s}
.review-deck-dots button[aria-current]::before{width:20px;background:var(--brand-orange)}
/* Phone: the original card at ~70% of a 390px screen (scale 1.03), neighbours peek both sides. */
@media(max-width:760px){.review-deck-section{--rs:1.03;--review-card-w:min(calc(16.5rem * var(--rs)),72vw);--review-body-h:calc(17rem * var(--rs))}}

/* Home hair-colour fan (#hair-colour): server-rendered scroll-snap row; loop-carousel.client.js adds .is-fan for the dealt arc. */
.colour-fan-section{--shade-w:9rem;--shade-h:15rem;overflow:hidden}
.colour-fan-head{text-align:center;margin-bottom:28px}
.colour-fan-head .eyebrow{justify-content:center}
.colour-fan-head h2{margin:0}
.colour-fan{position:relative;height:25rem;outline:none}
.colour-fan:focus-visible{outline:var(--focus-width) solid var(--brand-orange);outline-offset:-2px}
.colour-fan-track{display:flex;align-items:center;gap:14px;height:100%;box-sizing:border-box;--fan-inset:calc(max(0px,(100% - 1280px) / 2) + min(6vw,76.8px));padding:0 var(--fan-inset);overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding-inline:var(--fan-inset);overscroll-behavior-x:contain}
.colour-shade{flex:0 0 var(--shade-w);width:var(--shade-w);height:var(--shade-h);box-sizing:border-box;padding:16px 14px;border-radius:18px;background:linear-gradient(to bottom,var(--shade-root),var(--shade-end));box-shadow:0 0 0 1px rgba(255,255,255,.14) inset,0 22px 36px -20px rgba(41,41,36,.65);scroll-snap-align:start;position:relative}
.colour-shade>span{display:block;font-size:var(--type-small-size);line-height:1.3;font-weight:var(--weight-label);letter-spacing:.02em;color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.4)}
.colour-shade>span{position:relative;z-index:1}
/* Swatch photo cards: cream photo fills the card, dark label, hairline border to separate cream from the cream section. */
.colour-shade--photo{overflow:hidden;background:#f6f3ee;box-shadow:0 0 0 1px rgba(41,41,36,.14),0 22px 36px -22px rgba(41,41,36,.45)}
.colour-shade-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 45%;user-select:none;-webkit-user-drag:none;pointer-events:none}
.colour-shade--photo>span{color:var(--ink);text-shadow:none}
.colour-fan.is-fan{touch-action:pan-y;cursor:grab;user-select:none}
.colour-fan.is-fan.is-dragging{cursor:grabbing}
.colour-fan.is-fan .colour-fan-track{position:absolute;inset:0;display:block;padding:0;overflow:visible}
.colour-fan.is-fan .colour-shade{position:absolute;left:50%;bottom:6.5rem;will-change:transform}
.colour-fan.is-fan .colour-shade::after{content:'';position:absolute;inset:0;border-radius:inherit;background:var(--paper);opacity:var(--shade-dim,0);pointer-events:none}
.colour-fan.is-fan .colour-shade:not(.is-active){cursor:pointer}
.colour-fan-dots{display:flex;justify-content:center;flex-wrap:wrap;gap:0;margin-top:4px;padding:0 6%}
.colour-fan-dots[hidden]{display:none}
.colour-fan-dots button{width:24px;height:44px;padding:0;border:0;background:none;cursor:pointer;display:grid;place-items:center}
.colour-fan-dots button::before{content:'';width:6px;height:6px;border-radius:3px;background:var(--line);transition:width .3s,background-color .3s}
.colour-fan-dots button[aria-current]::before{width:16px;background:var(--brand-orange)}
.colour-fan-cta{display:flex;justify-content:center;margin-top:28px}
@media(max-width:760px){.colour-fan-section{--shade-w:7rem;--shade-h:11.5rem}.colour-fan{height:19.5rem}.colour-fan.is-fan .colour-shade{bottom:5rem}.colour-fan-dots button{width:18px}}
@media(prefers-reduced-motion:reduce){.colour-fan-dots button::before{transition:none}}

/* The decks' cards carry z-index up to 100 while they animate; isolating each deck keeps them under the floating header (owner 2026-12-01). */
.review-deck,.colour-fan{isolation:isolate}
