/* /guide: onboarding to Shenzhen. Without JS every step shows in a column; with JS (html.gjs) one step per screen. */
.g-home { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; color: var(--ink-2); }
.g-home:hover { background: var(--stone); color: var(--ink); }
.g-home svg { width: 20px; height: 20px; }
main.g { max-width: 680px; }

.g-dots { position: sticky; top: 54px; z-index: 900; margin: 0 calc(-1 * var(--pad)); padding: 10px var(--pad); background: rgba(244,241,234,.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.g-dots ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.g-dots li { flex: 1; }
.g-dots a { display: block; padding: 8px 0; }
.g-dots i { display: block; height: 4px; border-radius: 4px; background: var(--line-2); transition: background .25s var(--ease); }
.g-dots a.done i { background: rgba(42,75,216,.35); }
.g-dots a[aria-current="step"] i { background: var(--cobalt); }
.g-dots a:hover i { background: var(--ink-2); }

.g-step { padding: 22px 0 30px; scroll-margin-top: 110px; }
.g-step + .g-step { border-top: 1px solid var(--line); }
.g-ico { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: var(--sheet); border: 1px solid var(--line); color: var(--cobalt); }
.g-ico svg { width: 22px; height: 22px; }
.g-step h2 { margin: 14px 0 18px; font-weight: 600; font-size: clamp(28px, 7vw, 46px); line-height: 1.04; letter-spacing: -.05em; text-wrap: balance; outline: 0; }

.g-bar { height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; margin: 0 0 10px; }
.g-bar i { display: block; height: 100%; width: 0; background: var(--cobalt); transition: width .3s var(--ease); }
.g-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.g-item { position: relative; border-radius: 14px; background: var(--sheet); border: 1px solid var(--line); transition: border-color .2s var(--ease); }
.g-item:target, .g-item.hl { border-color: var(--cobalt); }
.g-ck { position: absolute; left: 14px; top: 14px; width: 20px; height: 20px; margin: 0; appearance: none; -webkit-appearance: none; border-radius: 6px; border: 1.5px solid var(--line-2); background: var(--bg); cursor: pointer; display: grid; place-items: center; }
.g-ck:checked { background: var(--cobalt); border-color: var(--cobalt); }
.g-ck:checked::after { content: ""; width: 10px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; rotate: -45deg; translate: 0 -1px; }
.g-item details summary { list-style: none; cursor: pointer; padding: 13px 40px 13px 46px; font-weight: 500; min-height: 48px; display: flex; align-items: center; }
.g-item details summary::-webkit-details-marker { display: none; }
.g-item details summary::after { content: ""; position: absolute; right: 16px; top: 20px; width: 7px; height: 7px; border-right: 1.8px solid var(--ink-2); border-bottom: 1.8px solid var(--ink-2); rotate: 45deg; transition: rotate .2s var(--ease); }
.g-item details[open] summary::after { rotate: 225deg; top: 23px; }
.g-ck:checked ~ details summary span { color: var(--ink-2); text-decoration: line-through; text-decoration-color: var(--line-2); }
.g-item details p { margin: 0; padding: 0 16px 8px 46px; color: var(--ink-2); }
.g-src { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 0 16px 14px 46px; }
.g-src a { display: inline-flex; align-items: center; gap: 4px; color: var(--cobalt); font-size: 12px; }
.g-src a:hover { text-decoration: underline; }
.g-src svg { width: 12px; height: 12px; }

/* Passport */
.g-pick { display: grid; gap: 8px; margin-bottom: 14px; }
.g-opts { list-style: none; margin: 0; padding: 4px; max-height: 260px; overflow: auto; border-radius: 16px; background: var(--sheet); border: 1px solid var(--line); }
.g-opts button { width: 100%; text-align: left; padding: 10px 12px; border: 0; border-radius: 10px; background: none; cursor: pointer; }
.g-opts button:hover, .g-opts button:focus-visible { background: var(--stone); }
.g-opts button[data-r="other"] { color: var(--ink-2); }
.g-chosen { margin: 2px 4px; display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.g-chosen button { margin-left: auto; border: 0; background: none; color: var(--cobalt); cursor: pointer; font-size: 12.5px; }
.g-rules { display: grid; gap: 10px; }
.g-rule { padding: 16px 16px 4px; border-radius: 16px; background: var(--sheet); border: 1px solid var(--line); }
.g-rule h3 { margin: 0 0 6px; font-size: 17px; letter-spacing: -.03em; }
.g-rule[data-rule="free"] h3 { color: var(--cobalt); }
.g-rule p { margin: 0 0 10px; color: var(--ink-2); }
.g-rule .g-src { padding: 0 0 12px; }
.g-cl { margin: 0 0 12px; }
.g-cl summary { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 12px; }
.g-cl summary svg { width: 14px; height: 14px; }
.g-cl ul { list-style: none; margin: 8px 0 0; padding: 0; columns: 2; font-size: 12px; color: var(--ink-2); }

/* Spots */
.g-map { height: 230px; margin: 0 0 10px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--stone); overflow: hidden; isolation: isolate; }
.g-map .leaflet-tile-pane { filter: grayscale(1) sepia(.28) contrast(.92) brightness(1.04); }
.g-spots { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.g-spots a { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px 5px 8px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 12px; }
.g-spots a:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.g-spots svg { width: 13px; height: 13px; color: var(--cobalt); }
.g-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--cobalt); border: 3px solid var(--sheet); box-shadow: 0 0 0 1.5px var(--cobalt), 0 4px 10px -4px rgba(42,75,216,.7); }
.g-pop b { display: block; margin-bottom: 4px; }
.g-pop p { margin: 0 0 6px; }
.g-pop button { border: 0; padding: 0; background: none; color: var(--cobalt); cursor: pointer; font-size: 12px; }

.g-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.g-links svg { width: 17px; height: 17px; }
.g-checked { color: var(--ink-2); font-size: 12px; margin: 10px 0 0; }

/* Flow */
.gjs .g-step { display: none; border-top: 0; min-height: 60vh; }
.gjs .g-step.on { display: block; animation: g-in .28s var(--ease); }
.gjs .g-rule { display: none; }
.gjs .g-rule.on { display: block; }
.gjs .g-pick[hidden] + .g-rules .g-rule { display: block; }
.g-step.back-in { animation-name: g-in-back; }
@keyframes g-in { from { opacity: 0; translate: 18px 0; } }
@keyframes g-in-back { from { opacity: 0; translate: -18px 0; } }
.g-nav { position: fixed; z-index: 1000; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); translate: -50% 0; display: flex; gap: 6px; padding: 4px; border-radius: 999px; background: rgba(235,230,220,.9); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border: 1px solid var(--line-2); box-shadow: 0 12px 30px -14px rgba(43,40,36,.45); }
.g-nav .ib { width: 44px; height: 44px; }
.g-nav .ib:disabled { opacity: .35; cursor: default; }
.g-nav .btn { height: 44px; padding: 0 22px; border: 0; cursor: pointer; }
.g-nav .btn svg { width: 18px; height: 18px; }
.g-nav .btn span { font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .gjs .g-step.on, .g-step.back-in { animation: none; } }
