/* guide.html only. Extends site.css tokens; no new direction. */

.g-hero { height: 184px; }
.g-hero h1 { font-size: clamp(30px, 5.4vw, 54px); max-width: 15em; }
.g-elsewhere { margin: 2px 2px 0; font-size: 14px; color: var(--muted); }
.g-elsewhere a { color: var(--gold); font-weight: 700; text-underline-offset: 3px; }
.g-elsewhere + .count { margin-top: 8px; }
.g-elsewhere + .count[hidden] + .topic { margin-top: 18px; }

/* Topic band photos: --bg from 720 px, the w800 copy (--bg-sm) below (site.css .band). Paths are relative to assets/. */
.guide .band { --g: linear-gradient(90deg, rgba(7, 9, 26, .94) 0, rgba(7, 9, 26, .72) 46%, rgba(7, 9, 26, .1)); }
#t-uber .band { --bg: var(--g), url(/assets/photos/strip-street.691bfdcaec.webp); --bg-sm: var(--g), url(/assets/photos/w800/strip-street.e8375697f2.webp); background-position: 50% 78%; }
#t-water .band { --bg: var(--g), url(/assets/photos/strip2.0a6d7384d9.webp); --bg-sm: var(--g), url(/assets/photos/w800/strip2.af9dbc7e59.webp); background-position: 50% 58%; }
#t-money .band { --bg: var(--g), url(/assets/photos/forum.a83dae4665.webp); --bg-sm: var(--g), url(/assets/photos/w800/forum.000b7caa7c.webp); background-position: 50% 8%; }
#t-map .band { --bg: var(--g), url(/assets/photos/strip.d826cfbc5d.webp); --bg-sm: var(--g), url(/assets/photos/w800/strip.ea5bd02d99.webp); background-position: 50% 62%; }
#t-id .band { --bg: var(--g), url(/assets/photos/welcome-sign.1306315fa4.webp); --bg-sm: var(--g), url(/assets/photos/w800/welcome-sign.641414381e.webp); background-position: 100% 22%; }
#t-move .band { --bg: var(--g), url(/assets/photos/strat-dusk.1ba507dfb8.webp); --bg-sm: var(--g), url(/assets/photos/w800/strat-dusk.71147da00b.webp); background-position: 50% 58%; }
#t-safe .band { --bg: var(--g), url(/assets/photos/strip-2024.6ad61f032a.webp); --bg-sm: var(--g), url(/assets/photos/w800/strip-2024.b2382e01aa.webp); background-position: 50% 60%; }
#t-culture .band { --bg: var(--g), url(/assets/photos/canal.b35419f763.webp); --bg-sm: var(--g), url(/assets/photos/w800/canal.3546e0bef3.webp); background-position: 50% 55%; }
#t-week .band { --bg: var(--g), url(/assets/photos/sphere.77af65a22c.webp); --bg-sm: var(--g), url(/assets/photos/w800/sphere.48de0eb075.webp); background-position: 50% 44%; }

