/* Shared colors, type and header come from the map's style.css. */
.access-page{color-scheme:light}.access-page header .access-label{margin-left:auto;color:var(--muted);font-size:12px;letter-spacing:1px}.access-page main{height:calc(100dvh - 72px);min-height:620px;grid-template-columns:minmax(0,1fr) 410px}.entry-map{position:relative;overflow:hidden;background:#07121d}.entry-caption{position:absolute;left:25px;bottom:25px;color:#919988;letter-spacing:2px;font:10px Georgia,serif}.entry-panel{border-left:1px solid var(--line);background:white;display:flex;align-items:center;padding:38px}.entry-form{width:100%;max-width:350px;margin:auto}.entry-form h1{font-size:27px;font-weight:500;line-height:1.5;letter-spacing:1px;margin:0 0 7px}.intro{font-size:13px;color:var(--muted);margin:0 0 30px}.tabs{display:flex;gap:5px;border-bottom:1px solid var(--line);padding-bottom:10px;margin-bottom:24px}.tabs button{border-radius:3px;padding:5px 10px;color:#777e72;font-size:13px}.tabs button.active{background:#eaf0e5;color:#345b3e}.entry-form label{display:block;margin:17px 0 0;font-size:12px;color:#58614f}.entry-form input{display:block;width:100%;padding:10px 12px;border:1px solid #e2e5df;background:#f5f6f2;border-radius:4px;font-size:14px;margin-top:7px;min-height:43px}.primary{width:100%;margin-top:25px;padding:10px;border:1px solid #d2ddca;border-radius:4px;background:#edf2e5;color:#345b3e;font-size:13px;min-height:43px}.primary:hover{background:#e5eddc}button:disabled{opacity:.5;cursor:wait}.hint{font-size:11px;line-height:1.9;color:#8a9480;margin:15px 0 0}#message{color:#9c4435;font-size:12px;min-height:22px;margin:12px 0}footer{border-top:1px solid var(--line);margin-top:25px;padding-top:16px;display:flex;justify-content:space-between;gap:10px}footer a,footer span{font-size:11px;color:#8a9480;text-decoration:none}footer a:hover{color:var(--accent)}

/* The invitation doorway shares the atlas' night-sky palette. */
.access-page.atlas-space main{grid-template-columns:minmax(0,1fr) 410px;height:calc(100dvh - 72px)}

.access-page.atlas-space .entry-panel{background:linear-gradient(150deg,#11222e,#0d1724);border-color:#304651}.access-page.atlas-space .tabs button{color:#a0b5be}.access-page.atlas-space .tabs button.active{background:#26453e;color:#c0ead9}.access-page.atlas-space .primary{background:#aadfc9;color:#193b33;border-color:#b4e7d1}.access-page.atlas-space .primary:hover{background:#c8f2df}.access-page.atlas-space :is(.hint,footer a,footer span,.entry-caption){color:#8faab7}.access-page.atlas-space #message{color:#edb5a8}

/* A static screenshot supplied by the owner, not a second interactive map. */
.entry-map-image{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain}
.entry-caption{padding:5px 9px;border-radius:3px;background:#07121dcc;letter-spacing:2px;font:11px sans-serif}

/* Mobile access: keep the real screenshot in frame and the form in normal flow. */
@media(max-width:850px), (max-width:950px) and (max-height:500px) and (orientation:landscape){
 .access-page{-webkit-text-size-adjust:100%;text-size-adjust:100%}
 .access-page header{height:56px;min-height:56px;padding:0 max(16px,env(safe-area-inset-left));flex-wrap:nowrap;align-content:normal;gap:12px}
 .access-page header .brand{font-size:27px}
 .access-page header .brand strong{font-size:16px}
 .access-page header .access-label{font-size:11px;white-space:nowrap}
 .access-page.atlas-space main{height:auto;min-height:calc(100svh - 56px);display:flex;flex-direction:column}
 .access-page .entry-map{height:clamp(156px,28svh,240px);flex:none;border-bottom:1px solid var(--line)}
 .access-page .entry-map-image{inset:0;width:100%;height:100%;max-width:100%;object-fit:cover;object-position:center 55%;transform:none}
 .access-page .entry-caption{display:none}
 .access-page .entry-panel{min-width:0;flex:1;align-items:flex-start;border-left:0;padding:22px max(20px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left))}
 .access-page .entry-form{width:100%;max-width:420px;margin:0 auto}
 .access-page .entry-form h1{font-size:24px;line-height:1.35;margin-bottom:5px}
 .access-page .intro{font-size:13px;line-height:1.6;margin-bottom:14px}
 .access-page .tabs{gap:8px;padding-bottom:8px;margin-bottom:14px}
 .access-page .tabs button{flex:1;min-height:44px;padding:8px 12px;font-size:14px}
 .access-page .entry-form label{margin-top:12px;font-size:13px;line-height:1.5}
 .access-page #accessForm>label:first-of-type,.access-page #codeField[hidden]+label{margin-top:0}
 .access-page .entry-form input{min-width:0;min-height:48px;font-size:16px;line-height:1.5;margin-top:6px;padding:11px 12px;scroll-margin-block:24px}
 .access-page .primary{min-height:48px;font-size:15px;margin-top:18px}
 .access-page .hint{font-size:12px;line-height:1.65;margin-top:12px;overflow-wrap:anywhere}
 .access-page #message{font-size:13px;line-height:1.6;overflow-wrap:anywhere;margin:12px 0 0}
 .access-page #message:empty{display:none}
 .access-page footer{margin-top:16px;padding-top:8px;gap:8px;align-items:center;flex-wrap:wrap}
 .access-page footer a,.access-page footer span{font-size:12px}
 .access-page footer a{display:inline-flex;align-items:center;min-height:44px}
}
/* Short screens retain scrolling space instead of scaling the form down. */
@media(max-width:850px) and (max-height:700px){
 .access-page .entry-map{height:clamp(96px,21svh,144px)}
 .access-page .entry-panel{padding-top:16px}
}
@media(min-width:600px) and (max-width:950px) and (max-height:500px) and (orientation:landscape){
 .access-page header{height:48px;min-height:48px;padding:0 max(16px,env(safe-area-inset-left))}
 .access-page.atlas-space main{height:auto;min-height:calc(100svh - 48px);display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,1fr)}
 .access-page .entry-map{height:auto;min-height:0;border-bottom:0}
 .access-page .entry-panel{padding:16px max(20px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) 20px;align-items:flex-start;border-left:1px solid var(--line)}
}
