/* gta-6-map.org guide pages, template v2 (owner 11-21; design: myb plans/2026-11-21-gta-6-map-guide-v2-design).
   Loaded on guide pages only, after style.css (its colours, fonts and the .gmap picture rules are used here).
   Three layouts, each drawn on its own: phones held upright (the base rules), wide screens, phones held sideways.
   Amber is kept for the one main action on a screen; ticks and progress are green. */
body.kind-guide2 { overflow-x: clip; }
.kind-guide2 .nav a[aria-current="page"] { color: var(--text); font-weight: 600; }
.kind-guide2 .site-footer { margin-top: 36px; }
html.g2-lock, html.g2-lock body { overflow: hidden; }

.g2 { display: flex; flex-direction: column; padding: 0 16px; font-size: 15px; line-height: 1.5; }
.g2-side, .g2-main { display: contents; }
.g2 h2 { margin: 0; font: 600 18px/1.25 var(--display); letter-spacing: 0; }
.g2-sub { margin: 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.g2 button { font: inherit; color: inherit; }
.g2-on-wide { display: none; }

/* title band: the game frame people know the topic by, behind the title and fading into the page */
.g2-hero { order: 0; position: relative; margin: 0 -16px; padding: 112px 16px 0; display: flex; flex-direction: column; gap: 12px; }
.g2-heroimg { position: absolute; top: 0; left: 0; right: 0; height: 232px; overflow: hidden; background: var(--surface); }
.g2-heroimg img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.g2-heroimg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 17, 20, .1) 0%, rgba(15, 17, 20, .22) 38%, rgba(15, 17, 20, .82) 64%, #0f1114 94%); }
.g2-hero > :not(.g2-heroimg) { position: relative; }
.g2-hero h1 { margin: 0; font: 600 22px/1.22 var(--display); letter-spacing: -.01em; text-wrap: balance; text-shadow: 0 1px 14px rgba(15, 17, 20, .8); }
.g2-crumbs { display: none; }
.g2-ans { display: flex; gap: 8px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.45; }
.g2-ans .i { width: 20px; height: 20px; margin-top: 1px; color: var(--faint); }
.g2-ans strong, .g2-ans b { color: var(--text); font-weight: 600; }
.g2-needs { font-size: 14px; }

/* the map: the picture keeps its 3:2 shape and covers a frame of any height, so its pins stay on their spots */
.g2-map { order: 3; margin: 16px 0 0; height: 300px; border-radius: 16px; container-type: size; }
.g2-list-page .g2-map { height: 230px; }
.g2-map .gm-in { position: absolute; left: 50%; top: 50%; width: max(100cqw, 150cqh); aspect-ratio: 3 / 2; transform: translate(-50%, -50%); }
.g2-map .gm-in img { display: block; width: 100%; height: 100%; max-width: none; }
.g2-map .maplibregl-ctrl-top-right, .g2-map .maplibregl-ctrl-attrib, .g2-panel-map .maplibregl-ctrl-top-right, .g2-panel-map .maplibregl-ctrl-attrib { display: none !important; }
.g2-maptag { position: absolute; z-index: 2; left: 12px; top: 12px; max-width: calc(100% - 24px); padding: 6px 10px; border-radius: 8px; background: rgba(15, 17, 20, .9); font: 600 11px/1.2 "Inter", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--text); pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g2-mapnote { position: absolute; z-index: 2; left: 12px; bottom: 12px; max-width: calc(100% - 150px); padding: 5px 9px; border-radius: 8px; background: rgba(15, 17, 20, .86); font-size: 12px; line-height: 1.3; color: var(--text); pointer-events: none; }
.g2-mapbtn { position: absolute; z-index: 3; right: 10px; bottom: 10px; height: 44px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px; background: rgba(15, 17, 20, .92); display: flex; align-items: center; gap: 8px; font: 600 14px/1 "Inter", sans-serif; color: var(--text); cursor: pointer; }
.g2 .g2-mapbtn { font: 600 14px/1 "Inter", sans-serif; }
.g2-mapbtn:hover { border-color: rgba(255, 255, 255, .4); }
.g2-mapbtn .i { width: 16px; height: 16px; }
.g2-mapbtn-icon { width: 44px; padding: 0; justify-content: center; }
/* labels the page draws over the live map: its own places on a single-place page, the open list row's spot, the row
   to start with. MapLibre positions the outer .g2-mk on the point; everything hangs from its middle. */
