/* Go Roam's social post (post.js, GRPost.card): the app's feed row as one card. Type and colour are landing.css's tokens;
   nothing here types a duration or a curve. */
.post{display:block;width:100%;text-align:left;color:var(--ink);font-family:var(--sans);font-size:var(--t-14);line-height:1.4}
/* the head: the face beside the name and the time, the walk's line under both, so a long name never pushes it to two lines */
.post-h{display:grid;grid-template-columns:auto minmax(0,1fr) auto;column-gap:10px;row-gap:1px;align-items:baseline}
.post-h .post-face{grid-row:1 / span 2;align-self:start}
.post-h .post-sub{grid-column:2 / span 2}
.post-face{flex:none;position:relative;width:40px;height:40px;border-radius:50%;overflow:hidden;background:var(--tint,var(--land4))}
.post-face img{display:block;width:100%;height:100%;object-fit:cover}
.post-face::after{content:"";position:absolute;inset:0;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(10,58,56,.28)}
.post-who{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px;padding-top:1px}
.post .post-n{display:block;font-family:var(--sans);color:var(--ink);font-weight:700;font-size:var(--t-16);line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.post .post-n.you{color:var(--teal)}
.post-sub{color:var(--muted);line-height:1.35}
.post-sub .num{color:var(--ink);font-weight:600}
.post-sub .post-stop{display:inline-grid;place-items:center;width:18px;height:18px;margin:0 1px;border-radius:50%;background:var(--ink);color:var(--paper);font-family:var(--serif);font-style:normal;font-weight:600;font-size:11px;line-height:1;vertical-align:-3px}
.post-t{flex:none;color:var(--muted);white-space:nowrap;padding-top:2px}
/* the walker's photograph: a paper-toned slot of fixed shape, the print developing in once decoded */
.post-ph{position:relative;margin:10px 0 0;aspect-ratio:3/2;border-radius:6px;overflow:hidden;background:var(--land4)}
.post-ph img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity var(--m-develop) var(--ease)}
.post-ph img.in{opacity:1}
.post-ph img.now{transition:none}
.post-x{margin:10px 0 0;font-family:var(--serif);font-style:italic;font-size:var(--t-16);line-height:1.35;text-wrap:pretty}
.post-f{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px}
/* the crew's cheers, the app's pill at a size that reads as a count, not a key (it is a preview: nothing here is pressed) */
.post-cheer{display:inline-flex;align-items:center;gap:4px;height:28px;padding:0 11px 0 8px;border-radius:14px;box-shadow:inset 0 0 0 1px var(--rule-strong);color:var(--teal);font-weight:700}
.post-cheer.on{background:var(--teal);box-shadow:none;color:#fff}
.post-hand{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.post-sample{font-family:var(--serif);font-size:var(--t-14);color:var(--muted)}

/* compact: the back of the hero's photograph, 196 px square. Name and time stack; no photograph, no route line */
.post.compact{display:flex;flex-direction:column;height:100%;padding:12px 12px 11px}
.post.compact .post-face{width:32px;height:32px}
.post.compact .post-h{column-gap:8px;align-items:start}
.post.compact .post-n{font-size:var(--t-14)}
.post.compact .post-who{gap:0}
.post.compact .post-t{padding:0}
.post.compact .post-x{margin-top:8px;font-size:var(--t-14);line-height:1.38}
.post.compact .post-f{margin-top:auto}
.post.compact .post-cheer{height:26px}

/* in the one hover card (#tip): a post is a wider card with its own padding */
.tip.post{max-width:none;width:min(320px,calc(100vw - 24px))}
.tip.post .tip-in{padding:12px 14px 12px}
.tip.post .post-ph{aspect-ratio:2/1;max-height:var(--phmax,none)}   /* a wider print in the hover card: a shorter card covers less of the crew around it */
.tip-post{display:none}
.tip.post .tip-post{display:block}
.tip.post .tip-in > b,.tip.post .tip-s,.tip.post .tip-cap{display:none}

/* ---------- the hero's jacaranda turns over to Ayesha's post (landing.js, the flip) ----------
   #fig's own box never changes (the leader reads it every frame): only .turn, inside it, rotates, on the compositor. */
.flipbox{position:relative;width:196px;height:196px;perspective:900px}
.turn{position:relative;width:100%;height:100%;transform-style:preserve-3d;transition:transform var(--m-flip) var(--ease)}
.fig.flipped .turn{transform:rotateY(180deg)}
.face{position:absolute;inset:0;margin:0;padding:0;border:0;border-radius:3px;-webkit-backface-visibility:hidden;backface-visibility:hidden}
/* the photograph's slot is paper-toned before its bytes arrive; the print develops in once decoded, its shadow with it */
.face.front{display:block;background:var(--paper);box-shadow:inset 0 0 0 1px var(--rule-strong);background-image:repeating-linear-gradient(135deg,transparent 0 7px,rgba(10,58,56,.07) 7px 8px);cursor:pointer;font:inherit;color:inherit}
.face.front img{display:block;width:196px;height:196px;object-fit:cover;border-radius:3px;box-shadow:0 18px 30px -18px rgba(10,58,56,.6);opacity:0;transition:opacity var(--m-develop) var(--ease)}
.fig.loaded .face.front img{opacity:1}
/* the back is also hidden outright while the photograph faces out, and shown from the moment it turns: a renderer that
   flattens 3D (no compositing, as Playwright's WebKit) would otherwise draw it mirrored over the photograph at rest */
.face.back{visibility:hidden;transition:visibility 0s linear var(--m-flip)}
.fig.flipped .face.back{visibility:visible;transition:visibility 0s}
.face.back{background:var(--paper);transform:rotateY(180deg);box-shadow:inset 0 0 0 1px var(--rule),0 18px 30px -18px rgba(10,58,56,.6);overflow:hidden}
.flipbox:has(.front:focus-visible){outline:2px solid var(--teal);outline-offset:4px;border-radius:4px}
.face.front:focus-visible{outline:none}

@media (prefers-reduced-motion:reduce){
  /* no turn: the back crossfades over the front where it stands */
  .fig .turn,.fig.flipped .turn{transform:none}
  .face.back{transform:none;opacity:0;visibility:hidden;transition:opacity var(--m-state) var(--ease),visibility 0s linear var(--m-state)!important}
  .fig.flipped .face.back{opacity:1;visibility:visible;transition:opacity var(--m-state) var(--ease),visibility 0s!important}
  .fig.loaded .face.front img{transition:none!important}
}

/* ---------- Fig. 4's points (landing.js, FIGHIT): transparent hit shapes over each named place and numbered mark ----------
   While a point's card shows, its words and mark are inked teal, so the card and the place it pictures read as one */
.fig4 .fhit *{fill:transparent;stroke:none;pointer-events:all}
.fig4 .fhit g{outline:none}
.fig4 .fhit g:focus-visible > *{stroke:var(--teal);stroke-width:1.6;stroke-dasharray:3 2}   /* the keyboard's ring: the point's own shape, drawn in teal */
.fig4 text.hot{fill:var(--teal);transition:fill var(--m-hover) var(--ease)}
.fig4 text.f-pl,.fig4 text.f-wa,.fig4 text.f-key{transition:fill var(--m-hover) var(--ease)}
.fig4 .fk.hot circle{stroke:var(--teal);stroke-width:2.2}
.fig4 .fk.hot text{fill:var(--teal)}
@media (pointer:coarse){ .fig4 .fhit *{cursor:pointer} }   /* WebKit on a phone sends a tap's click only to what looks clickable */

/* row: a phone's short post (GRPost.card { row }), so it stands in the free band under the crew's caption and covers no face,
   name, stop or words: head on two lines with the cheers at its right, a square print beside the walker's line */
.post.row .post-h{grid-template-columns:auto minmax(0,1fr) auto;align-items:center}
.post.row .post-face{width:32px;height:32px;grid-row:auto}
.post.row .post-who{gap:0}
.post.row .post-sub{font-size:var(--t-14);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.post.row .post-t{padding:0;display:inline}
.post.row .post-b{display:flex;gap:12px;margin-top:8px;align-items:flex-start}
.post.row .post-ph{flex:none;width:60px;margin:0;aspect-ratio:1;border-radius:4px}
.post.row .post-w{flex:1;min-width:0;display:flex;flex-direction:column}
.post.row .post-x{margin:0;font-size:var(--t-14);line-height:1.3;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.post.row .post-sample{margin-top:2px;line-height:1.3}
.post.row .post-cheer{height:26px}
.tip.post.rowc .tip-in{padding:10px 12px 10px}
.ov .cw.picked .av-rim{stroke:var(--teal);stroke-width:3;transition:stroke-width var(--m-state) var(--ease)}
.tip.post.rowc{width:calc(100vw - 24px)}
/* the last resort, a screen with no free room: the post as a sheet at the foot, rising 8 px as it fades in */
.tip.sheet{width:calc(100vw - 24px)}
.tip.sheet .tip-in{transform:translateY(8px);box-shadow:0 -1px 0 var(--rule),0 -14px 32px -18px rgba(10,58,56,.45)}
.tip.sheet.on .tip-in{transform:none}


/* a region's name across the land print's moving edge fades out until it stands wholly on or off the print (landing.js, labels) */
.ov .lb.range{transition:opacity var(--m-state) var(--ease)}
.ov .lb.range.cut{opacity:0!important}
