/* Colours follow the build's summer palette (css/site.css :root, 3 Dec 2026 night): paper edges in --cream, shadows in the
   new ink, tape in --sun at full strength. No washed mid-tones here. */
/* Stickers: colour behind the feature cutouts, and any decals. Owned by the Pictures lane (handed over 3 Dec).
   The build sets --tint, --cw (cutout width) and --ch (cutout height) on .feat; html[data-look] picks the look. */
.feat .cut::before{content:"";position:absolute;left:50%;translate:-50% 0;pointer-events:none;background:var(--tint,transparent)}
[data-look="disc"] .feat .cut::before{top:calc(var(--ch) * .02);width:max(calc(var(--cw) * .84),300px);aspect-ratio:1;border-radius:50%}
[data-look="arch"] .feat .cut::before{top:calc(var(--ch) * .07);bottom:0;width:max(calc(var(--cw) * 1.12),340px);border-radius:999px 999px 0 0}
[data-look="aura"] .feat .cut::before{top:calc(var(--ch) * -.12);width:max(calc(var(--cw) * 1.7),560px);height:calc(var(--ch) * 1.05);background:radial-gradient(closest-side,var(--tint) 0,var(--tint) 30%,transparent 100%);opacity:.9}
[data-look="none"] .feat .cut::before{content:none}

/* Decals: one spare sticker per place page, set by QD_MEDIA.stick in js/media.js (the build emits img.decal before the pager).
   Uniform look: a hard collage cut with a white paper edge, tipped a few degrees, overlapping the foot of the page. */
.decal{display:block;position:relative;z-index:2;width:min(var(--dw,220px),34vw);height:auto;margin:calc(var(--up,60px) * -1) clamp(20px,7vw,110px) clamp(10px,2vw,28px) auto;rotate:var(--tip,4deg);pointer-events:none;filter:drop-shadow(0 1px 2px rgba(19,42,62,.28))}
.decal[data-decal="lighthouse"]{--dw:170px;--tip:-4deg;--up:40px}
.decal[data-decal="huashilou"]{--dw:300px;--tip:3deg;--up:70px}
.decal[data-decal="taiqing-gate"]{--dw:280px;--tip:-3deg;--up:60px}
.decal[data-decal="governor-house"]{--dw:290px;--tip:4deg;--up:50px}
.decal[data-decal="beer-bag"]{--dw:190px;--tip:7deg;--up:90px}
.decal[data-decal="mackerel"]{--dw:340px;--tip:-6deg;--up:40px}

/* Default look since 3 Dec 2026 (Andrew's pick): a torn scrap of the 1900s Tsingtau map behind the cutout.
   --tint carries url(scrap) from QD_MEDIA.tint; every scrap is 1200x1072. The flat-colour looks above need a colour in --tint. */
[data-look="scrap"] .feat .cut::before{top:calc(var(--ch) * -.02);width:max(calc(var(--cw) * 1.02),min(400px,84vw));aspect-ratio:1200/1072;background:var(--tint) center/100% 100% no-repeat;rotate:-3deg;filter:drop-shadow(0 1px 2px rgba(19,42,62,.25))}

/* Side photographs on a feature page, joined to the collage (Andrew, 3 Dec 2026 night): the same white paper edge and
   hairline shadow as his cutouts, tipped a little each way, one strip of paper tape. Markup from the build:
   figure.side-pic > div.ph > img, then figcaption. The frame, tilt and tape sit on .ph, so the credit stays level; the
   photograph is not recropped. On all three feature pages since 3 Dec 2026 night (Andrew: "Yes, all three"); tried on 栈桥 first. */
.feat .side-pic .ph{position:relative;rotate:2deg;border:7px solid var(--cream,#fffdf7);filter:drop-shadow(0 1px 2px rgba(19,42,62,.28))}
.feat .side-pic:nth-child(2) .ph{rotate:-2.5deg}
.feat .side-pic .ph img{display:block;border:0}
/* The tape is a photographed strip of crepe tape (QD_MEDIA.tape; Andrew, 3 Dec: "find a real masking tape png"), a different
   piece and angle on each photograph. Sizes keep each file's own proportions (431, 382 and 284 wide by 147). */
.feat .side-pic .ph::before{content:"";position:absolute;z-index:1;top:-19px;left:50%;width:94px;height:32px;translate:-50% 0;rotate:-4deg;background:url(../img/places/decals/tape-1.webp) center/100% 100% no-repeat;filter:drop-shadow(0 1px 1px rgba(19,42,62,.18))}
.feat .side-pic:nth-child(2) .ph::before{left:24%;rotate:5deg;width:68px;height:35px;top:-20px;background-image:url(../img/places/decals/tape-3.webp)}
.feat .side-pic:nth-child(3) .ph::before{left:68%;rotate:-7deg;width:86px;height:33px;background-image:url(../img/places/decals/tape-2.webp)}
.feat .side-pic figcaption{padding-top:12px}

/* Phones: the decal sits below the page's last block instead of climbing over it (it was covering the photo credits on
   啤酒博物馆 and the corner of the vocabulary card), and is a little smaller. */
@media (max-width:820px){
  .feat .side-pic .ph::before{scale:.78}
  .decal[data-decal]{--up:0px;width:min(calc(var(--dw,220px) * .62),38vw);margin-top:14px}
}
