.resident-intro-copy p{font-size:16px;line-height:1.5;margin:12px 0}
.resident-intro-copy strong{display:block}
.resident-intro-progress{font-size:14px;line-height:1.4;color:var(--map-muted,#5c6f5b);margin:8px 0 12px}
.resident-intro-figure{margin:0 0 16px;border-radius:14px;overflow:hidden;background:#e7ecdc}
#resident-layer-preview{height:210px;width:100%;position:relative}
.resident-intro-figure figcaption{padding:10px 12px;color:#344d3c;font-size:14px;line-height:1.4}
.resident-intro-invitation{font-weight:700;color:var(--map-ink,#253d31)}
#resident-layer-preview.resident-preview-failed{display:flex;align-items:center;padding:20px;box-sizing:border-box;color:#344d3c;font-size:16px}
.resident-ward-form{margin:12px 0;font-size:16px}
.resident-ward-form label{display:block;font-weight:700;margin-bottom:8px}
.resident-ward-form>div:first-of-type{display:flex;flex-wrap:wrap;gap:8px}
.resident-ward-form input{flex:1 1 170px;width:100%;min-width:0;min-height:46px;box-sizing:border-box;padding:10px 12px;border:1px solid var(--map-border,#adb6a5);border-radius:10px;background:var(--map-paper,#fff9e9);color:var(--map-ink,#253d31);font:inherit}
.resident-ward-form button{min-height:44px;padding:10px 14px;border:1px solid var(--map-border,#adb6a5);border-radius:10px;background:var(--map-soft,#edf0df);color:var(--map-ink,#253d31);font:inherit;cursor:pointer;white-space:normal;text-align:left}
.resident-ward-form button:disabled{opacity:.6;cursor:wait}
.resident-ward-form [data-resident-matches]{display:grid;gap:8px}
.resident-ward-form .resident-privacy{font-size:14px;line-height:1.5}
.resident-ward-form :focus-visible{outline:3px solid #9f742d;outline-offset:2px}

/* The greeting is a separate reading surface, never a translucent map card. */
html body dialog.resident-reader{position:fixed;inset:0;width:100%;height:100%;height:100dvh;max-width:none;max-height:none;margin:0;border:0;border-radius:0;padding:0;box-sizing:border-box;background:#fcf8ec;color:#243e31;overflow:auto;overscroll-behavior:contain;font-family:inherit}
.resident-reader::backdrop{background:#fcf8ec}
.resident-reader-inner{max-width:680px;min-height:100%;box-sizing:border-box;margin:auto;padding: max(24px,env(safe-area-inset-top)) 28px max(28px,env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:28px}
.resident-reader-top{display:flex;justify-content:space-between;align-items:center;gap:16px;font-size:16px;font-weight:600}
.resident-reader main{flex:1;padding:24px 0}
.resident-reader h1{font:inherit;font-size:clamp(30px,5vw,46px);font-weight:650;line-height:1.13;letter-spacing:-.025em;margin:0 0 24px}
.resident-reader .resident-reader-lead{font-size:20px;line-height:1.55;margin:0 0 24px}
.resident-reader .resident-intro-copy p{font-size:18px;line-height:1.6}
.resident-reader nav{display:flex;flex-wrap:wrap;gap:12px}
.resident-reader button{font:inherit;font-size:16px;line-height:1.4;min-height:46px;white-space:normal;border:1px solid #b9c5af;border-radius:12px;background:transparent;color:#243e31;padding:12px 18px;cursor:pointer}
.resident-reader .resident-reader-top button{font-size:14px;border:0;text-decoration:underline;padding:8px}
.resident-reader button.resident-reader-primary{background:#264c3b;color:#fffaf0;border-color:#264c3b}
.resident-reader :focus-visible{outline:3px solid #aa7929;outline-offset:4px}
.resident-control-example{display:flex;align-items:center;gap:16px;width:fit-content;margin-top:28px;border:1px solid #b9c5af;border-radius:18px;padding:18px 24px;background:#fffdf6;font-size:20px;font-weight:600}
.resident-control-example svg{width:36px;height:36px;flex:none}
@media(max-width:420px){.resident-reader-inner{padding-left:22px;padding-right:22px;gap:20px}.resident-reader main{padding:16px 0}.resident-reader nav button{flex:1 1 130px}.resident-reader .resident-reader-lead{font-size:18px}}

/* The optional tour reveals the live interface through a spotlight. */
html body dialog.resident-reader.resident-tour{background:transparent;overflow:hidden}
.resident-reader.resident-tour::backdrop{background:transparent}
.resident-tour-shade{position:absolute;inset:0;background:rgba(15,32,26,.62);pointer-events:none}
.resident-spotlight{position:absolute;box-sizing:border-box;border:3px solid #f0c96b;border-radius:14px;box-shadow:0 0 0 200vmax rgba(15,32,26,.62);pointer-events:none}
.resident-reader [hidden]{display:none!important}
.resident-tour .resident-reader-inner{position:absolute;z-index:1;min-height:0;max-width:none;margin:0;padding:18px 20px;gap:12px;background:#fcf8ec;border:1px solid #c5ccb9;border-radius:18px;box-shadow:0 8px 36px #10251c40;overflow:hidden}
.resident-tour .resident-reader-top{flex:none;font-size:14px;gap:8px}
.resident-tour main{padding:0;min-height:0;overflow:auto;overscroll-behavior:contain}
.resident-tour h1{font-size:26px;margin:0 0 12px;line-height:1.2}
.resident-tour .resident-reader-lead{font-size:17px;line-height:1.5;margin:0 0 12px}
.resident-tour .resident-intro-progress{margin:0;font-size:14px}
.resident-tour nav{flex:none;gap:10px}
.resident-tour nav button{flex:1;min-height:44px;padding:10px 14px}
@media(max-height:450px){.resident-tour .resident-reader-inner{padding:10px 14px;gap:6px}.resident-tour h1{font-size:21px}.resident-tour .resident-reader-top{display:none}}

.resident-reader nav .resident-reader-back{border-color:transparent;text-decoration:underline;flex:0 0 auto;padding-left:0;padding-right:20px}
.resident-reader nav .resident-reader-primary{flex:1}

/* The spotlight needs an unfiltered view of the real control, including in Safari. */
html body dialog.resident-reader,
html body dialog.resident-reader::backdrop{backdrop-filter:none;-webkit-backdrop-filter:none}

.neighborhood-tour-pin{max-width:220px;padding:9px 13px;background:#fffaf0;color:#284333;border:2px solid #bd9448;border-radius:14px;box-shadow:0 3px 16px #152c3633;font:600 15px/1.35 system-ui;text-align:center}