.g2-mk { width: 0; height: 0; pointer-events: none; }
.g2-plbl, .g2-ring-t, .g2-startlbl { position: absolute; left: 0; transform: translateX(-50%); padding: 3px 8px; border-radius: 8px; font: 600 12px/1.3 "Inter", sans-serif; white-space: nowrap; }
.g2-plbl { top: 8px; background: rgba(15, 17, 20, .9); color: var(--text); font-weight: 500; }
.g2-plbl.is-round { top: 24px; }
.g2-plbl.is-main { top: auto; bottom: 54px; background: var(--amber); color: #1a1408; font-weight: 600; }
.g2-plbl.is-main.is-round { bottom: 26px; }
.g2-ring { position: absolute; left: -23px; top: -23px; width: 46px; height: 46px; border-radius: 50%; border: 3px solid var(--amber); box-shadow: 0 0 0 5px rgba(245, 181, 68, .28); }
.g2-ring.is-area { left: -60px; top: -60px; width: 120px; height: 120px; border: 2px dashed #fff; background: rgba(255, 255, 255, .08); box-shadow: 0 0 0 2px rgba(0, 0, 0, .35); }
.g2-ring-t { left: 50%; bottom: calc(100% + 8px); background: var(--amber); color: #1a1408; }
.g2-ring.is-area .g2-ring-t { bottom: auto; top: calc(100% + 6px); background: rgba(15, 17, 20, .9); color: var(--text); }
.g2-startlbl { bottom: 30px; background: var(--amber); color: #1a1408; }

/* the map enlarged in place: this page's places stay, the places around them join in */
.g2 .g2-map.is-x { position: fixed; inset: 0; z-index: 60; display: block !important; height: auto !important; margin: 0; border: 0; border-radius: 0; }
.g2.is-x .g2-side { z-index: 60; }
.g2-map.is-x .g2-mapbtn, .g2-map.is-x .g2-maptag, .g2-map.is-x .g2-mapnote { display: none; }
.g2-xtop { position: absolute; z-index: 4; left: 0; right: 0; top: 0; height: 56px; display: flex; align-items: center; gap: 4px; padding: 0 8px; background: rgba(15, 17, 20, .96); border-bottom: 1px solid var(--line); }
.g2-xtop b { font: 600 16px/1.2 var(--display); }
.g2-around { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 12px; padding: 16px 16px 20px; background: var(--surface); border-top: 1px solid var(--line); border-radius: 20px 20px 0 0; }
.g2-around-h { display: flex; flex-direction: column; gap: 2px; }
.g2-map.is-x:has(.map-sheet) .g2-around { display: none; }
.g2-map.is-x .map-sheet { bottom: 12px; }

/* shared pieces */
.g2-icb { width: 44px; height: 44px; padding: 0; border: 0; background: none; border-radius: 12px; display: grid; place-items: center; flex: none; color: var(--text); cursor: pointer; }
.g2-icb .i { width: 20px; height: 20px; }
.g2-rt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; text-align: left; }
.g2-rt b { font-weight: 600; font-size: 15px; line-height: 1.3; }
.g2-rt small { font-size: 13px; color: var(--muted); line-height: 1.35; }
.g2-kind { font: 600 11px/1.3 "Inter", sans-serif; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); }
.g2-cta { height: 52px; padding: 0 16px; border: 0; border-radius: 14px; background: var(--amber); display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; text-decoration: none; cursor: pointer; }
.g2 .g2-cta, .g2 .g2-cta:hover { color: #1a1408; font: 600 16px/1.15 "Inter", sans-serif; text-align: center; }
.g2-cta:hover { background: var(--amber-2); }
.g2-cta .i { width: 20px; height: 20px; stroke-width: 2.2; }
.g2-btn2 { height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; text-decoration: none; cursor: pointer; }
.g2 .g2-btn2, .g2 .g2-btn2:hover { color: var(--text); font: 600 15px/1 "Inter", sans-serif; }
.g2-btn2:hover { border-color: #4a505b; }
.g2-btn2 .i { width: 16px; height: 16px; }
.g2-btn2 svg[viewBox="0 0 20 20"], .g2-fold h3 svg[viewBox="0 0 20 20"] { width: 14px; height: 14px; fill: currentColor; flex: none; }
.g2-btn2 .g2-ic-pause, .g2-fold h3 .g2-ic-pause { display: none; }
.g2-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.g2-okrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.g2-okline { display: flex; align-items: center; gap: 10px; margin: 0; min-width: 0; }
.g2-okline b { font: 600 16px/1.3 var(--display); }
.g2-okdot { width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: #0f1114; display: grid; place-items: center; flex: none; }
.g2-okdot .i { width: 14px; height: 14px; stroke-width: 2.6; }
.g2-undo { height: 44px; padding: 0 4px; border: 0; background: none; text-decoration: underline; cursor: pointer; flex: none; }
.g2 .g2-undo { font-size: 14px; color: var(--muted); }
.g2-prog { display: flex; flex-direction: column; gap: 8px; }
.g2-progl { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); }
.g2-progl b { font: 600 16px/1.2 var(--display); color: var(--text); white-space: nowrap; }
.g2-progl span { text-align: right; }
.g2-bar { height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.g2-bar i { display: block; width: 0; height: 100%; background: var(--green); border-radius: 4px; transition: width .3s; }
.g2-chips { display: flex; gap: 8px; overflow-x: auto; margin-right: -16px; padding-right: 16px; scrollbar-width: none; }
.g2-chips::-webkit-scrollbar { display: none; }
.g2-chip { height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); display: flex; align-items: center; gap: 6px; white-space: nowrap; flex: none; cursor: pointer; }
.g2 .g2-chip { font: 500 14px/1 "Inter", sans-serif; color: var(--text); }
.g2 .g2-chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); font-weight: 600; }
.g2-rows { display: flex; flex-direction: column; list-style: none; margin: 0; padding: 0; }
.g2-row { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.g2-row:hover { color: var(--text); }
.g2-rows > .g2-row:last-child { border-bottom: 0; }
.g2-row > .i, .g2-open > .i, .g2-onmap .i { width: 16px; height: 16px; color: var(--faint); }
.g2-onmap { display: grid; place-items: center; flex: none; }
.g2-dot { width: 32px; height: 32px; flex: none; display: grid; place-items: center; }
.g2-dot .pin { width: 28px; height: 32px; }
.g2-dot-dim { border-radius: 50%; background: var(--surface-3); color: var(--text); }
.g2-dot-dim .i { width: 16px; height: 16px; stroke-width: 2; }
.g2-dist { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.g2-gt { font: 600 11px/1 "Inter", sans-serif; letter-spacing: .04em; text-transform: uppercase; color: var(--text); border: 1px solid #4a505b; border-radius: 6px; padding: 4px 6px; white-space: nowrap; flex: none; }
.g2-where { font: 500 12px/1 "Inter", sans-serif; color: var(--faint); white-space: nowrap; flex: none; }
.g2-sec { order: 6; padding-top: 32px; display: flex; flex-direction: column; gap: 4px; }
.g2-sec > .g2-rows, .g2-sec > .g2-folds { margin-top: 4px; }
.g2-sec > .g2-btn2 { margin-top: 8px; }

/* steps: the time on the right plays that moment in the small player */
.g2-first { order: 4; padding-top: 28px; }
.g2-steps { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; }
.g2-steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.g2-steps li:last-child { border-bottom: 0; }
.g2-steps li > i { width: 28px; height: 28px; border-radius: 50%; background: var(--surface-3); display: grid; place-items: center; font: 600 13px/1 "Inter", sans-serif; }
.g2-steps li p { margin: 3px 0 0; font-size: 15px; line-height: 1.45; }
.g2-steps li p strong { font-weight: 600; }
.g2-steps li[data-on] { background: var(--surface-2); margin: 0 -16px; padding: 14px 16px; border-bottom-color: transparent; }
.g2-steps li[data-on] > i { background: var(--text); color: var(--bg); }
.g2-play { height: 44px; min-width: 78px; padding: 0 12px; border: 1px solid #434a56; border-radius: 22px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; gap: 6px; font: 600 14px/1 "Inter", sans-serif; font-variant-numeric: tabular-nums; text-decoration: none; flex: none; }
.g2 .g2-play, .g2 .g2-play:hover { color: var(--text); }
.g2-play:hover { border-color: #6a7280; }
.g2-play svg { width: 12px; height: 12px; fill: currentColor; }
.g2-play .g2-ic-pause { display: none; }
.g2 li[data-on] .g2-play { background: var(--text); color: var(--bg); border-color: var(--text); }
li[data-on]:not([data-paused]) .g2-play .g2-ic-play { display: none; }
li[data-on]:not([data-paused]) .g2-play .g2-ic-pause { display: block; }

/* the player: one for the page, at the top of the screen on an upright phone (the site header gives way to it) */
.g2-player { position: fixed; z-index: 45; top: 0; left: 0; right: 0; background: var(--bg); box-shadow: 0 12px 30px rgba(0, 0, 0, .55); }
.g2-frame { position: relative; aspect-ratio: 16 / 9; max-height: 46svh; margin: 0 auto; background: #000; }
.g2-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.g2-vbar { display: block; height: 3px; background: #3a3a3a; }
.g2-vbar i { display: block; height: 100%; background: var(--amber); transform-origin: left; transform: scaleX(0); }
.g2-now { display: flex; align-items: center; gap: 10px; padding: 6px 4px 6px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.g2-now b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g2-now small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g2-watchbar { display: none; }

/* done card */
.g2-done { order: 6; margin-top: 12px; }
.g2-done-ask, .g2-done-ok { display: flex; flex-direction: column; gap: 12px; }
.g2-done-ask h2 + .g2-sub { margin-top: -8px; }
.g2-done.is-done { border-color: rgba(61, 220, 151, .55); }
.g2-okline a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.g2-nextwhy { margin: 0 0 -4px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.g2-nextwhy b { color: var(--text); font-weight: 600; }
.g2-nw { white-space: nowrap; }

/* quick answers */
.g2-q { border-bottom: 1px solid var(--line); }
.g2-quick > .g2-q:last-child { border-bottom: 0; }
.g2-q summary, .g2-q.is-plain { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; min-height: 56px; }
.g2-q summary { cursor: pointer; list-style: none; }
.g2-q summary::-webkit-details-marker { display: none; }
.g2-down { width: 16px; height: 16px; margin-top: 3px; color: var(--faint); transition: transform .15s; }
details[open] > summary .g2-down { transform: rotate(180deg); }
.g2-q.is-spoiler[open] .g2-spoil-hint, details.g2-q[open]:not(.is-spoiler) summary small { display: none; }
details.g2-q[open] summary { min-height: 0; padding-bottom: 6px; }
.g2-q-more { padding: 0 28px 12px 0; font-size: 14px; color: var(--muted); }
.g2-q-more:empty, .g2-q-more [data-q-more]:empty { display: none; }
.g2-q-more p { margin: 0 0 8px; }
.g2-q-more p:last-child { margin-bottom: 0; }
.g2-q.is-spoiler .g2-q-more > p { color: var(--text); margin-top: -6px; }
.g2-q-sec strong { color: var(--text); font-weight: 600; }
.g2-q-sec ul, .g2-q-sec ol { margin: 0 0 8px; padding-left: 20px; }

/* list: progress, the note on what can be missed, state chips, rows that open */
.g2-listprog { order: 1; margin-top: 16px; }
.g2-note { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: 14px; line-height: 1.4; text-decoration: none; }
.g2 .g2-note, .g2 .g2-note:hover { color: var(--text); }
.g2-note .i { width: 16px; height: 16px; margin-top: 2px; color: var(--muted); }
.g2-note b { font-weight: 600; }
.g2-note.in-main { order: 2; margin-top: 12px; }
.g2-note.in-side { display: none; }
.g2-filter { order: 4; margin-top: 16px; }
.g2-listbody { order: 5; }
.g2-listbody:first-of-type, .g2-listprog + .g2-listbody, .g2-note + .g2-listbody { margin-top: 8px; }
.g2-gh { margin: 0; padding: 20px 0 6px; border-bottom: 1px solid var(--line); font: 600 12px/1.3 "Inter", sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.g2-listbody > .g2-list:first-child { margin-top: 8px; }
.g2-chk { width: 44px; height: 44px; padding: 0; border: 0; background: none; display: grid; place-items: center; flex: none; margin-left: -9px; cursor: pointer; }
.g2-chk i { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #7a8290; display: grid; place-items: center; }
.g2-chk .i { display: none; width: 14px; height: 14px; stroke-width: 2.6; }
.g2-chk:hover i { border-color: #a8adb7; }
.g2-chk[aria-checked="true"] i { background: var(--green); border-color: var(--green); color: #0f1114; }
.g2-chk[aria-checked="true"] .i { display: block; }
.g2-open { flex: 1; min-width: 0; min-height: 44px; padding: 0; border: 0; background: none; display: flex; align-items: center; gap: 10px; text-decoration: none; cursor: pointer; }
.g2 a.g2-open, .g2 a.g2-open:hover { color: var(--text); }
.g2-lrow.is-found .g2-rt b { color: var(--muted); }
.g2-lrow.is-open { background: var(--surface-2); margin: 0 -16px; padding: 8px 16px; border-bottom-color: transparent; }
.g2-lrow.is-link { padding-left: 35px; }
.g2-linkmeta { margin-top: 2px; }
.g2-empty { margin: 0; padding: 28px 0 8px; color: var(--muted); text-align: center; }

/* the open row: a sheet from the bottom of an upright phone, with its spot, how to get it and Found it */
.g2-panel { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; max-height: 88svh; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 12px; padding: 10px 16px 12px; background: var(--surface); border-top: 1px solid var(--line); border-radius: 20px 20px 0 0; box-shadow: 0 -12px 40px rgba(0, 0, 0, .5); }
html.g2-lock .g2-panel { z-index: 70; }
.g2-grip { width: 36px; height: 4px; border-radius: 2px; background: #4a505b; align-self: center; flex: none; }
.g2-panel-top { display: none; }
.g2-panel-h { display: flex; align-items: flex-start; gap: 8px; }
.g2-panel-h b { font: 600 18px/1.25 var(--display); }
.g2-panel-x { margin: -6px -8px 0 0; }
.g2-panel.is-code .g2-panel-h b { font-size: 28px; line-height: 1.15; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.g2-panel-map { position: relative; height: 190px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--sea); flex: none; }
.g2-panel-map [data-p-mapbox] { position: absolute; inset: 0; }
html.g2-lock .g2-panel-map { display: none; }
.g2-panel-body { display: flex; flex-direction: column; gap: 8px; }
.g2-panel-body p { margin: 0; font-size: 15px; line-height: 1.45; }
.g2-rd-text::first-letter { text-transform: uppercase; }
.g2-rd-area { color: var(--muted); font-size: 13px !important; }
.g2-rd-guide { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; font-weight: 600; font-size: 14px; text-decoration: none; }
.g2 .g2-rd-guide { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.g2-rd-guide .i { width: 14px; height: 14px; }
.g2-panel-act { display: flex; gap: 8px; }
.g2-rowwatch { width: auto; height: 52px; padding: 0 16px; flex: none; }
.g2-panel-act .g2-cta { flex: 1; width: auto; }
.g2 .g2-cta.is-found, .g2 .g2-cta.is-found:hover { background: none; border: 1px solid rgba(61, 220, 151, .55); color: var(--text); }
.g2-panel-nav { display: flex; justify-content: space-between; gap: 12px; margin: -2px -4px -4px; }
.g2-panel-nav button { height: 44px; min-width: 0; padding: 0 4px; border: 0; background: none; display: flex; align-items: center; gap: 4px; cursor: pointer; }
.g2 .g2-panel-nav button { font-size: 14px; color: var(--muted); }
.g2-panel-nav button span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g2-panel-nav button .i { width: 16px; height: 16px; }
.g2-panel-nav button[hidden] + button { margin-left: auto; }
/* ticked: a bar at the bottom says so, offers the closest one still to find, and can be undone */
.g2-toast { position: fixed; z-index: 48; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 12px; padding: 12px 16px 16px; background: var(--surface); border: 1px solid rgba(61, 220, 151, .55); border-bottom: 0; border-radius: 20px 20px 0 0; box-shadow: 0 -12px 40px rgba(0, 0, 0, .5); }
.g2-toast-btns { display: flex; align-items: center; gap: 4px; margin-right: -8px; }
.g2-toast-next { display: flex; flex-direction: column; gap: 2px; }

/* the long text, folded */
.g2-fold { border-bottom: 1px solid var(--line); }
.g2-folds > .g2-fold:last-child { border-bottom: 0; }
.g2-fold > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; cursor: pointer; list-style: none; }
.g2-fold > summary::-webkit-details-marker { display: none; }
.g2-fold > summary .g2-down { margin-top: 0; }
.g2-fold h3 { margin: 0; display: flex; align-items: center; gap: 10px; font: 500 15px/1.3 "Inter", sans-serif; letter-spacing: 0; }
.g2-fold-in { padding: 2px 0 18px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.g2-fold-in p { margin: 0 0 10px; }
.g2-fold-in > :last-child { margin-bottom: 0; }
.g2-fold-in strong { color: var(--text); font-weight: 600; }
.g2-fold-in ul, .g2-fold-in ol { margin: 0 0 10px; padding-left: 20px; }
.g2-fold-in li { margin-bottom: 4px; }
.g2-fold-in .sources { padding-left: 18px; }
.g2-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.g2-facts div { flex: 1 1 30%; min-width: 0; padding: 8px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.g2-facts dt { font-size: 12px; color: var(--faint); }
.g2-facts dd { margin: 0; font: 600 15px/1.3 var(--display); color: var(--text); overflow-wrap: anywhere; }
.g2-cover { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.g2-cover img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.g2-cover-play { position: absolute; left: 50%; top: 50%; width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%; background: rgba(15, 17, 20, .86); border: 1px solid rgba(255, 255, 255, .3); display: grid; place-items: center; color: var(--text); }
.g2-cover-play svg { width: 22px; height: 22px; margin-left: 3px; fill: currentColor; }
.g2-cover-play .g2-ic-pause { display: none; }
.g2-cover-cap { display: flex; flex-direction: column; gap: 1px; margin: 10px 0 0 !important; }
.g2-cover-cap b { color: var(--text); font-weight: 600; line-height: 1.3; }
.g2-cover-cap small { font-size: 13px; }
.g2-chapters { list-style: none; margin: 10px 0 0 !important; padding: 0 !important; }
.g2-chapters li { display: flex; align-items: center; gap: 12px; margin: 0; padding: 10px 0; border-top: 1px solid var(--line); }
.g2-chapters li b { color: var(--text); }
.g2-chapters li[data-on] { background: var(--surface-2); margin: 0 -16px; padding: 10px 16px; }
.g2-qa { border-top: 1px solid var(--line); }
.g2-qa details { border-bottom: 1px solid var(--line); }
.g2-qa details:last-child { border-bottom: 0; }
.g2-qa summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 13px 0; font-weight: 600; color: var(--text); cursor: pointer; list-style: none; }
.g2-qa summary::-webkit-details-marker { display: none; }
.g2-qa details > div { padding: 0 28px 12px 0; }
.g2-qa details > div p { margin: 0 0 8px; }

/* ---------- wide screens: the title band runs the full width, text left, the map follows on the right ---------- */
@media (min-width: 901px) and (min-height: 501px), (min-width: 701px) and (orientation: landscape) and (min-height: 501px) {
  .g2 { display: grid; grid-template-columns: minmax(0, 1fr) min(540px, 46%); grid-template-areas: "hero hero" "main side"; column-gap: 40px; align-items: start; max-width: 1208px; margin: 0 auto; padding: 0 24px; }
  .g2-on-wide { display: inline; }
  .g2-on-upright { display: none; }
  .g2-hero { grid-area: hero; margin: 0; padding: 28px 0 30px; min-height: 208px; gap: 0; }
  .g2-hero > :not(.g2-heroimg) { max-width: 640px; }
  .g2-heroimg { left: auto; right: calc(50% - 50vw); width: min(940px, 72vw); height: 100%; background: none; }
  .g2-heroimg::after { background: linear-gradient(90deg, #0f1114 0%, rgba(15, 17, 20, .93) 8%, rgba(15, 17, 20, .62) 26%, rgba(15, 17, 20, .16) 52%, rgba(15, 17, 20, .08) 100%), linear-gradient(180deg, rgba(15, 17, 20, 0) 48%, rgba(15, 17, 20, .7) 78%, #0f1114 100%); }
  .g2-crumbs { display: flex; gap: 8px; margin: 0; font-size: 13px; color: var(--faint); }
  .g2-crumbs a { color: var(--muted); }
  .g2-hero h1 { margin-top: 12px; font-size: 30px; }
  .g2-ans { margin-top: 12px; font-size: 16px; }
  .g2-needs { margin-top: 8px; font-size: 14px; }
  .g2-main { display: block; grid-area: main; min-width: 0; padding-top: 20px; }
  .g2-side { grid-area: side; display: flex; flex-direction: column; gap: 12px; min-width: 0; margin-top: 20px; }
  .g2-map { order: 0; margin: 0; height: clamp(280px, calc(100vh - var(--head) - 132px), 500px); }
  .g2-list-page .g2-map { height: 300px; }
  .g2-first { padding-top: 0; }
  .g2-listprog { margin-top: 0; }
  .g2-filter { margin-top: 18px; }
  .g2-chips { flex-wrap: wrap; margin-right: 0; padding-right: 0; overflow: visible; }
  .g2-steps li[data-on], .g2-chapters li[data-on] { margin: 0 -12px; padding-left: 12px; padding-right: 12px; border-radius: 12px; }
  .g2-lrow.is-open { margin: 0 -12px; padding: 8px 12px; border-radius: 12px; }
  .g2-lrow:not(.is-link) .g2-open > .i:last-child { display: none; }
  .g2-lrow.is-link .g2-where { color: var(--text); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
  .g2-lrow.is-link:hover b { text-decoration: underline; text-underline-offset: 3px; }
  .g2-row:not(.g2-lrow):hover b { text-decoration: underline; text-underline-offset: 3px; }
  .g2-watchbar { display: flex; justify-content: flex-start; padding: 0 16px; gap: 10px; }
  .g2-watchbar small { margin-left: auto; font-size: 13px; font-weight: 400; color: var(--muted); }
  /* the player sits on top of the right-hand column; the map makes room (single place) or steps aside (list) */
  .g2-player { position: static; order: -1; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: none; }
  .g2-frame { max-height: none; }
  .g2-now { border-bottom: 0; }
  .g2.is-playing .g2-watchbar { display: none; }
  .g2-single.is-playing .g2-map { height: clamp(180px, calc(100vh - var(--head) - 60px - min(540px, 46vw) * .5625 - 76px), 320px); }
  .g2-list-page.is-playing .g2-map:not(.is-x) { display: none; }
  /* the open row is a card under the map */
  .g2-panel { position: static; z-index: auto; max-height: none; overflow: visible; padding: 16px; border: 1px solid var(--line); border-radius: 16px; box-shadow: none; }
  .g2-grip, .g2-panel-x, .g2-panel-map, .g2-panel-nav [data-p-prev] { display: none !important; }
  .g2-panel-nav { justify-content: flex-end; margin: -4px -4px -8px; }
  .g2-note.in-main { display: none; }
  .g2-note.in-side { display: flex; }
  .g2 .g2-panel.is-quiet .g2-cta:not(.is-found) { background: var(--surface-2); border: 1px solid #4a505b; color: var(--text); }
  .g2-toast { display: none; }
  .g2-around { left: 20px; right: auto; bottom: 20px; width: 380px; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 16px 50px rgba(0, 0, 0, .5); }
  .g2-around .g2-chips { flex-wrap: wrap; }
  .g2-xtop { left: 20px; right: auto; top: 20px; height: 56px; padding-right: 20px; border: 1px solid var(--line); border-radius: 14px; }
  .g2-map.is-x .maplibregl-ctrl-top-right { display: block !important; }
  /* enlarged on a wide screen: the rest of the column steps aside; a row picked from a pin shows as a card over the map */
  .g2.is-x .g2-side > :not(.g2-map):not(.g2-panel), .g2.is-x .g2-panel.is-quiet { display: none; }
  .g2.is-x .g2-panel { position: fixed; z-index: 61; right: 20px; bottom: 20px; width: 400px; box-shadow: 0 16px 50px rgba(0, 0, 0, .55); }
  .g2-cover { max-width: 520px; }
  .g2-facts div { flex: 0 1 auto; padding: 8px 14px; }
}
@media (min-width: 901px) and (min-height: 501px) { .g2-side { position: sticky; top: calc(var(--head) + 20px); max-height: calc(100vh - var(--head) - 32px); overflow-y: auto; scrollbar-width: none; } .g2.is-x .g2-side { overflow: visible; max-height: none; } }

/* ---------- phones held sideways: the map fills the left of the screen and stays, the guide scrolls on the right ---------- */
@media (orientation: landscape) and (max-height: 500px) {
  .kind-guide2 .site-header { display: none; }
  .kind-guide2 .site-footer { margin-top: 0; }
  .g2 { display: grid; grid-template-columns: 46% minmax(0, 1fr); grid-template-areas: "side hero" "side main"; align-items: start; padding: 0; }
  .g2-side { grid-area: side; display: flex; flex-direction: column; position: sticky; top: 0; height: 100svh; border-right: 1px solid var(--line); }
  .g2-map, .g2-list-page .g2-map { order: 0; flex: 1; min-height: 0; height: auto; margin: 0; border: 0; border-radius: 0; }
  .g2-hero { grid-area: hero; margin: 0; padding: 14px 16px 0; gap: 6px; }
  .g2-heroimg { height: 118px; }
  .g2-heroimg::after { background: linear-gradient(90deg, rgba(15, 17, 20, .9) 0%, rgba(15, 17, 20, .64) 50%, rgba(15, 17, 20, .46) 100%), linear-gradient(180deg, rgba(15, 17, 20, 0) 45%, #0f1114 100%); }
  .g2-hero h1 { font-size: 18px; }
  .g2-ans, .g2-needs { font-size: 13px; color: #d6d8dc; }
  .g2-ans .i { width: 16px; height: 16px; }
  .g2-main { display: block; grid-area: main; min-width: 0; padding: 0 16px; }
  .g2-first { padding-top: 16px; }
  .g2-first h2 { font-size: 16px; }
  .g2-steps li p { font-size: 14px; }
  .g2-listprog { margin-top: 12px; }
  .g2-filter { margin-top: 12px; }
  .g2-gh { padding-top: 14px; }
  /* playing: the video takes the top of the map column */
  .g2-player { position: static; order: -1; box-shadow: none; flex: none; }
  .g2-frame { max-height: 58svh; }
  .g2.is-playing .g2-maptag { display: none; }
  /* the open row takes over the right-hand side; the map on the left shows its spot */
  .g2-panel { top: 0; left: 46%; max-height: none; padding: 6px 16px 12px; gap: 10px; border: 0; border-radius: 0; box-shadow: none; }
  .g2-grip, .g2-panel-x, .g2-panel-map { display: none !important; }
  .g2-panel-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .g2-back { height: 44px; padding: 0; border: 0; background: none; display: flex; align-items: center; gap: 6px; cursor: pointer; }
  .g2 .g2-back { font: 600 14px/1 "Inter", sans-serif; color: var(--text); }
  .g2-back .i { width: 16px; height: 16px; }
  .g2-panel-nav { margin: 0 -4px; }
  .g2-toast { left: 46%; border-radius: 0; border-right: 0; padding: 8px 16px 12px; gap: 8px; }
  .g2-around { left: 12px; right: auto; bottom: 12px; width: 340px; max-height: calc(100% - 92px); overflow-y: auto; padding: 12px; gap: 10px; border: 1px solid var(--line); border-radius: 16px; }
  .g2-around .g2-chips { margin-right: -12px; }
  .g2-xtop { left: 12px; right: auto; top: 12px; height: 52px; padding-right: 16px; border: 1px solid var(--line); border-radius: 14px; }
}

/* ---------- the first screen takes the colour of the page's picture (owner 11-21) ----------
   The same frame, enlarged and blurred past recognition, lies behind the title, the map and the first steps, and fades
   into the page's own dark ground below; the text stays on a dark, even ground, each page gets a colour of its own.
   It is drawn small and scaled up, so the blur costs next to nothing. The clear picture in the title band now fades
   into it (a mask) instead of into the flat page colour. */
/* (No stacking context on .g2: the enlarged map, the player and the sheets inside it must stay above the site header.) */
.g2 { position: relative; }
.g2-amb { position: absolute; z-index: -1; top: 0; left: 50%; width: 100vw; height: min(125svh, 1080px); transform: translateX(-50%); overflow: hidden; pointer-events: none; -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 28%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, #000 28%, transparent 100%); }
.g2-amb > div { position: absolute; left: -10%; top: -10%; width: 12%; height: 12%; transform: scale(10); transform-origin: 0 0; }
.g2-amb img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; filter: blur(5px) saturate(1.25); }
.g2-amb::after { content: ""; position: absolute; inset: 0; background: rgba(15, 17, 20, .67); }
.g2-heroimg { background: none; -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 42%, transparent 97%); mask-image: linear-gradient(180deg, #000 0%, #000 42%, transparent 97%); }
.g2-heroimg::after { background: linear-gradient(180deg, rgba(15, 17, 20, .1) 0%, rgba(15, 17, 20, .22) 38%, rgba(15, 17, 20, .5) 70%, rgba(15, 17, 20, .5) 100%); }
@media (min-width: 901px) and (min-height: 501px), (min-width: 701px) and (orientation: landscape) and (min-height: 501px) {
  .g2-amb { height: min(115vh, 1000px); }
  .g2-heroimg { -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .35) 24%, #000 54%), linear-gradient(180deg, #000 52%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .35) 24%, #000 54%), linear-gradient(180deg, #000 52%, transparent 100%); -webkit-mask-composite: source-in; mask-composite: intersect; }
  .g2-heroimg::after { background: rgba(15, 17, 20, .1); }
}
@media (orientation: landscape) and (max-height: 500px) {
  .g2-amb { height: 150svh; }
  .g2-heroimg { -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 100%); mask-image: linear-gradient(180deg, #000 30%, transparent 100%); }
  .g2-heroimg::after { background: linear-gradient(90deg, rgba(15, 17, 20, .86) 0%, rgba(15, 17, 20, .6) 50%, rgba(15, 17, 20, .42) 100%); }
}

/* Phones held upright: the title starts at the top, on the picture (owner 11-21), instead of under a clear strip of
   it, so the first screen gains about 90px. The picture is cut to the thing that matters in it (the face, the crab, the
   sign: `focus` in guide-b.json) and shown on the right of the title block, where the title's lines leave room; it
   fades out to the left, under the words, and into the page below. */
@media (max-width: 900px) and (orientation: portrait), (max-width: 700px) and (min-height: 501px) {
  .g2-hero { padding-top: 20px; }
  .g2-heroimg { left: auto; right: 0; width: 56%; height: calc(100% + 30px); min-height: 190px; -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .55) 34%, #000 62%), linear-gradient(180deg, #000 58%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .55) 34%, #000 62%), linear-gradient(180deg, #000 58%, transparent 100%); -webkit-mask-composite: source-in; mask-composite: intersect; }
  .g2-heroimg::after { background: linear-gradient(90deg, rgba(15, 17, 20, .45) 0%, rgba(15, 17, 20, .12) 70%); }
  .g2-hero h1 { text-shadow: 0 1px 3px rgba(15, 17, 20, .95), 0 0 16px rgba(15, 17, 20, .85); }
  .g2-ans { color: #d9dbe0; text-shadow: 0 1px 3px rgba(15, 17, 20, .95), 0 0 10px rgba(15, 17, 20, .8); }
  .g2-ans .i { color: #c3c7cf; }
}

/* The chip on the map that says what is below (phones held upright; elsewhere the steps or rows are beside the map). */
.g2-mapcue { display: none; }
@media (max-width: 900px) and (orientation: portrait), (max-width: 700px) and (min-height: 501px) {
  .g2-mapcue { position: absolute; z-index: 3; left: 10px; bottom: 10px; height: 44px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px; background: rgba(15, 17, 20, .92); display: flex; align-items: center; gap: 7px; text-decoration: none; }
  .g2 .g2-mapcue, .g2 .g2-mapcue:hover { color: var(--text); font: 600 13px/1 "Inter", sans-serif; }
  .g2-mapcue svg[viewBox="0 0 20 20"] { width: 11px; height: 11px; fill: currentColor; }
  .g2-mapcue .g2-ic-pause { display: none; }
  .g2-mapcue .i { width: 14px; height: 14px; color: var(--muted); }
  .g2-map.is-x .g2-mapcue { display: none; }
  .g2-mapnote { bottom: 62px; max-width: calc(100% - 24px); }
}
