/* Atlas spit and polish v1: member pages (/member/). Looks only.
   Loaded right after the shared member style in am_page() and in the member map head, so page styles in the body
   and a member's Base Camp colors (same selectors, later in the page) still win. Selectors stay as plain as the
   shared style on purpose. */
:root{--atlas-navy:#061a33;--atlas-forest:#123b23;--atlas-gold:#f5b301;--atlas-line:#e8d9c6;--atlas-muted:#5f4b3b}
html{-webkit-text-size-adjust:100%}
body{font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;line-height:1.55;color:#22170f;background:#fffaf0;margin-top:0;padding-bottom:3rem}
/* The route planner keeps its 40rem column: at 50rem Chrome stops scroll-anchoring when "Your stops changed" appears
   above the viewport on a stop-search blur, so the next button slides away and the tap is lost. */
@media (min-width:60rem){body:not(:has(>header>nav.member-nav)):not(:has(#route-form)){max-width:50rem}}
body>h1:first-child{margin-top:2rem}

/* Atlas bar: the member nav becomes the same navy and gold band as the public header, edge to edge. */
nav.member-nav{border-bottom:0;margin:0 0 1.6rem;padding:.5rem 0 calc(.45rem + 4px);gap:.2rem .15rem;align-items:center;
  border-image:linear-gradient(to bottom,var(--atlas-navy) calc(100% - 4px),var(--atlas-gold) calc(100% - 4px)) fill 0/0/0 100vmax}
nav.member-nav::before{content:"";flex:0 0 auto;width:26px;height:26px;margin-right:.45rem;background:url(/assets/favicon.svg) center/contain no-repeat}
body nav.member-nav a{color:#fff8e6;text-decoration:none;font-weight:700;padding:.3rem .55rem;border-radius:999px;border-bottom:0;line-height:1.25;transition:background .15s,color .15s}
body nav.member-nav a:hover{background:rgba(255,255,255,.13);color:#fff}
body nav.member-nav a.on,body nav.member-nav a[aria-current=page]{background:var(--atlas-gold);color:var(--atlas-navy);border-bottom:0}
body nav.member-nav a[href="/member/signout/"]{margin-left:auto;font-weight:600;opacity:.82}
header>nav.member-nav{margin-bottom:.9rem}

/* Type */
h1{font-size:clamp(1.75rem,4.6vw,2.3rem);line-height:1.15;letter-spacing:-.01em;font-weight:800;color:var(--atlas-navy);margin:.2rem 0 .7rem}
figure h1,figcaption h1{color:inherit}
h2{line-height:1.25;letter-spacing:-.005em}
h3{line-height:1.3}
p,li{max-width:46rem}
small{color:var(--atlas-muted)}
a{text-underline-offset:.18em;text-decoration-thickness:1px}
a:hover{text-decoration-thickness:2px}
:focus-visible{outline:3px solid var(--atlas-gold);outline-offset:2px}

/* Buttons: Atlas pills */
a.button,button{border-radius:999px;padding:.6rem 1.15rem;font-weight:700;letter-spacing:.01em;line-height:1.2;cursor:pointer;
  box-shadow:0 1px 0 rgba(0,0,0,.06),0 2px 6px rgba(6,26,51,.14);transition:filter .15s}
a.button:hover,button:hover{filter:brightness(1.12)}
/* No transform on press: a transform change on the pressed button turns off the browser's scroll anchoring, so when a
   blur grows the page above it (route planner stop search) the button slides away and the tap is lost. */
a.button:active,button:active{filter:brightness(.92);box-shadow:0 1px 2px rgba(6,26,51,.18)}
button:disabled{cursor:default;filter:none}
button.quiet{box-shadow:none;border:1px solid #e0cdb8}

/* Cards */
section.card{background:#fff;border:1px solid var(--atlas-line);border-top:4px solid var(--atlas-gold);border-radius:14px;
  padding:.55rem 1.15rem 1rem;margin:1.1rem 0;box-shadow:0 6px 18px rgba(6,26,51,.07)}
section.card h2{margin:.55rem 0 .5rem}
.saved-note{border-radius:10px;padding:.6rem .9rem}
ul.saved-list li{padding:.5rem 0;border-bottom-color:var(--atlas-line)}

/* Forms */
input[type=text],input[type=email],input[type=number],input[type=search],input[type=tel],input[type=url],input[type=date],input[type=time],input[type=password],select,textarea{
  font:inherit;font-size:max(1rem,16px);line-height:1.35;padding:.5rem .7rem;border:1px solid #cdb9a3;border-radius:10px;background:#fff;color:inherit;max-width:100%;box-sizing:border-box}
textarea{min-height:4.5rem}
input:focus,select:focus,textarea:focus{border-color:var(--atlas-navy);outline:3px solid rgba(245,179,1,.55);outline-offset:0}
input[type=checkbox],input[type=radio]{accent-color:var(--atlas-forest);width:1.1rem;height:1.1rem;vertical-align:-.18em;margin:0 .4rem 0 0}
input[type=file]{font-size:.95rem;max-width:100%}
fieldset{background:#fff;border-color:var(--atlas-line);border-radius:12px;padding:.5rem 1rem .85rem}
legend{font-weight:700;padding:0 .35rem;color:var(--atlas-navy)}
label{line-height:1.4}

/* Maps */
#pinmap,#routemap,#map{border-radius:14px;border:1px solid var(--atlas-line);box-shadow:0 4px 14px rgba(6,26,51,.1)}

/* A hidden image stays hidden (the Base Camp photo preview showed as a broken image). */
img[hidden]{display:none!important}

/* Tier links on the member door and sign-in pages: one pill per Patreon tier, then the comparison. */
p.tier-links{display:flex;flex-wrap:wrap;align-items:center;gap:.45rem .5rem;margin:.4rem 0 1.2rem}
p.tier-links>span{width:100%;font-weight:700;color:var(--atlas-navy)}
p.tier-links a{display:inline-flex;align-items:center;gap:.35rem;min-height:40px;box-sizing:border-box;padding:.35rem .9rem;border-radius:999px;
  border:2px solid var(--atlas-gold);background:#fff;color:var(--atlas-navy);font-weight:700;text-decoration:none}
p.tier-links a b{font-weight:800}
p.tier-links a:hover{background:#fff4d1}
p.tier-links a.tier-compare{border-color:transparent;background:none;text-decoration:underline;padding-left:.2rem}

@media (max-width:48rem),(pointer:coarse){
  nav.member-nav{gap:0;padding-top:.3rem;padding-bottom:calc(.3rem + 4px)}
  nav.member-nav::before{width:20px;height:20px;margin:0 .15rem 0 .3rem}
  body nav.member-nav a{padding:0 .34rem;font-weight:600}
  body nav.member-nav a[href="/member/signout/"]{margin-left:0}
  h1{margin-top:.1rem}
  section.card{padding:.45rem .9rem .85rem}
}