/* ---------- Uber step-through ---------- */
.stepper { scroll-margin-top: 132px; position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin: 14px 0 0; padding-bottom: 10px; }
.stepper::before, .stepper::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; border-radius: 2px; }
.stepper::before { right: 0; background: #262a52; }
.stepper::after { width: calc(var(--p, 1) * 25%); background: var(--gold); transition: width .42s cubic-bezier(.16, 1, .3, 1); }
.st { display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 64px; padding: 6px 2px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font: 700 13.5px/1.2 var(--body); cursor: pointer; transition: color .2s, background-color .2s; }
.st b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid #3a3f6b; font: 400 15px/1 'Archivo Black', sans-serif; color: var(--ink); transition: background-color .2s, border-color .2s, color .2s; }
.st:hover { color: var(--ink); background: rgba(255, 255, 255, .04); }
.st.done b { border-color: var(--gold); color: var(--gold); }
.st[aria-selected="true"] { color: var(--ink); }
.st[aria-selected="true"] b { background: var(--gold); border-color: var(--gold); color: var(--night); }

.sp { display: grid; gap: 14px; margin-top: 14px; touch-action: pan-y; }
.sp.sp-anim { animation: sp-in .32s cubic-bezier(.16, 1, .3, 1); }
.sp.sp-anim.back { animation-name: sp-in-back; }
@keyframes sp-in { from { opacity: .35; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@keyframes sp-in-back { from { opacity: .35; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
.sp-text h4 { font-size: 17px; font-weight: 800; line-height: 1.4; color: var(--gold); }
.sp-text ol { margin-top: 6px; }
.sp-text .meta { padding-top: 12px; }

.st-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; }
.st-go { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 14px; border: 1px solid #3a3f6b; border-radius: 10px; background: transparent; color: var(--ink); font: 700 15px var(--body); cursor: pointer; transition: border-color .2s, background-color .2s, opacity .2s; }
.st-go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.st-go:hover { border-color: var(--gold); }
.st-go.next { padding: 0 16px 0 20px; border-color: var(--gold); background: var(--gold); color: var(--night); font-weight: 800; }
.st-go.next:hover { background: var(--bulb); }
.st-go:disabled { opacity: .35; cursor: default; }
.st-go:disabled:hover { border-color: #3a3f6b; }
.st-pos { font-size: 13.5px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }

/* illustration frame */
.ill { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 236px; padding: 38px 14px 14px; border: 1px solid #262a52; border-radius: 12px; background: radial-gradient(120% 90% at 50% 0, #1a1e44 0, #0B0E24 70%); }
.ill-tag { position: absolute; left: 10px; top: 10px; padding: 1px 8px; border: 1px dashed #5a5f8f; border-radius: 5px; font-size: 12px; font-weight: 700; color: var(--muted); }
.ill figcaption { font-size: 12.5px; color: var(--muted); text-align: center; }

.phone { width: min(100%, 236px); padding: 12px 12px 14px; border: 2px solid #3a3f6b; border-radius: 24px; background: #121536; }
.ph-bar { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 10px; border-bottom: 1px solid #262a52; }
.ph-bar span { font-size: 18px; color: #fff; }
.ph-bar i { font-style: normal; font-size: 12px; font-weight: 800; color: var(--official); }
.ph-check { list-style: none; margin: 0 !important; color: var(--ink) !important; }
.ph-check li { display: flex; align-items: center; gap: 10px; margin: 0; padding: 9px 4px; border-bottom: 1px solid #1d2148; }
.ph-check li:last-child { border-bottom: 0; }
.ph-check svg { flex: none; width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--official); fill: none; stroke: var(--night); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ph-check span { display: flex; flex-direction: column; font-size: 12px; line-height: 1.35; color: var(--muted); }
.ph-check b { font-size: 14px; color: var(--ink); }

.sign { position: relative; display: flex; align-items: center; gap: 12px; width: min(100%, 300px); margin-top: 14px; padding: 12px 14px; border-radius: 6px; background: #13306B; color: #fff; box-shadow: 0 6px 14px rgba(0, 0, 0, .45); }
.sign::before, .sign::after { content: ""; position: absolute; top: -16px; width: 3px; height: 16px; background: #5a5f7a; }
.sign::before { left: 22%; }
.sign::after { right: 22%; }
.sign svg { flex: none; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.sign-car { width: 44px; height: 30px; }
.sign-arrow { width: 30px; height: 30px; margin-left: auto; }
.sign-txt { display: flex; flex-direction: column; line-height: 1.15; }
.sign-txt b { font-size: 22px; font-weight: 400; }
.sign-txt small { font-size: 12px; font-weight: 700; opacity: .85; }
.bubble { position: relative; padding: 8px 14px; border-radius: 14px; background: var(--ink); color: var(--night); font-size: 15px; }
.bubble::before { content: ""; position: absolute; left: 22px; top: -7px; border: 8px solid transparent; border-top: 0; border-bottom-color: var(--ink); }

.match { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; }
.ph-card { display: flex; flex-direction: column; min-width: 0; padding: 10px 12px; border-radius: 12px; background: var(--ink); color: var(--night); line-height: 1.3; }
.ph-card small { font-size: 11px; font-weight: 700; color: #4a4f72; }
.ph-card b { font-size: 18px; font-weight: 400; }
.ph-card span { font-size: 12px; color: #3a3f5f; }
.plate { display: inline-block; margin-top: 6px; padding: 2px 7px; border: 2px solid #13306B; border-radius: 4px; background: #fff; color: #13306B; font-style: normal; font-size: 15px; letter-spacing: .02em; }
.match-eq { flex: none; width: 26px; height: 26px; fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; }
.car-rear { position: relative; display: flex; flex-direction: column; align-items: center; }
.car-rear svg { width: 112px; height: 66px; fill: none; stroke: var(--muted); stroke-width: 2.4; stroke-linejoin: round; }
.car-rear .plate { position: absolute; bottom: 4px; margin: 0; font-size: 12px; padding: 0 5px; }

.drop { display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 12px; background: var(--ink); color: var(--night); }
.drop-pin { width: 32px; height: 42px; fill: var(--gold); stroke: var(--night); stroke-width: 1.6; }
.drop-pin circle { fill: var(--night); }
.drop div { display: flex; flex-direction: column; line-height: 1.3; }
.drop small { font-size: 11px; font-weight: 700; color: #4a4f72; }
.drop b { font-size: 19px; font-weight: 400; }
.drop span { font-size: 12.5px; font-weight: 700; color: #13306B; }

/* small illustrations inside normal posts (plug, card terminal, receipt) */
.ill.sm { min-height: 0; margin-top: 12px; padding: 34px 0 4px; border: 0; background: none; }
.ill.sm .ill-tag { left: 0; top: 4px; }

.plug-row { display: flex; align-items: center; justify-content: center; gap: 6px; }
.plug-it { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.plug-it small { font-size: 13px; }
.plug-it svg { width: 52px; height: 52px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linejoin: round; }
.plug-it svg .f { fill: var(--ink); stroke: none; }
.plug-ar { flex: none; width: 20px; height: 20px; margin-bottom: 18px; fill: none; stroke: var(--gold); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.plug-label { padding: 8px 14px; border-radius: 6px; background: #d9dbe6; color: #2a2d40; font-size: 13.5px; letter-spacing: .02em; }
.plug-label mark { padding: 2px 6px; border-radius: 3px; background: var(--gold); color: var(--night); }

.term { display: grid; gap: 8px; width: min(100%, 250px); padding: 12px; border: 2px solid #3a3f6b; border-radius: 16px; background: #121536; }
.term-q { font-size: 14px; color: var(--ink); text-align: center; }
.term-opt { display: flex; flex-direction: column; padding: 10px 14px; border-radius: 10px; border: 2px solid #3a3f6b; line-height: 1.3; }
.term-opt b { font-size: 16px; font-weight: 400; color: var(--ink); }
.term-opt small { font-size: 12px; font-weight: 700; }
.term-opt.ok { border-color: var(--official); }
.term-opt.ok small { color: var(--official); }
.term-opt.no { opacity: .7; }
.term-opt.no b { text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .5); }
.term-opt.no small { color: var(--muted); }

.receipt { display: grid; gap: 4px; width: min(100%, 270px); padding: 14px 16px 12px; border-radius: 4px; background: #f4f1e8; color: #2a2d40; font: 600 14px/1.45 ui-monospace, Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; }
.receipt p { display: flex; justify-content: space-between; align-items: baseline; margin: 0; }
.receipt .fill { padding-top: 4px; border-bottom: 1px solid #9a9db0; }
.receipt .hand { font-family: 'Segoe Print', 'Bradley Hand', 'Comic Sans MS', cursive; font-size: 17px; color: #1d4fd6; }
.receipt .sig { align-items: flex-end; padding-top: 6px; font-size: 12px; color: #5a5d70; }
.receipt .sig svg { width: 90px; height: 24px; fill: none; stroke: #1d4fd6; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.receipt small { margin-top: 4px; font-size: 12px; color: #5a5d70; }

/* ---------- phrase cards ---------- */
.say-list { display: grid; gap: 8px; margin-top: 12px; }
.say { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; min-height: 60px; padding: 10px 44px 10px 14px; border: 1px solid #3a3f6b; border-radius: 12px; background: #161a3a; color: var(--ink); text-align: left; cursor: pointer; transition: border-color .2s, background-color .2s; }
.say::after { content: ""; position: absolute; right: 14px; top: 50%; width: 20px; height: 20px; margin-top: -10px; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFC24A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6M10 20H4v-6M20 4l-7 7M4 20l7-7'/%3E%3C/svg%3E"); }
.say:hover { border-color: var(--gold); background: #1b2046; }
.say b { font-size: 16.5px; font-weight: 400; line-height: 1.3; }
.say span { font-size: 13px; color: var(--muted); }

.say-big { inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: max(28px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom)); border: 0; background: #FFF6D2; color: var(--night); }
.say-big[open] { display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.say-big::backdrop { background: rgba(7, 9, 26, .85); }
.say-en { font-size: clamp(42px, 11vw, 104px); line-height: 1.08; word-break: normal; overflow-wrap: break-word; text-wrap: balance; }
.say-ko { font-size: 18px; font-weight: 700; color: #4a3d1c; }
.say-close { align-self: stretch; min-height: 56px; margin-top: 12px; border: 0; border-radius: 14px; background: var(--night); color: var(--ink); font: 800 17px var(--body); cursor: pointer; }
.say-close:focus-visible { outline-color: var(--night); }
.say-big.pop[open] { animation: say-pop .26s cubic-bezier(.16, 1, .3, 1); }
@keyframes say-pop { from { opacity: .4; transform: scale(.97); } to { opacity: 1; transform: none; } }
html.say-lock { overflow: hidden; }

/* ---------- tables ---------- */
.zt td:first-child { width: 36%; white-space: normal; }
.post td a { font-size: 13px; text-underline-offset: 3px; }
.post td .map-btn { margin: 4px 0 0 2px; vertical-align: middle; }
.tipt td b { color: var(--gold); font-weight: 800; margin-right: 4px; font-variant-numeric: tabular-nums; }

/* ---------- this week ---------- */
.days { list-style: none; margin: 12px 0 0 !important; color: var(--ink) !important; }
.days > li { display: grid; gap: 4px; margin: 0; padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .09); }
.days time { font: 400 22px/1.1 var(--display); color: var(--gold); font-variant-numeric: tabular-nums; }
.days ul { margin: 0 0 0 18px; }
.days ul li { margin-top: 5px; color: var(--muted); }

.g-ill-note { margin-top: 8px; }
.nw { white-space: nowrap; }

/* Phones: the 지도 button starts its own line so buttons line up (VISUAL-08). */
@media (max-width: 719px) {
  .post td .map-btn { display: flex; width: fit-content; margin: 6px 0 0; }
}
/* Phones: the first topic and its first card start in the first screen (events.css uses the same band). */
@media (max-width: 599px) {
  .band { min-height: 64px; padding: 12px 16px; }
  .g-hero h1 { font-size: 26px; }
}
@media (min-width: 720px) {
  .sp { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 22px; align-items: start; }
  .ill { min-height: 280px; }
  .st { flex-direction: row; justify-content: center; gap: 8px; min-height: 48px; font-size: 15px; }
  .say-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-phrases .say-list { grid-template-columns: minmax(0, 1fr); }
  .days { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
  .say-big { padding-left: 8vw; padding-right: 8vw; }
  .say-close { align-self: flex-start; min-width: 200px; }
}
@media (min-width: 1000px) {
  .g-hero { height: 268px; }
  .posts .g-steps { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .sp.sp-anim, .say-big.pop[open] { animation: none; }
  .stepper::after, .st, .st b { transition: none; }
}

/* Inline styles moved by the stage step (CSP). */
.vg-inline-guide-1 { object-position:50% 62% !important; }
.vg-inline-guide-2 { object-position:50% 66% !important; }
.vg-inline-guide-3 { object-position:50% 52% !important; }

/* Inline styles moved by the stage step (CSP). */
.vg-inline-en-guide-1 { object-position:50% 62% !important; }
.vg-inline-en-guide-2 { object-position:50% 66% !important; }
.vg-inline-en-guide-3 { object-position:50% 52% !important; }
