/* Generated from shared/atlasCards by `npm run build:atlas-cards`. Do not edit here: edit the source and rebuild. */
/* The postcard, the sealed mailbox and the ribbon, as MapCall draws them — the one source for every screen that shows them
 * (MapCall, the Waymark waypoint page, Mongdor Run). Edit HERE, then `npm run build:atlas-cards`: MapCall loads the copy at
 * mapcall/public/atlas-cards.css; the web app imports this file. Outside a MapCall dialog, wrap the cards in `.atlas-shared`.
 * Colours are the shared tokens; the postcard's paper, stamp and postmark are the card's own and stay the same in the dark. */

.atlas-ribbon-mark .pole { stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; opacity: .7; fill: none; }
.atlas-ribbon-mark .flag { fill: none; stroke: var(--muted-ink, hsl(var(--muted-foreground))); stroke-width: 1.3; stroke-linejoin: round; stroke-dasharray: 2.2 1.8; }
.atlas-ribbon-mark .glyph { fill: none; stroke: var(--paper, hsl(var(--background))); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.atlas-ribbon-mark[data-color="green"] .flag { fill: hsl(var(--hl-opp, 163 94% 24%)); stroke: hsl(var(--hl-opp, 163 94% 24%)); stroke-dasharray: none; }
.atlas-ribbon-mark[data-color="yellow"] .flag { fill: hsl(var(--warning, 26 90% 32%)); stroke: hsl(var(--warning, 26 90% 32%)); stroke-dasharray: none; }
.atlas-ribbon-mark[data-color="red"] .flag { fill: hsl(var(--hl-risk, 343 80% 35%)); stroke: hsl(var(--hl-risk, 343 80% 35%)); stroke-dasharray: none; }
.atlas-ribbon-mark[data-fading="true"] { opacity: .6; }
.atlas-ribbon-mark[data-fading="true"] .flag { stroke-dasharray: 2.2 1.8; }

.atlas-photo { width: 100%; height: auto; max-height: 320px; object-fit: cover; border-radius: 10px; background: hsl(var(--border)); }

/* ---- Ribbon = a strip of cloth tied on the trail; mailbox = a post box by the road. One shape per thing, everywhere. ---- */
.atlas-ribbon-mark .pole { display: none; }
.atlas-ribbon-mark .knot, .atlas-ribbon-mark .flag { fill: var(--muted-ink, hsl(var(--muted-foreground))); stroke: none; stroke-dasharray: none; }
.atlas-ribbon-mark[data-color="green"] .knot, .atlas-ribbon-mark[data-color="green"] .flag { fill: hsl(var(--hl-opp, 163 94% 24%)); }
.atlas-ribbon-mark[data-color="yellow"] .knot, .atlas-ribbon-mark[data-color="yellow"] .flag { fill: hsl(var(--warning, 26 90% 32%)); }
.atlas-ribbon-mark[data-color="red"] .knot, .atlas-ribbon-mark[data-color="red"] .flag { fill: hsl(var(--hl-risk, 343 80% 35%)); }
.atlas-ribbon-mark .glyph { stroke: #fff; stroke-width: 1.9; }
.atlas-ribbon-mark[data-fading="true"] { opacity: .55; }
.atlas-ribbon-mark[data-fading="true"] .flag { stroke: currentColor; stroke-width: 1; stroke-dasharray: 2 1.6; }
.atlas-mailbox-mark .body { fill: currentColor; }
.atlas-mailbox-mark .slot { stroke: #fff; stroke-width: 1.5; stroke-linecap: round; fill: none; }
.atlas-mailbox-mark .staff { stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round; }
.atlas-mailbox-mark .flagup { fill: #c0392b; }

/* Pin screen: the state is the biggest thing; the one strong button is the one the person most likely wants. */
.atlas-state { display: flex; align-items: center; gap: 12px; }
.atlas-state-mark { width: 44px; height: 44px; flex: none; }
.atlas-state strong { display: block; font-size: 26px; line-height: 1.1; }
.atlas-state[data-color="red"] strong { color: hsl(var(--hl-risk, 343 80% 35%)); }
.atlas-state[data-color="yellow"] strong { color: hsl(var(--warning, 26 90% 32%)); }
.atlas-state[data-color="green"] strong { color: hsl(var(--hl-opp, 163 94% 24%)); }
.atlas-state span { color: var(--muted-ink, hsl(var(--muted-foreground))); font-size: 13px; }

.atlas-flip-stage { display: grid; perspective: 900px; margin: 12px 0; }
:is(dialog.atlas-dialog, .atlas-shared) .atlas-flip { position: relative; margin: 0; padding: 0; border: 0; background: none; color: #1d2747; aspect-ratio: 4 / 5; max-height: 56vh; max-width: calc(56vh * 4 / 5); justify-self: center; width: 100%; }
.atlas-face { position: absolute; inset: 0; border-radius: 12px; background: #fff; box-shadow: 0 16px 34px -14px rgb(0 0 0 / .65); backface-visibility: hidden; transition: transform .7s cubic-bezier(.3, .8, .3, 1); display: flex; flex-direction: column; gap: 10px; padding: 18px; text-align: left; overflow: hidden; }
.atlas-front { padding: 0; background: linear-gradient(#a9cdea, #e0c996 62%, #5e4f33); }
/* The front is the 4:5 stamp card a postcard is written as, shown whole. An older card of another shape is never cut:
   it sits whole on the card's paper. */
.atlas-front img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: contain; }
.atlas-front:has(img) { background: #fffdf8; }
.atlas-back { transform: rotateY(180deg); background: #fffdf8; }
.atlas-flip.turned .atlas-front { transform: rotateY(-180deg); }
.atlas-flip.turned .atlas-back { transform: rotateY(0); }
@media (prefers-reduced-motion: reduce) { .atlas-face { transition: none; } }

.atlas-back { padding-bottom: 30px; }

/* the state: a small coloured tag; danger alone is allowed to be big */
.atlas-state { flex-wrap: wrap; gap: 10px; }
.atlas-state-pill { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px 0 8px; border-radius: 15px; background: hsl(var(--hl-opp, 163 94% 24%) / .14); }
.atlas-state[data-color="yellow"] .atlas-state-pill { background: hsl(var(--warning, 26 90% 32%) / .14); }
.atlas-state[data-color="red"] .atlas-state-pill { background: hsl(var(--hl-risk, 343 80% 35%) / .14); height: 40px; padding: 0 16px 0 10px; border-radius: 20px; }
.atlas-state-pill svg { width: 18px; height: 18px; }
.atlas-state .atlas-state-pill strong { display: inline; font-size: 14.5px; font-weight: 700; line-height: 1; }
.atlas-state[data-color="red"] .atlas-state-pill strong { font-size: 18px; }
.atlas-state > span:not(.atlas-state-pill) { color: var(--muted-ink, hsl(var(--muted-foreground))); font-size: 13.5px; }

/* what a person wrote is the biggest thing on the card */
.atlas-quote { margin: 0; padding: 16px 16px 14px; border-radius: 16px; background: hsl(var(--muted)); }
.atlas-quote blockquote { margin: 0; font-size: 19px; line-height: 1.45; font-weight: 600; letter-spacing: -.01em; overflow-wrap: anywhere; }
.atlas-quote blockquote::before { content: "“"; } .atlas-quote blockquote::after { content: "”"; }
.atlas-quote figcaption { font-size: 13px; font-weight: 600; color: var(--muted-ink, hsl(var(--muted-foreground))); }
.atlas-quote blockquote + figcaption { margin-top: 10px; }

/* the video: a picture of it with a play mark */
.atlas-video { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; background: hsl(var(--muted)); color: inherit; text-decoration: none; min-height: 56px; }
.atlas-video-thumb { position: relative; width: 96px; aspect-ratio: 16 / 9; flex: none; border-radius: 9px; overflow: hidden; background: #1b1f18; }
.atlas-video-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.atlas-video-play { position: absolute; inset: 0; margin: auto; width: 28px; height: 28px; border-radius: 50%; background: rgb(0 0 0 / .6); }
.atlas-video-play::after { content: ""; position: absolute; left: 11px; top: 8px; width: 9px; height: 12px; background: #fff; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.atlas-video-words { display: grid; gap: 2px; min-width: 0; }
.atlas-video-words strong { font-size: 14.5px; }
.atlas-video-words small { font-size: 12.5px; color: var(--muted-ink, hsl(var(--muted-foreground))); }

/* my own ribbon, just tied */
.atlas-mine { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: hsl(var(--hl-opp, 163 94% 24%) / .12); border: 1px solid hsl(var(--hl-opp, 163 94% 24%) / .3); }
.atlas-mine[data-color="yellow"] { background: hsl(var(--warning, 26 90% 32%) / .12); border-color: hsl(var(--warning, 26 90% 32%) / .3); }
.atlas-mine[data-color="red"] { background: hsl(var(--hl-risk, 343 80% 35%) / .12); border-color: hsl(var(--hl-risk, 343 80% 35%) / .3); }
.atlas-mine > svg { width: 30px; height: 30px; flex: none; }
.atlas-mine > div { flex: 1; min-width: 0; }
.atlas-mine strong { display: block; font-size: 15.5px; }
.atlas-mine small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted-ink, hsl(var(--muted-foreground))); }
.atlas-fade { display: flex; gap: 3px; margin-top: 8px; }
.atlas-fade i { flex: 1; height: 4px; border-radius: 2px; background: hsl(var(--border)); }
.atlas-fade i.on { background: hsl(var(--hl-opp, 163 94% 24%)); }
.atlas-mine[data-color="yellow"] .atlas-fade i.on { background: hsl(var(--warning, 26 90% 32%)); }
.atlas-mine[data-color="red"] .atlas-fade i.on { background: hsl(var(--hl-risk, 343 80% 35%)); }

/* the mailbox: postcards face up on their written side */
.atlas-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
:is(dialog.atlas-dialog, .atlas-shared) .atlas-cardbutton { position: relative; display: block; width: 100%; margin: 0; padding: 0; border: 0; background: none; color: inherit; }
.atlas-cardback { position: relative; display: block; aspect-ratio: 3 / 2; border-radius: 8px; background: #fffdf8; box-shadow: 0 8px 18px -10px rgb(0 0 0 / .6); overflow: hidden; text-align: left; }
.atlas-cardback::before { content: ""; position: absolute; left: 52%; top: 14%; bottom: 14%; width: 1px; background: #ddd6c6; }
.atlas-cardback-stamp { position: absolute; right: 8%; top: 10%; width: 24px; height: 29px; box-sizing: border-box; padding: 4px; background: linear-gradient(#a9cdea, #e0c996 60%, #6b7a4f) content-box, #d8e5cf; outline: 2px dotted #fffdf8; outline-offset: -2px; box-shadow: 0 0 0 1px #c9c1ad; }
.atlas-cardback-mark { position: absolute; right: 26%; top: 12%; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid rgb(142 47 63 / .55); color: rgb(142 47 63 / .85); font: 700 9px/1 system-ui, sans-serif; display: grid; place-items: center; transform: rotate(-12deg); }
.atlas-cardback-hand { position: absolute; left: 8%; top: 16%; width: 40%; max-height: 70%; overflow: hidden; font-size: 11.5px; line-height: 1.35; font-weight: 500; color: #26325c; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; }
.atlas-cardback-lines { position: absolute; left: 8%; width: 38%; top: 22%; height: 46%; background: repeating-linear-gradient(transparent 0 9px, #ccc4b2 9px 11px); }
.atlas-cardbutton.opened .atlas-cardback { opacity: .45; }
.atlas-readmark { position: absolute; right: 6px; bottom: 5px; font-size: 10.5px; font-weight: 700; color: #5b6482; }
:is(dialog.atlas-dialog, .atlas-shared) .atlas-cardbutton:focus-visible { outline: 3px solid var(--ink, hsl(var(--foreground))); outline-offset: 2px; border-radius: 8px; }
/* locked: three blank cards, out of focus, under a lock with the count */
.atlas-stack { position: relative; height: 190px; margin: 4px 0 2px; }
.atlas-stack .atlas-stacked { position: absolute; width: 58%; }
.atlas-stack .atlas-stacked:nth-child(1) { left: 4%; top: 34px; transform: rotate(-9deg); }
.atlas-stack .atlas-stacked:nth-child(2) { left: 36%; top: 6px; transform: rotate(5deg); }
.atlas-stack .atlas-stacked:nth-child(3) { left: 20%; top: 58px; transform: rotate(-2deg); }
.atlas-stacked .atlas-cardback-lines { filter: blur(2.5px); }
.atlas-lockchip { position: absolute; left: 50%; top: 52%; z-index: 2; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 20px; background: rgb(16 16 20 / .88); color: #efece4; font-weight: 700; font-size: 14px; white-space: nowrap; }
.atlas-lockchip svg { width: 16px; height: 16px; }
.atlas-unlock { margin: 0; text-align: center; font-size: 15px; font-weight: 600; }

/* one postcard: the card is the screen; a tap turns it, a swipe or the arrows go to the next */
:is(dialog.atlas-postcard, .atlas-shared) .atlas-flip-stage { margin: 0; }
:is(dialog.atlas-dialog.atlas-postcard, .atlas-shared) .atlas-flip { max-height: 58dvh; max-width: calc(58dvh * 4 / 5); rotate: -1deg; }
.atlas-stamp { position: absolute; top: 14px; right: 14px; min-width: 62px; box-sizing: border-box; padding: 26px 8px 6px; border: 6px solid transparent; background: linear-gradient(#7fb2d6, #e8cf94 58%, #586a3e) padding-box, #fffdf8 border-box; color: #fff; font: 800 13px/1 system-ui, sans-serif; text-align: center; text-shadow: 0 1px 2px rgb(0 0 0 / .5); rotate: 4deg;
  -webkit-mask: radial-gradient(circle 3px at 4px 4px, #0000 97%, #000) -4px -4px / 8px 8px, linear-gradient(#000 0 0) padding-box; -webkit-mask-composite: source-over; mask: radial-gradient(circle 3px at 4px 4px, #0000 97%, #000) -4px -4px / 8px 8px, linear-gradient(#000 0 0) padding-box; mask-composite: add; filter: drop-shadow(0 2px 3px rgb(0 0 0 / .35)); }
.atlas-flipmark { position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgb(16 16 20 / .6); color: #fff; }
.atlas-flipmark svg { width: 20px; height: 20px; }
.atlas-back { padding: 18px; gap: 0; }
.atlas-back .atlas-flipmark { background: rgb(38 50 92 / .1); color: #26325c; }
.atlas-back-top { display: flex; align-items: flex-start; gap: 10px; }
.atlas-to { flex: 1; padding: 6px 0 5px; border-bottom: 1px solid #ddd6c6; font-size: 13px; font-weight: 700; color: #26325c; }
.atlas-back-stamp { width: 48px; height: 58px; flex: none; box-sizing: border-box; padding: 6px; background: linear-gradient(#a9cdea, #e0c996 60%, #6b7a4f) content-box, #d8e5cf; outline: 2px dotted #fffdf8; outline-offset: -2px; box-shadow: 0 0 0 1px #c9c1ad; }
.atlas-postmark { position: absolute; right: 40px; top: 28px; width: 66px; height: 66px; border-radius: 50%; border: 2px solid rgb(142 47 63 / .6); color: rgb(142 47 63 / .85); font: 700 11px/1.3 system-ui, sans-serif; display: grid; place-items: center; text-align: center; white-space: pre-line; rotate: -14deg; }
.atlas-hand { flex: 1; display: grid; place-items: center; padding: 8px 4px 40px; text-align: center; font-size: 23px; line-height: 1.5; font-weight: 500; color: #26325c; overflow-wrap: anywhere; }
.atlas-postcard-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
:is(dialog.atlas-dialog, .atlas-shared) .atlas-postcard-nav > button { width: 48px; height: 48px; min-width: 48px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: hsl(var(--muted)); color: inherit; display: grid; place-items: center; }
.atlas-dots { display: flex; gap: 6px; }
.atlas-dots i { width: 6px; height: 6px; border-radius: 3px; background: hsl(var(--border)); transition: width .2s; }
.atlas-dots i.on { width: 18px; background: var(--ink, hsl(var(--foreground))); }

/* Outside MapCall: the line icons have no MapCall stylesheet to size them, and the arrows sit in the theme's own colours. */
.atlas-shared .trail-icon { width: 22px; height: 22px; }
.atlas-shared .atlas-body { display: grid; gap: 12px; }
/* MapCall shows the whole photo (its dialog rule: up to 300px, contained); outside MapCall the same. */
.atlas-shared .atlas-photo { max-height: 300px; object-fit: contain; }
.atlas-shared .atlas-postcard-nav > button { cursor: pointer; }
.atlas-shared .atlas-flip { cursor: pointer; }
.atlas-shared.atlas-small .atlas-flip-stage > .atlas-flip { rotate: none; } /* beats the :is() rule above (0,3,1) */
.atlas-shared.atlas-small .atlas-hand { font-size: 16px; padding-bottom: 32px; }
.atlas-shared.atlas-small .atlas-postmark { width: 52px; height: 52px; right: 30px; font-size: 9.5px; }
.atlas-shared.atlas-small .atlas-stamp { min-width: 48px; padding: 18px 5px 4px; border-width: 4px; font-size: 10.5px; }
.atlas-shared.atlas-small .atlas-flipmark { width: 34px; height: 34px; }
