/* Spotter guide pages (built by scripts/guide/build.py). Colours from styles.css; marks in amber. */

:root { --mark: #ffb300; }

.guide { max-width: 880px; margin: 0 auto; padding: 28px 16px 64px; }

.guide .eyebrow { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); margin: 0 0 6px; font-weight: 600; }
.guide .eyebrow a { color: inherit; }
.guide h1 { font-size: 30px; line-height: 1.2; letter-spacing: -.02em; margin: 0 0 8px; }
.guide h2 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); margin: 26px 2px 10px; }

.keys { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 18px; font-size: 16px; font-weight: 600; }
.keys span { display: flex; align-items: center; gap: 7px; }
.keys i { font-style: normal; color: var(--border); font-weight: 400; }
.keys b, .chip b, .zooms figcaption b, .badge { border-radius: 50%; background: var(--mark); color: #111; display: grid; place-items: center; font-weight: 700; }
.keys b { width: 22px; height: 22px; font-size: 12px; }

.guide article { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; margin-bottom: 16px; }
.guide article header { display: flex; align-items: baseline; gap: 10px; padding: 14px 16px 12px; }
.guide article h3 { margin: 0; font-size: 19px; }
.guide article header span { color: var(--text-2); font-size: 14px; }

.shot { position: relative; margin: 0; }
.shot > img { display: block; width: 100%; height: auto; }
.shot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ring { fill: none; stroke: var(--mark); stroke-width: 7; }
.lead { stroke: var(--mark); stroke-width: 4; stroke-dasharray: 14 10; }
.span { fill: none; stroke: var(--mark); stroke-width: 6; stroke-linejoin: round; }
.badge { position: absolute; transform: translate(-50%, -50%); width: 24px; height: 24px; font-size: 13px; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); }
.chip { position: absolute; transform: translate(-50%, -125%); display: flex; align-items: center; gap: 6px; white-space: nowrap; background: rgba(13, 21, 38, .86); color: #fff; font-size: 13px; font-weight: 600; padding: 3px 10px 3px 3px; border-radius: 999px; line-height: 1.3; }
.chip b { width: 20px; height: 20px; font-size: 12px; }
.inset { position: absolute; border-radius: 12px; overflow: hidden; border: 3px solid var(--mark); box-shadow: 0 6px 18px rgba(0, 0, 0, .35); background: #000; }
.inset img { display: block; width: 100%; }
.inset span { display: block; background: var(--mark); color: #111; font-size: 12px; font-weight: 700; padding: 3px 8px; line-height: 1.3; }
.zooms { display: none; }

.links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.links a, .rows a { background: var(--surface); border: 1px solid var(--border); color: var(--text); font-weight: 600; }
.links a { border-radius: 999px; padding: 8px 16px; }
.links a::after, .rows a span::after { content: " ›"; color: var(--text-2); }
.links a:hover, .rows a:hover { text-decoration: none; border-color: var(--mark); }

.rows { display: grid; gap: 10px; }
.rows a { display: flex; align-items: center; gap: 10px; border-radius: 14px; padding: 10px 10px 10px 16px; }
.rows a span { flex: 1; font-size: 17px; }
.rows img { width: 120px; aspect-ratio: 2.4; border-radius: 8px; object-fit: cover; }

.dot { display: none; }
@media (max-width: 560px) {
    .guide h1 { font-size: 26px; }
    .keys i, .inset, .lead, .ring, .badge { display: none; }
    .dot { display: grid; position: absolute; transform: translate(-50%, -50%); width: 22px; height: 22px; border-radius: 50%; background: var(--mark); color: #111; font-weight: 700; font-size: 12px; place-items: center; box-shadow: 0 0 0 2px rgba(0, 0, 0, .35), 0 1px 4px rgba(0, 0, 0, .4); }
    .chip { font-size: 11px; padding: 2px 8px 2px 2px; }
    .chip b { width: 16px; height: 16px; font-size: 10px; }
    .zooms { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 10px; padding: 10px; }
    .zooms figure { margin: 0; }
    .zooms img { display: block; width: 100%; aspect-ratio: 1.6; border-radius: 10px; }
    .zooms figcaption { display: flex; gap: 6px; align-items: center; font-size: 14px; font-weight: 600; margin-top: 6px; line-height: 1.25; }
    .zooms figcaption b { width: 20px; height: 20px; font-size: 12px; flex: none; }
    .rows img { width: 84px; }
    .rows img + img { display: none; }
}

/* Window diagram (787): door, windows, gap, windows, door */
.pattern { position: absolute; left: 2%; bottom: 5%; display: flex; align-items: center; gap: 3px; background: rgba(13, 21, 38, .86); padding: 4px 10px 4px 4px; border-radius: 999px; }
.pattern b { width: 20px; height: 20px; font-size: 12px; margin-right: 4px; border-radius: 50%; background: var(--mark); color: #111; display: grid; place-items: center; font-weight: 700; }
.pattern i { width: 5px; height: 8px; border-radius: 2px; background: #fff; }
.pattern i.a { background: var(--mark); }
.pattern s { width: 8px; }
.pattern u { width: 8px; height: 14px; border: 2px solid #fff; border-radius: 3px; margin: 0 3px; }
@media (max-width: 560px) {
    .pattern { gap: 2px; padding: 2px 6px 2px 2px; }
    .pattern b { width: 16px; height: 16px; font-size: 10px; }
    .pattern i { width: 3px; height: 6px; }
    .pattern s { width: 5px; }
    .pattern u { width: 6px; height: 10px; border-width: 1.5px; }
}

.note { margin: -8px 0 18px; color: var(--text-2); font-size: 14px; }

/* Back link, above the path */
.back { display: inline-block; margin: 0 0 10px; font-size: 15px; font-weight: 600; color: var(--text-2); }
.back:hover { color: var(--text); text-decoration: none; }

/* Identifier */
.identify { display: block; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--mark); border-radius: 14px; padding: 14px 16px; margin: 4px 0 8px; color: var(--text); }
.identify b { display: block; font-size: 17px; }
.identify b::after { content: " ›"; color: var(--text-2); }
.identify span { color: var(--text-2); font-size: 14px; }
.identify:hover { text-decoration: none; border-color: var(--mark); }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.choice { display: flex; flex-direction: column; background: var(--surface); border: 2px solid var(--border); border-radius: 16px; overflow: hidden; color: var(--text); }
.choice img { display: block; width: 100%; aspect-ratio: 1.6; object-fit: cover; background: #000; }
.choice span { padding: 12px 14px; font-size: 17px; font-weight: 600; }
/* Hover only where there's a pointer: a tap leaves :hover on, so the next question's answer
   under the finger would look selected */
.choice:hover { text-decoration: none; }
@media (hover: hover) { .choice:hover { border-color: var(--mark); } }
.result { display: inline-block; justify-self: start; grid-column: 1 / -1; margin-top: 4px; background: var(--mark); color: #111; font-weight: 700; border-radius: 999px; padding: 10px 18px; }
.result:hover { text-decoration: none; opacity: .9; }
.steps { margin-top: 22px; font-size: 15px; }
.steps a { color: var(--text-2); }
@media (max-width: 560px) {
    .choices { grid-template-columns: 1fr; gap: 10px; }
    .choice span { padding: 9px 10px; font-size: 15px; }
}
#choices .answer { display: block; width: 100%; border-radius: 16px; margin-bottom: 14px; grid-column: 1 / -1; }
.choice img.photo { aspect-ratio: 2.4; }
.choices { align-items: start; }
