/* Your pin, as the app draws it (pin-preview.js): a paper map with the
   selected place's badge on it, the places round it, and the card it opens.
   The sizes are the app's own (frontend map/marker/SelectedPlaceBadge and
   PinMarkerFace), so the preview is the pin a student will tap. */

.pp { display: flex; flex-direction: column; }
.pp-frame { position: relative; display: flex; flex-direction: column; flex: 1; margin: 0; }

/* The map: the light still in both themes, printed into the paper. */
.pp-map { position: relative; height: 250px; overflow: hidden; border-radius: 12px; background: #E9E1CF; isolation: isolate; color-scheme: light; }
.pp-ground { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: sepia(.32) saturate(.85) contrast(1.02); }
.pp-wash { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: #F0E6D0; mix-blend-mode: multiply; opacity: .5; }
.pp-map::after { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 38%, transparent 55%, rgba(90,66,30,.18)); }
:root[data-theme="dark"] .pp-map { filter: brightness(.9); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pp-map { filter: brightness(.9); } }

/* The places round it: a solid disc, a white rim, a hairline outside it. */
.pp-dot { position: absolute; z-index: 1; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: var(--pc); box-shadow: 0 0 0 2.5px #FFFFFF, 0 0 0 3.5px rgba(29,31,34,.28), 0 3px 6px rgba(0,0,0,.18); }
.pp-dot::after { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: rgba(255,255,255,.92); }

/* The place: its plate over the badge, the pointer, the spot and its beacon. */
.pp-place { position: absolute; left: 50%; top: 54%; z-index: 2; display: grid; justify-items: center; translate: -50% -100%; }
.pp-flag { margin-bottom: 8px; rotate: -2deg; }
.pp-flag[hidden] { display: none; }
.pp-flag .plate { box-shadow: 0 0 0 2px #FBF8F1, 0 8px 14px -8px rgba(0,0,0,.55); }
.pp-badge { position: relative; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--pc); color: #FFFFFF; box-shadow: inset 0 0 0 3px var(--pc), 0 10px 18px -8px rgba(0,0,0,.45); }
.pp-badge svg { width: 24px; height: 24px; }
.pp-badge.has-logo { background: #FFFFFF; }
.pp-badge.has-logo img { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; }
.pp-pointer { width: 14px; height: 9px; margin-top: -1px; background: var(--pc); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.pp-spot { position: relative; display: grid; place-items: center; width: 8px; height: 8px; margin-top: 6px; translate: 0 50%; }
.pp-spot::before { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: 50%; background: var(--pc); box-shadow: 0 0 0 2px #FFFFFF; }
.pp-spot i { position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; background: var(--pc); opacity: 0; animation: pp-beacon 2.4s cubic-bezier(.2,.6,.3,1) infinite; }
.pp-spot i + i { animation-delay: 1.2s; }
@keyframes pp-beacon { from { transform: scale(.25); opacity: .5; } to { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pp-spot i { animation: none; opacity: .18; transform: none; } .pp-spot i + i { display: none; } }

/* The card it opens, pinned over the foot of the map like the app's sheet. */
.pp-card { position: relative; z-index: 3; margin: -46px 10px 0; --tilt: -.7deg; }
.pp-cover { height: 96px; overflow: hidden; margin: 10px 10px 0; border-radius: 4px; background: #E2D7BF; }
.pp-cover img { width: 100%; height: 100%; object-fit: cover; }
.pp-cover.is-empty { display: grid; place-items: center; }
.pp-cover.is-empty span { display: inline-flex; align-items: center; gap: 7px; color: var(--ink2); font-size: 14.5px; font-weight: 650; }
.pp-body { display: grid; gap: 6px; padding: 12px 16px 16px; }
.pp-name { font-weight: 800; font-size: 20px; letter-spacing: -.02em; line-height: 1.15; overflow-wrap: anywhere; }
.pp-sub { color: var(--ink2); font-size: 15px; }
.pp-live { display: grid; gap: 4px; }
.pp-status { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; font-size: 15.5px; }
.pp-status b { font-weight: 800; }
.pp-status span:not(.sdot) { color: var(--ink2); }
.pp-status.is-idle { color: var(--ink3); font-weight: 600; }
.pp-status .sdot { box-shadow: none; }
.pp-note { padding: 8px 11px; border-radius: 8px; background: rgba(230,203,90,.32); font-size: 15px; color: var(--ink); overflow-wrap: anywhere; }
.pp-stars { color: var(--ink2); font-size: 14.5px; }
.pp-stars span { color: #C8901A; letter-spacing: 1px; }
.pp-menu { display: grid; gap: 4px; padding-top: 4px; }
.pp-k { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); }
.pp-menu p { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.pp-menu p span:last-child { color: var(--ink2); font-variant-numeric: tabular-nums; }
.pp-menu p.is-out span:first-child { text-decoration: line-through; color: var(--ink3); }
.pp-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.pp-acts span { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; border-radius: 99px; box-shadow: inset 0 0 0 1.5px #1D1F22; font-size: 15px; font-weight: 700; }
.pp-acts .is-go { background: #137A48; color: #FBF8F1; box-shadow: none; }
.pp-foot { margin-top: 14px; color: var(--ink3); font-size: 13px; line-height: 1.45; }

/* Beside Your listing: the same card, its column's width. */
.ls-preview { box-shadow: none; background: transparent; padding: 0; }
.ls-preview .pp-map { height: 220px; }

/*
 * Today's stage on the place's own streets (pinStageHtml with a point): the
 * Mapbox still in the printed map's place and torn to its edge (the print's
 * own alpha is the mask), the light style in both themes washed into the
 * paper like every map in Paste-up. The still is half as big again as the
 * map and centred on the place, so it can slide to wherever the board puts
 * the marker (--px, --py) and the dot lands on the very spot.
 */
.xstage .vp-streets { position: absolute; right: -2%; top: 0; width: 92%; aspect-ratio: 1; rotate: 1.6deg; --px: 48.7%; --py: 53.6%; color-scheme: light; }
.vp-streets .vp-print { position: absolute; inset: 0; filter: drop-shadow(0 18px 24px rgba(40,28,10,.28)); }
.vp-streets .vp-cut { position: absolute; inset: 0; overflow: hidden; background: #EDE3CC; -webkit-mask: url(/site/photos/cut-map-1798.webp) center / 100% 100% no-repeat; mask: url(/site/photos/cut-map-1798.webp) center / 100% 100% no-repeat; }
.vp-streets .vp-ground { position: absolute; left: calc(var(--px) - 75%); top: calc(var(--py) - 75%); width: 150%; height: 150%; max-width: none; object-fit: cover; filter: grayscale(1) brightness(.674) contrast(3.22) sepia(.3); }
.vp-streets .vp-wash { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at var(--px) var(--py), transparent 45%, rgba(150,112,48,.2)), rgba(240,230,208,.5); mix-blend-mode: multiply; }
.vp-streets .xmarker { left: var(--px); top: var(--py); translate: -50% calc(-100% + 15px); }
.vp-streets .vp-credit { position: absolute; right: 6%; bottom: 5%; z-index: 1; padding: 2px 7px 3px; border-radius: 3px; background: rgba(251,248,241,.9); font-size: 13.5px; line-height: 1.3; text-align: right; color: #4A4842; }
@media (max-width: 760px) {
  .xstage .vp-streets { right: 0; width: 100%; --px: 57%; --py: 46%; }
  .vp-streets .vp-credit { right: 4%; bottom: auto; top: 50%; }
}
