/*
 * Perfect View's page chrome: tokens, type, and every component the Django templates
 * draw. One file for every page — base.html, the share pages (which do not extend
 * base.html), and the 429 page — so a share link and the owner's page read as one site.
 *
 * The viewer injects its own stylesheet (viewer/src/map/viewer.css), scoped to the
 * mount. Its :root block declares the same tokens with the same values, because the
 * viewer's dev page has no Django chrome at all; keep the two blocks in step. The
 * orbit page copies the three tokens it paints before the bundle arrives.
 *
 * Design notes are in docs/plans/11-redesign.md. The short version: gold (--vis) means
 * land you can see, and nothing else; every place is identified by its own skyline.
 */
:root{
  --bg:#EBF0F1; --panel:#FAFBFB; --panel-2:#E0E7EA; --ink:#15252D; --ink-2:#46575F; --ink-3:#55656D;
  --line:#C8D3D8; --line-2:#DCE3E6; --accent:#1E5F7C;
  --vis:#F2B53A; --vis-ink:#7A4D00; --vis-soft:#FBEBC4;
  --water:#4B84B3; --nf:#7A4FB5; --scene-bg:#DCE6EC;
  --sky-top:#A7C1D4; --sky-h:#F1E7D6; --sun:#D9481F;
  --r0:#2F4A3B; --r1:#4F6F5C; --r2:#6E8C88; --r3:#8EA6B3; --r4:#B2C4D1; --r5:#CCD8E1;
  --focus:#2F6FBF; --bad:#A33333; --on-ink:#FAFBFB;
  /* The dropdown arrow, drawn in --ink-2 because a background image cannot use a variable. */
  --chevron:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2346575F' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  --shadow:0 18px 40px -24px rgba(21,37,45,.45);
  --f-ui:"Archivo",ui-sans-serif,system-ui,sans-serif;
  --f-narrow:"Archivo Narrow","Archivo",ui-sans-serif,system-ui,sans-serif;
  --f-serif:"Source Serif 4",Georgia,"Times New Roman",serif;
  color-scheme:light;
}
@media (prefers-color-scheme:dark){ :root:not([data-theme="light"]){
  --bg:#0E171C; --panel:#152129; --panel-2:#1D2C34; --ink:#E3EBED; --ink-2:#A7B6BC; --ink-3:#8999A1;
  --line:#2A3A42; --line-2:#20303A; --accent:#8CC8E2;
  --vis:#F2B53A; --vis-ink:#F4C565; --vis-soft:#3A2F17;
  --water:#78A8D6; --nf:#B49BE6; --scene-bg:#16222B;
  --sky-top:#0E1A26; --sky-h:#5E5866; --sun:#FF8A5B;
  --r0:#15211C; --r1:#22352D; --r2:#324A4D; --r3:#435E6B; --r4:#58717F; --r5:#6B8191;
  --focus:#7FB0F0; --bad:#F0938A; --on-ink:#0E171C;
  --chevron:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A7B6BC' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  --shadow:0 18px 40px -24px rgba(0,0,0,.8); color-scheme:dark;
}}
:root[data-theme="dark"]{
  --bg:#0E171C; --panel:#152129; --panel-2:#1D2C34; --ink:#E3EBED; --ink-2:#A7B6BC; --ink-3:#8999A1;
  --line:#2A3A42; --line-2:#20303A; --accent:#8CC8E2;
  --vis:#F2B53A; --vis-ink:#F4C565; --vis-soft:#3A2F17;
  --water:#78A8D6; --nf:#B49BE6; --scene-bg:#16222B;
  --sky-top:#0E1A26; --sky-h:#5E5866; --sun:#FF8A5B;
  --r0:#15211C; --r1:#22352D; --r2:#324A4D; --r3:#435E6B; --r4:#58717F; --r5:#6B8191;
  --focus:#7FB0F0; --bad:#F0938A; --on-ink:#0E171C;
  --chevron:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A7B6BC' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  --shadow:0 18px 40px -24px rgba(0,0,0,.8); color-scheme:dark;
}

/* ---------------------------------------------------------------- base */
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--f-ui);font-size:15.5px;line-height:1.55;
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
a{color:var(--accent);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;
  text-decoration-color:color-mix(in srgb,currentColor 35%,transparent)}
a:hover{text-decoration-color:currentColor}
:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
h1,h2,h3{margin:0;font-weight:600;text-wrap:balance}
h1{font-family:var(--f-serif);font-size:clamp(30px,4.2vw,44px);line-height:1.08;letter-spacing:-.012em}
h2{font-family:var(--f-serif);font-size:24px;line-height:1.2;letter-spacing:-.005em}
h3{font-size:15px}
p{margin:0}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---------------------------------------------------------------- header */
.site-head{display:flex;align-items:center;gap:22px;max-width:1228px;margin:0 auto;padding:16px 24px}
.brand{display:inline-flex;align-items:center;gap:10px;color:var(--ink);text-decoration:none;
  font-family:var(--f-serif);font-weight:600;font-size:19px;letter-spacing:-.01em}
.brand:hover{color:var(--ink)}
.brand svg{width:30px;height:30px;display:block;flex:none}
.pv-mark .tile{fill:var(--sky-h)}
.pv-mark .sun{fill:var(--vis)}
.pv-mark .far{fill:var(--r3)}
.pv-mark .near{fill:var(--r0)}
.site-head .spacer{flex:1}
.site-head nav{display:flex;align-items:center;gap:6px}
.site-head nav > *{white-space:nowrap;flex:none}
form.lang .short{display:none}
.site-head nav a.navlink{color:var(--ink-2);text-decoration:none;padding:8px 12px;border-radius:999px;font-weight:500}
.site-head nav a.navlink:hover{color:var(--ink);background:var(--panel-2)}
.site-head nav a.navlink[aria-current="page"]{color:var(--ink)}
.site-head form{margin:0}
/* A phone: the mark is the way to your places, so the words beside it and the nav link go. */
@media (max-width:640px){
  .site-head{gap:10px;padding:12px 16px}
  .site-head nav{gap:2px}
  .site-head nav a.navlink{display:none}
  .site-head .linkish{padding:8px 7px}
  form.lang .long{display:none}
  form.lang .short{display:inline;font-weight:600;letter-spacing:.04em}
  .brand span{display:none}
}

main{max-width:1228px;margin:0 auto;padding:12px 24px 72px}
@media (max-width:640px){ main{padding:8px 16px 56px} }

.site-foot{max-width:1228px;margin:0 auto;padding:22px 24px 40px;color:var(--ink-3);font-size:13px;
  border-top:1px solid var(--line-2)}
.site-foot p{max-width:78ch}
@media (max-width:640px){ .site-foot{padding:18px 16px 32px} }

/* ---------------------------------------------------------------- buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;
  border:1px solid var(--line);background:transparent;color:var(--ink);border-radius:999px;
  padding:8px 18px;font:500 14.5px/1.2 var(--f-ui);cursor:pointer;text-decoration:none;white-space:nowrap;
  transition:background-color .15s,border-color .15s,color .15s}
.btn:hover{border-color:var(--ink-2);background:var(--panel);color:var(--ink);text-decoration:none}
.btn.primary{background:var(--ink);border-color:var(--ink);color:var(--on-ink)}
.btn.primary:hover{background:color-mix(in srgb,var(--ink) 86%,var(--accent));border-color:transparent;color:var(--on-ink)}
.btn.small{min-height:34px;padding:6px 14px;font-size:13.5px}
.btn.big{min-height:50px;padding:12px 26px;font-size:16px}
.btn.danger{color:var(--bad)}
.btn.danger:hover{border-color:var(--bad);color:var(--bad)}
.linkish{border:0;background:none;padding:0;font:inherit;color:var(--accent);cursor:pointer;
  text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;
  text-decoration-color:color-mix(in srgb,currentColor 35%,transparent)}
.linkish:hover{text-decoration-color:currentColor}
.site-head .linkish{color:var(--ink-2);text-decoration:none;padding:8px 10px}
.site-head .linkish:hover{color:var(--ink)}

/* ---------------------------------------------------------------- forms */
.field{display:flex;flex-direction:column;gap:6px;margin:0 0 16px}
.field label,.label{font-size:14px;font-weight:500;color:var(--ink)}
.field .hint,.hint{font-size:13.5px;color:var(--ink-2)}
input[type=text],input[type=search],input[type=number],input[type=password],input[type=email],select,textarea{
  width:100%;border:1px solid var(--line);background:var(--panel);color:var(--ink);
  border-radius:10px;padding:10px 13px;font:inherit;font-size:15.5px;min-height:44px;
  transition:border-color .15s,box-shadow .15s}
/* The browser's own dropdown arrow sits hard against the right edge whatever the
   padding, so it is drawn here instead, with room either side of it. */
select{appearance:none;-webkit-appearance:none;background-image:var(--chevron);background-repeat:no-repeat;
  background-position:right 14px center;background-size:18px 18px;padding-right:44px;cursor:pointer}
input:hover,select:hover,textarea:hover{border-color:var(--ink-3)}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--focus);
  box-shadow:0 0 0 3px color-mix(in srgb,var(--focus) 22%,transparent)}
textarea{resize:vertical;min-height:96px}
input::placeholder,textarea::placeholder{color:var(--ink-3);opacity:1}
ul.errorlist{list-style:none;margin:0 0 12px;padding:0;color:var(--bad);font-size:14px}
.help{display:inline-grid;place-items:center;width:17px;height:17px;border-radius:50%;
  border:1px solid var(--ink-3);color:var(--ink-3);font:600 11px/1 var(--f-ui);margin-left:7px;
  vertical-align:1px;cursor:help}
.help:hover,.help:focus-visible{color:var(--ink);border-color:var(--ink-2)}

/* ---------------------------------------------------------------- notices and messages */
.notice{border:1px solid var(--line);background:var(--panel);border-radius:12px;padding:12px 16px;
  font-size:14.5px;color:var(--ink-2);margin:0 0 18px;display:flex;gap:12px;align-items:flex-start}
.notice::before{content:"";flex:none;width:8px;height:8px;border-radius:50%;background:var(--accent);margin-top:7px}
.notice strong{color:var(--ink)}
.notice.bad::before{background:var(--bad)}
ul.messages{list-style:none;margin:6px 0 20px;padding:0;display:flex;flex-direction:column;gap:8px}
ul.messages li{border:1px solid var(--line);background:var(--panel);border-radius:12px;padding:10px 16px;font-size:14.5px}

/* ---------------------------------------------------------------- shared blocks */
.back-link{display:inline-flex;align-items:center;gap:4px;color:var(--ink-2);text-decoration:none;
  font-size:14px;font-weight:500;margin:6px 0 18px}
.back-link:hover{color:var(--ink)}
/* The top of a place's page: the way back, and Share within a thumb's reach. */
.place-top{display:flex;align-items:center;justify-content:space-between;gap:10px 16px;flex-wrap:wrap;margin:6px 0 18px}
.place-top .back-link{margin:0}
.share-now{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap;margin:0;min-width:0}
.share-now .btn{gap:8px}
.share-now .btn svg{width:17px;height:17px}
.share-now .said{font-size:14px;color:var(--ink-2);min-width:0;overflow-wrap:anywhere}
.share-now .said a{color:inherit}
/* Who shared a view: the agent's card on a client's page and on the profile page. */
.agent{display:flex;align-items:center;gap:14px 16px;flex-wrap:wrap;background:var(--panel);border:1px solid var(--line-2);
  border-radius:16px;padding:16px 20px;margin:0 0 28px}
.agent .initial{flex:none;display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:var(--panel-2);
  font:600 20px/1 var(--f-serif);color:var(--ink)}
.agent .who{flex:1 1 200px;min-width:0}
.agent .who p{margin:0}
.agent .by{font-size:12.5px;color:var(--ink-3);text-transform:uppercase;letter-spacing:.06em}
.agent .name{font:600 19px/1.25 var(--f-serif)}
.agent .firm{font-size:14px;color:var(--ink-2)}
.agent .reach{display:flex;gap:8px;flex-wrap:wrap;margin:0}
.profile-grid{display:grid;grid-template-columns:minmax(0,520px) minmax(0,1fr);gap:28px 48px;align-items:start}
@media (max-width:900px){ .profile-grid{grid-template-columns:1fr} }
.profile .field{margin:0 0 16px}
.profile .hint{margin:0 0 18px}
.preview-head{font-size:21px;margin:0 0 14px}
.back-link svg{width:18px;height:18px}
.section{margin-top:56px}
.section > header{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:0 0 16px}
.section > header p{color:var(--ink-2);margin-top:4px;max-width:62ch}
.panel{background:var(--panel);border:1px solid var(--line-2);border-radius:16px;padding:22px 24px}
@media (max-width:640px){ .panel{padding:18px} }
.empty{border:1px dashed var(--line);border-radius:16px;padding:40px 24px;text-align:center;color:var(--ink-2)}
.empty h2{color:var(--ink);margin-bottom:8px}
.empty p{max-width:52ch;margin:0 auto 18px}
.caveat{display:flex;gap:10px;align-items:flex-start;color:var(--ink-2);font-size:14px;max-width:70ch}
.caveat svg{flex:none;width:18px;height:18px;margin-top:2px;color:var(--ink-3)}

/* The view meter: five rising bars, the filled ones in sunlit gold. */
.meter{display:inline-flex;align-items:flex-end;gap:3px;height:20px;flex:none}
.meter i{display:block;width:6px;border-radius:2px;background:var(--line)}
.meter i:nth-child(1){height:6px} .meter i:nth-child(2){height:9.5px} .meter i:nth-child(3){height:13px}
.meter i:nth-child(4){height:16.5px} .meter i:nth-child(5){height:20px}
.meter i.on{background:var(--vis)}
.meter.small{height:15px;gap:2px}
.meter.small i{width:4.5px}
.meter.small i:nth-child(1){height:4.5px} .meter.small i:nth-child(2){height:7px} .meter.small i:nth-child(3){height:9.5px}
.meter.small i:nth-child(4){height:12px} .meter.small i:nth-child(5){height:15px}

/* A skyline strip, drawn server side by the skyline_svg tag. */
.skyline{display:block;width:100%;height:100%;background:linear-gradient(180deg,var(--sky-top),var(--sky-h) 88%)}
.skyline .r0{fill:var(--r0)} .skyline .r1{fill:var(--r1)} .skyline .r2{fill:var(--r2)}
.skyline .r3{fill:var(--r3)} .skyline .r4{fill:var(--r4)} .skyline .r5{fill:var(--r5)}
.skyline .eye{stroke:color-mix(in srgb,var(--panel) 70%,transparent);stroke-width:1;stroke-dasharray:3 4}

/* ---------------------------------------------------------------- the place hero */
.hero{margin:0 0 28px}
.hero .where{color:var(--ink-2);font-size:16px;margin-top:10px}
.verdict{margin-top:26px;max-width:34rem}
.verdict .name{display:flex;align-items:center;gap:12px;font-weight:600;font-size:16px}
.verdict .line{font-family:var(--f-serif);font-size:22px;line-height:1.35;margin-top:8px;letter-spacing:-.003em}
.hero .caveat{margin-top:16px;font-size:13.5px}
.hero-acts{display:flex;gap:10px;flex-wrap:wrap;margin:22px 0 0}
.hero-acts .btn{gap:8px}
.hero-acts .btn svg{width:15px;height:15px}
/* With a skyline: one picture. The sky runs from the top of the words to the foot of
   the strip, so the name and the verdict are written on the place's own sky. */
.hero.has-sky .hero-view{border-radius:18px;overflow:hidden;
  background:linear-gradient(180deg,var(--sky-top),var(--sky-h) 92%)}
.hero.has-sky .hero-words{padding:30px 34px 22px}
.hero.has-sky .where{color:var(--ink)}
.hero.has-sky .meter i:not(.on){background:color-mix(in srgb,var(--panel) 75%,transparent)}
.hero.has-sky .btn:not(.primary){background:color-mix(in srgb,var(--panel) 80%,transparent)}
/* The box holds the still skyline in its lower part, under open sky. The viewer's live
   panorama fills the whole box when it is ready (viewer.css, .pv-hero-pano), so the
   box is that picture's height from the first byte and nothing below it moves. */
.hero-sky{position:relative;height:clamp(240px,36vh,380px)}
.hero-still{position:absolute;inset:auto 0 0 0;height:62%;transition:opacity .6s}
.hero-sky.pv-live .hero-still{opacity:0;visibility:hidden;transition:opacity .6s,visibility 0s .6s}
.hero-sky .skyline{background:none}
.hero-sky .compass{position:absolute;inset:auto 0 6px 0;display:flex;justify-content:space-between;padding:0 10px;
  font:600 11px/1 var(--f-narrow);letter-spacing:.08em;color:#fff;opacity:.85;pointer-events:none}
/* A peak's name, level, on a short leader down to its ridge. */
.hero-sky .peak{position:absolute;transform:translateX(-50%);margin-bottom:14px;padding:3px 8px;border-radius:999px;
  background:color-mix(in srgb,var(--panel) 88%,transparent);color:var(--ink);
  font:600 12.5px/1.2 var(--f-narrow);white-space:nowrap;pointer-events:none}
.hero-sky .peak::after{content:"";position:absolute;left:50%;top:100%;width:1px;height:14px;
  background:color-mix(in srgb,var(--panel) 88%,transparent)}
@media (max-width:640px){
  .hero.has-sky .hero-words{padding:22px 18px 16px}
  .hero-sky .peak:not(.phone){display:none}
}
/* The four facts: a row under the picture, two by two on a phone. */
dl.facts{margin:18px 0 0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0 28px;
  border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
dl.facts > div{padding:12px 0 13px}
dl.facts dt,dl.facts dd{margin:0}
dl.facts dt{color:var(--ink-2);font-size:13.5px}
dl.facts dd{font-weight:600;font-size:19px;font-variant-numeric:tabular-nums;margin-top:2px}
dl.facts dd small{display:inline;font-weight:400;font-size:13px;color:var(--ink-2);margin-left:6px}
dl.facts dd.vis{color:var(--vis-ink)}
/* How the present view differs from the first, written by the viewer; empty until it does. */
dl.facts dd.chg{font-weight:400;font-size:13px;color:var(--ink-2);margin-top:1px}
dl.facts dd.chg:empty{display:none}
dl.facts dd.chg b{font-weight:600;color:var(--ink)}
@media (max-width:760px){
  dl.facts{grid-template-columns:repeat(2,minmax(0,1fr))}
  dl.facts > div:nth-child(-n+2){border-bottom:1px solid var(--line)}
  dl.facts dd small{display:block;margin-left:0}
  .verdict .line{font-size:20px}
}

/* ---------------------------------------------------------------- the sun
   The skyline again, with the sun's low path on three dates and a mark where it
   first clears the ridges and where it leaves. The sun has its own colour: gold is
   land you can see. */
.sun-sky{position:relative;height:clamp(118px,19vw,236px);border-radius:18px;overflow:hidden;
  background:linear-gradient(180deg,var(--sky-top),var(--sky-h) 92%)}
.sun-sky .skyline{background:none}
.sun-sky .sun-paths{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.sun-sky .sun-paths path{fill:none;stroke:var(--sun);stroke-width:1.5;stroke-dasharray:2 5;stroke-linecap:round}
.sun-sky .compass{position:absolute;inset:auto 0 6px 0;display:flex;justify-content:space-between;padding:0 10px;
  font:600 11px/1 var(--f-narrow);letter-spacing:.08em;color:#fff;opacity:.85}
/* A mark is a point: the disc is centred on it and the month hangs under it, or
   stands over it when the point is too near the foot of the strip. */
.sun-sky .mark{position:absolute;width:0;height:0;font:600 11px/1 var(--f-narrow);color:#fff;
  text-shadow:0 1px 2px rgba(0,0,0,.6)}
.sun-sky .mark i{position:absolute;left:-6.5px;top:-6.5px;width:13px;height:13px;border-radius:50%;background:var(--sun);
  box-shadow:0 0 0 2px #fff,0 0 12px 3px color-mix(in srgb,var(--sun) 55%,transparent)}
.sun-sky .mark b{position:absolute;left:0;top:11px;transform:translateX(-50%);font-weight:600}
.sun-sky .mark.low b{top:auto;bottom:11px}
.sun-days{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 36px;margin-top:18px}
.sun-day h3{font-size:15px;padding-bottom:8px;border-bottom:1px solid var(--line)}
.sun-day dl{margin:0}
.sun-day dl > div{display:flex;justify-content:space-between;gap:14px;padding:10px 0;border-bottom:1px solid var(--line)}
.sun-day dt{color:var(--ink-2);font-size:14px;white-space:nowrap}
.sun-day dd{margin:0;text-align:right;font-weight:600;font-size:15px}
.sun-day dd small{display:block;font-weight:400;font-size:13px;color:var(--ink-2);margin-top:1px}
.sunlight .caveat{margin-top:16px;font-size:13.5px}
@media (max-width:760px){
  .sun-days{grid-template-columns:1fr;gap:18px}
}

/* ---------------------------------------------------------------- about this view */
.narrative{font-family:var(--f-serif);font-size:17.5px;line-height:1.62;max-width:64ch}
.narrative p{margin:0 0 14px}
.narrative p:last-child{color:var(--ink-2);font-size:16px}
.peaks h3{font-size:14px;color:var(--ink-2);font-weight:500;margin:0 0 6px}
ul.peaks-list{list-style:none;margin:0 0 18px;padding:0;border-top:1px solid var(--line)}
ul.peaks-list li{display:flex;justify-content:space-between;gap:14px;padding:10px 0;border-bottom:1px solid var(--line);font-size:15px}
ul.peaks-list li span:last-child{color:var(--ink-2);font-variant-numeric:tabular-nums;white-space:nowrap}
.peaks .note{font-size:14px;color:var(--ink-2);margin:0 0 10px}
.tag{display:inline-block;padding:3px 10px;border-radius:999px;background:var(--panel-2);font-size:13px;color:var(--ink-2)}

/* ---------------------------------------------------------------- the list of places */
.list-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;flex-wrap:wrap;margin:18px 0 28px}
.list-head p{color:var(--ink-2);margin-top:8px;max-width:60ch}
.places{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:22px}
.place{position:relative;background:var(--panel);border:1px solid var(--line-2);border-radius:16px;overflow:hidden;
  display:flex;flex-direction:column;transition:border-color .15s,box-shadow .2s}
.place:hover{border-color:var(--line);box-shadow:var(--shadow)}
.place .sky{position:relative;height:104px;background:linear-gradient(180deg,var(--sky-top),var(--sky-h) 88%)}
.place .sky .compass{position:absolute;inset:auto 0 4px 0;display:flex;justify-content:space-between;padding:0 6px;
  font:600 10px/1 var(--f-narrow);letter-spacing:.04em;color:color-mix(in srgb,var(--panel) 80%,transparent);pointer-events:none}
.place .sky .none{position:absolute;inset:0;display:grid;place-items:center;font-size:13px;color:var(--ink-2)}
.place .body{padding:16px 18px 18px;display:flex;flex-direction:column;gap:4px;flex:1}
.place h2{font-size:20px;line-height:1.25}
.place h2 a{color:var(--ink);text-decoration:none}
.place h2 a::after{content:"";position:absolute;inset:0}
.place .where{font-size:13.5px;color:var(--ink-2)}
.place .rating{display:flex;align-items:center;gap:9px;margin-top:12px;font-weight:600;font-size:14.5px}
.place .figs{display:flex;gap:22px;margin:12px 0 0;padding-top:12px;border-top:1px solid var(--line-2)}
.place .figs div{display:flex;flex-direction:column}
.place .figs dt{font-size:12.5px;color:var(--ink-2)}
.place .figs dd{margin:0;font-weight:600;font-variant-numeric:tabular-nums}
.place .team-tag{align-self:flex-start;margin-top:6px;padding:2px 9px;border-radius:999px;background:var(--panel-2);font-size:12.5px;color:var(--ink-2)}
.place .state{margin-top:12px;font-size:14px;color:var(--ink-2)}
.place .state.bad{color:var(--bad)}
.place .added-by{font-size:12.5px;color:var(--ink-3);margin-top:2px}
/* Share, on a card: above the link that covers the card, in the corner of its sky. */
.card-share{position:absolute;top:8px;right:8px;z-index:2;display:flex;flex-direction:row-reverse;align-items:center;gap:8px;margin:0}
.card-share button{display:grid;place-items:center;width:38px;height:38px;border:0;border-radius:50%;cursor:pointer;
  background:color-mix(in srgb,var(--panel) 86%,transparent);color:var(--ink);transition:background-color .15s}
.card-share button:hover{background:var(--panel)}
.card-share button svg{width:17px;height:17px}
.card-share .said{padding:4px 10px;border-radius:999px;background:var(--panel);font-size:12.5px;color:var(--ink);max-width:230px;
  overflow-wrap:anywhere}
.card-share .said:empty{display:none}
/* Tags: on a card, in the row that filters the list, and at the top of a place's page. */
.place .tags{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px}
.place .tags span,.tag-line a:not(.edit){padding:2px 10px;border-radius:999px;background:var(--panel-2);font-size:12.5px;color:var(--ink-2)}
.tag-row{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 20px}
.tag-row a{display:inline-flex;align-items:center;gap:7px;min-height:34px;padding:5px 14px;border:1px solid var(--line);
  border-radius:999px;font-size:13.5px;font-weight:500;color:var(--ink-2);text-decoration:none}
.tag-row a:hover{border-color:var(--ink-2);color:var(--ink)}
.tag-row a[aria-current="true"]{background:var(--ink);border-color:var(--ink);color:var(--on-ink)}
.tag-row small{font-size:12px;font-weight:400;opacity:.8;font-variant-numeric:tabular-nums}
.tag-line{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:-6px 0 16px}
.tag-line a:not(.edit){text-decoration:none;font-size:13px}
.tag-line a:not(.edit):hover{color:var(--ink)}
.tag-line .edit{margin-left:6px;font-size:13px;color:var(--ink-2)}
.tag-picks{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0;font-size:13.5px;color:var(--ink-2)}
.tag-picks button{border:1px dashed var(--line);background:none;border-radius:999px;padding:4px 12px;font:inherit;color:var(--ink);cursor:pointer}
.tag-picks button:hover{border-style:solid;border-color:var(--ink-2)}

/* ---------------------------------------------------------------- saved views */
.vp-list{list-style:none;margin:0;padding:0;border-top:1px solid var(--line)}
.vp-list li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 16px;align-items:center;padding:13px 0;border-bottom:1px solid var(--line)}
.vp-list .vp-name{font-weight:600;font-size:16px;color:var(--ink);text-decoration:none}
.vp-list .vp-name:hover{color:var(--accent)}
.vp-list li.on .vp-name::before{content:"";display:inline-block;width:9px;height:9px;border-radius:50%;background:var(--ink);margin-right:9px;vertical-align:1px}
.vp-list .vp-figs{grid-column:1;display:flex;flex-wrap:wrap;gap:2px 16px;font-size:13.5px;color:var(--ink-2);font-variant-numeric:tabular-nums}
.vp-list .vp-acts{grid-column:2;grid-row:1 / span 2;display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.vp-list form{margin:0}
@media (max-width:560px){
  .vp-list li{grid-template-columns:1fr}
  .vp-list .vp-acts{grid-column:1;grid-row:auto;justify-content:flex-start;margin-top:6px}
}

/* ---------------------------------------------------------------- the printed sheet
   One Letter or A4 page. On screen it is the page on a grey desk; printed, only the page. */
.place-acts{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;min-width:0}
.place-acts > .btn{gap:8px}
.place-acts > .btn svg{width:17px;height:17px}
body.sheet-page{background:var(--panel-2);padding:0 16px 40px}
.sheet-bar{display:flex;align-items:center;gap:10px;max-width:8.5in;margin:0 auto;padding:16px 0}
.sheet-bar .spacer{flex:1}
.sheet-bar form{margin:0}
.sheet-bar .back-link{margin:0}
.sheet{max-width:8.5in;margin:0 auto;background:#fff;color:var(--ink);padding:.55in .6in;border-radius:6px;box-shadow:var(--shadow)}
.sheet-head{position:relative}
.sheet-head .brand{position:absolute;right:0;top:0;display:flex;align-items:center;gap:8px;font-family:var(--f-serif);font-weight:600;font-size:15px}
.sheet-head .brand svg{width:26px;height:26px}
.sheet-head .kicker{color:var(--ink-2);font-size:14px}
.sheet-head h1{font-size:38px;line-height:1.1;margin-top:4px;padding-right:150px}
.sheet-head .where{color:var(--ink-2);margin-top:6px}
.sheet-sky{position:relative;height:2.1in;margin-top:18px;border-radius:12px;overflow:hidden;
  background:linear-gradient(180deg,var(--sky-top),var(--sky-h) 92%);-webkit-print-color-adjust:exact;print-color-adjust:exact}
.sheet-sky .skyline{background:none}
.sheet-sky .compass{position:absolute;inset:auto 0 6px 0;display:flex;justify-content:space-between;padding:0 10px;
  font:600 11px/1 var(--f-narrow);letter-spacing:.08em;color:#fff;opacity:.85}
.sheet-sky .peak{position:absolute;transform:translateX(-50%);margin-bottom:14px;padding:3px 8px;border-radius:999px;
  background:rgba(255,255,255,.9);color:var(--ink);font:600 12px/1.2 var(--f-narrow);white-space:nowrap}
.sheet-sky .peak::after{content:"";position:absolute;left:50%;top:100%;width:1px;height:14px;background:rgba(255,255,255,.9)}
.sheet .verdict{margin-top:18px;max-width:none}
.sheet .verdict .line{font-size:19px}
.sheet .meter i,.sheet dd.vis{-webkit-print-color-adjust:exact;print-color-adjust:exact}
.sheet dl.facts{margin-top:16px}
.sheet-cols{display:grid;grid-template-columns:1.25fr 1fr;gap:0 36px;margin-top:20px}
.sheet-cols h2{font-family:var(--f-ui);font-size:14px;font-weight:600;color:var(--ink-2);margin-bottom:6px}
.sheet-cols table{width:100%;border-collapse:collapse;font-size:14px}
.sheet-cols th,.sheet-cols td{text-align:left;padding:8px 8px 8px 0;border-bottom:1px solid var(--line);font-weight:400;vertical-align:top}
.sheet-cols thead th{color:var(--ink-2);font-size:12.5px}
.sheet-cols tbody th{font-weight:600}
.sheet-cols td:nth-child(2){white-space:nowrap}
.sheet-cols ul.peaks-list{margin:0}
.sheet-cols ul.peaks-list li{padding:8px 0;font-size:14px}
.sheet-foot{display:flex;justify-content:space-between;align-items:flex-end;gap:28px;margin-top:26px;padding-top:18px;border-top:1px solid var(--line)}
.sheet-foot p{margin:0;font-size:14px}
.sheet-foot .name{font-family:var(--f-serif);font-weight:600;font-size:19px}
.sheet-foot .small{font-size:11.5px;color:var(--ink-2);max-width:46ch;margin-top:12px}
.sheet-foot .scan{display:flex;align-items:center;gap:14px;flex:none}
.sheet-foot .code{width:1.15in;height:1.15in}
.sheet-foot .code svg{display:block;width:100%;height:100%}
.sheet-foot .scan span{font-size:11.5px;color:var(--ink-2);overflow-wrap:anywhere}
@media (max-width:640px){
  .sheet{padding:22px 18px}
  .sheet-head h1{font-size:28px;padding-right:0}
  .sheet-head .brand{position:static;margin-bottom:12px}
  .sheet-sky{height:120px}
  .sheet-cols{grid-template-columns:1fr;gap:20px}
  .sheet-foot{flex-direction:column;align-items:flex-start}
}
@page{size:auto;margin:.4in}
@media print{
  body.sheet-page{background:#fff;padding:0}
  .sheet-bar{display:none}
  .sheet{max-width:none;box-shadow:none;border-radius:0;padding:0}
}

/* ---------------------------------------------------------------- team */
.team-grid{display:grid;grid-template-columns:minmax(0,640px) minmax(0,360px);gap:28px 48px;align-items:start}
@media (max-width:980px){ .team-grid{grid-template-columns:1fr} }
.team-grid .panel + .panel{margin-top:20px}
.invite .hint{flex:1 1 100%;margin:0}
.section.tight{margin-top:34px}
.people{list-style:none;margin:0;padding:0;border-top:1px solid var(--line)}
.people li{display:flex;align-items:center;gap:14px;padding:13px 0;border-bottom:1px solid var(--line)}
.people .initial{flex:none;width:38px;height:38px;border-radius:50%;display:grid;place-items:center;
  background:var(--accent);color:var(--on-ink);font-weight:600}
.people .initial.ghost{background:none;border:1.5px dashed var(--line);color:var(--ink-2)}
.people .who{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.people .who b{font-weight:600;overflow-wrap:anywhere}
.people .who b small{font-weight:400}
.people small{color:var(--ink-2);font-size:13.5px}
.people .acts{display:flex;gap:14px;flex-wrap:wrap;justify-content:flex-end}
.people form{margin:0}
.people .copyable{margin-top:6px;font-size:13px;padding:7px 10px;min-height:0;color:var(--ink-2)}
.other-teams h2{font-size:17px;margin-bottom:6px}
.other-teams form{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0 0}

/* ---------------------------------------------------------------- compare
   Places one under another, each strip at the one scale. */
.list-acts{margin:0 0 16px;display:flex;justify-content:flex-end}
.versus{list-style:none;margin:0 0 34px;padding:0;display:grid;gap:18px}
.versus li{background:var(--panel);border:1px solid var(--line-2);border-radius:16px;overflow:hidden}
.versus .sky{position:relative;height:clamp(84px,13vw,150px);background:linear-gradient(180deg,var(--sky-top),var(--sky-h) 88%)}
.versus .sky .compass{position:absolute;inset:auto 0 4px 0;display:flex;justify-content:space-between;padding:0 8px;
  font:600 10.5px/1 var(--f-narrow);letter-spacing:.08em;color:#fff;opacity:.85}
.versus .body{display:flex;justify-content:space-between;align-items:flex-end;gap:14px 40px;flex-wrap:wrap;padding:16px 20px 18px}
.versus h2{font-size:20px;line-height:1.25}
.versus h2 a{color:var(--ink);text-decoration:none}
.versus h2 a:hover{text-decoration:underline}
.versus .where{font-size:13.5px;color:var(--ink-2);margin-top:2px}
.versus .rating{display:flex;align-items:center;gap:9px;margin-top:10px;font-weight:600;font-size:14.5px}
.versus .figs{display:grid;grid-template-columns:repeat(4,auto);gap:10px 34px;margin:0}
.versus .figs dt{font-size:12.5px;color:var(--ink-2)}
.versus .figs dd{margin:0;font-weight:600;font-variant-numeric:tabular-nums}
.versus .figs dd.vis{color:var(--vis-ink)}
@media (max-width:640px){
  .versus .body{padding:14px 16px 16px}
  .versus .figs{grid-template-columns:repeat(2,minmax(0,1fr));width:100%;padding-top:12px;border-top:1px solid var(--line-2)}
}
.pick{max-width:720px;margin:0 0 30px}
.pick fieldset{border:0;margin:0 0 14px;padding:0}
.pick legend{font-weight:600;font-size:17px;padding:0;margin-bottom:10px}
.pick ul{list-style:none;margin:0;padding:0;border-top:1px solid var(--line)}
.pick li{border-bottom:1px solid var(--line)}
.pick label{display:flex;align-items:baseline;gap:10px;padding:11px 2px;cursor:pointer;flex-wrap:wrap}
.pick input{flex:none;width:17px;height:17px;accent-color:var(--accent);transform:translateY(2px)}
.pick small{color:var(--ink-2);font-size:13.5px}

/* ---------------------------------------------------------------- intake */
.intro{max-width:720px;margin:26px 0 30px}
.intro p{font-size:17px;color:var(--ink-2);margin-top:12px;max-width:58ch}
.intake{max-width:720px;background:var(--panel);border:1px solid var(--line-2);border-radius:18px;padding:26px 28px 28px}
.intake.confirm{max-width:none}
@media (max-width:640px){ .intake{padding:20px 18px} }
.intake h2{font-size:21px;margin:28px 0 6px}
.intake h2.first{margin-top:0}
.intake .hint.lead{margin:0 0 14px}
.intake .pair{display:flex;gap:16px;flex-wrap:wrap}
.intake .pair>.field{flex:1 1 220px}
.intake .actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:24px 0 0}
.intake details.rename{margin:16px 0 0}
.intake details.rename summary{cursor:pointer;color:var(--ink-2);font-size:14.5px;width:max-content;max-width:100%}
.intake details.rename summary b{color:var(--ink);font-weight:600}
.intake details.rename[open] summary{margin-bottom:12px}
.intake-grid > *{min-width:0}
.intake.many textarea{width:100%;min-height:190px;resize:vertical;font:inherit;line-height:1.5}
.many-results{max-width:720px;margin:0 0 30px}
.many-results h2{font-size:21px;margin-bottom:10px}
.many-results .who b.bad{color:var(--bad);font-weight:500}
.many-next{margin:18px 0 0}
/* The one box: the field and its button on a line, stacked on a phone. */
.onebox{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap}
.onebox .field{flex:1 1 320px;margin:0}
.onebox .btn{min-height:54px}
.onebox .errorlist{flex:1 1 100%}
@media (max-width:560px){ .onebox .btn{width:100%} }
.onebox.quick{margin:0 0 30px;max-width:820px}
.archived-link{margin:26px 0 0;font-size:14.5px}
.notice.archived{display:flex;align-items:center;justify-content:space-between;gap:10px 16px;flex-wrap:wrap;margin:0 0 18px}
/* Search, the view filter, and sort above the list. On a phone each takes a row, the
   two choices with their short label beside them so the whole option shows.
   first-of-type, not first-child: the archived list puts a hidden input first. */
.find{display:flex;gap:12px 16px;align-items:flex-end;flex-wrap:wrap;margin:0 0 22px}
.find .field{margin:0}
.find .field:first-of-type{flex:1 1 260px;max-width:420px}
@media (max-width:600px){
  .find{gap:10px}
  .find .field{flex-basis:100%}
  .find .field:first-of-type{max-width:none}
  .find .field:not(:first-of-type){flex-direction:row;align-items:center;gap:12px}
  .find .field:not(:first-of-type) label{flex:0 0 52px;margin:0}
  .find select{flex:1;min-width:0}
}
.found{color:var(--ink-2);font-size:14px;margin:0 0 14px}
.takes{list-style:none;margin:22px 0 0;padding:0;display:flex;flex-direction:column;gap:8px;font-size:14.5px;color:var(--ink-2)}
.takes b{color:var(--ink);font-weight:600}
.big-input input{font-size:18px;min-height:54px;padding:12px 16px;border-radius:12px}
.intake-map{height:440px;border:1px solid var(--line);border-radius:14px;overflow:hidden;
  background:var(--panel-2);margin:0 0 10px;position:relative}
.intake-map .maplibregl-canvas{outline:none}
.intake-map .pv-map-failed{padding:16px;color:var(--ink-2);font-size:14px}
/* The marker is the page's accent, which is dark: a light edge keeps it findable on a
   photograph of trees. */
.intake-map .maplibregl-marker svg{filter:drop-shadow(0 0 1.5px #fff) drop-shadow(0 0 1.5px #fff)}
/* Aerial or map: two buttons joined, with the map's own controls. The colours are fixed,
   like MapLibre's own buttons, because the map under them is the same in both themes. */
.pv-basemap{display:flex;background:#fff;border-radius:8px;box-shadow:0 0 0 2px rgba(0,0,0,.1);overflow:hidden}
.pv-basemap button{appearance:none;border:0;background:#fff;color:#333;font:600 13px/1 var(--f-ui);
  padding:0 12px;min-height:34px;cursor:pointer}
.pv-basemap button + button{border-left:1px solid #ddd}
.pv-basemap button[aria-pressed="true"]{background:#16242c;color:#fff}
.pv-basemap button:focus-visible{outline:2px solid #1E5F7C;outline-offset:-2px}
/* A miss that knows the town: the map to point at the house on, above the box. */
.place-it{margin:0 0 6px}
.place-it .actions{margin:14px 0 0}
.or-again{margin:26px 0 12px;padding-top:20px;border-top:1px solid var(--line);color:var(--ink-2);font-size:14.5px}
.place-it #pv-intake-moved:not(:empty)::before{content:none}
/* The status line joins the summary under the map once the marker has been dragged. */
#pv-intake-moved:not(:empty)::before{content:"· "}
.coverage{margin-top:22px;font-size:14px;color:var(--ink-2);max-width:62ch}
.intake-grid{display:grid;grid-template-columns:minmax(0,720px) minmax(240px,340px);gap:32px 56px;align-items:start}
.expect{padding-top:8px}
.expect h2{font-size:21px;margin-bottom:14px}
.expect ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:18px}
.expect li{display:grid;grid-template-columns:40px 1fr;gap:14px;align-items:start;font-size:14.5px;color:var(--ink-2)}
.expect li b{color:var(--ink);font-weight:600}
.expect li > svg,.expect li > .meter,.expect li > .gold{margin-top:3px}
.expect li > svg{width:40px;height:16px;border-radius:3px;background:linear-gradient(180deg,var(--sky-top),var(--sky-h))}
.expect li > svg.plain{background:none;color:var(--ink-2)}
.expect .gold{display:block;width:40px;height:16px;border-radius:3px;
  background:linear-gradient(135deg,var(--vis) 0 55%,color-mix(in srgb,var(--r1) 70%,var(--vis)) 55%)}
@media (max-width:980px){ .intake-grid{grid-template-columns:1fr} .expect{padding-top:0} }

/* ---------------------------------------------------------------- build progress */
.build-card{border:1px solid var(--line-2);background:var(--panel);border-radius:18px;padding:28px;
  display:grid;grid-template-columns:auto minmax(0,1fr);gap:22px;align-items:center}
.build-card .mark{width:64px;height:64px;border-radius:16px;display:grid;place-items:center;
  background:linear-gradient(180deg,var(--sky-top),var(--sky-h))}
.build-card .mark svg{width:46px;height:46px}
.build-card h2{font-size:22px}
.build-card p{color:var(--ink-2);margin-top:6px;max-width:64ch}
.build-card .bar{height:8px;border-radius:999px;background:var(--panel-2);overflow:hidden;margin-top:16px;max-width:520px}
.build-card .bar i{display:block;height:100%;border-radius:999px;background:var(--vis);transition:width .4s}
.build-card form{margin-top:16px}
.build-card.bad .mark{background:var(--panel-2)}
.build-card details.why{margin-top:10px;font-size:13.5px;color:var(--ink-2)}
.build-card details.why summary{cursor:pointer}
.build-card details.why code{display:block;margin-top:6px;padding:10px 12px;border-radius:8px;background:var(--panel-2);
  font:12.5px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace;white-space:pre-wrap;word-break:break-word}
@media (max-width:640px){ .build-card{grid-template-columns:1fr;padding:22px} }

/* ---------------------------------------------------------------- menus
   A <details class="menu"> is a dropdown: the header's account menu and a place's
   "More". static/js/ui.js shuts one on a press elsewhere. */
details.menu{position:relative}
details.menu > summary{list-style:none;cursor:pointer;user-select:none}
details.menu > summary::-webkit-details-marker{display:none}
.menu-list{position:absolute;right:0;top:calc(100% + 8px);z-index:40;min-width:228px;max-width:calc(100vw - 32px);
  display:flex;flex-direction:column;padding:6px;background:var(--panel);border:1px solid var(--line);
  border-radius:14px;box-shadow:var(--shadow)}
.menu-list form{margin:0}
.menu-list a,.menu-list button{display:flex;align-items:center;width:100%;min-height:42px;padding:9px 12px;border:0;
  border-radius:9px;background:none;font:500 14.5px/1.25 var(--f-ui);color:var(--ink);text-align:left;
  text-decoration:none;cursor:pointer;white-space:nowrap}
.menu-list a:hover,.menu-list button:hover{background:var(--panel-2);color:var(--ink)}
.menu-list a[aria-current="page"]{color:var(--ink-2)}
.menu-list .danger{color:var(--bad)}
.menu-list hr{width:auto;border:0;border-top:1px solid var(--line-2);margin:6px 6px}
.menu-list .menu-who{padding:8px 12px 10px;margin:0 0 6px;border-bottom:1px solid var(--line-2);font-weight:600;
  font-size:14.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.menu-list .menu-who small{display:block;font-weight:400;font-size:13px;color:var(--ink-2);overflow:hidden;text-overflow:ellipsis}
.site-head .menu-list .linkish{color:var(--ink);padding:9px 12px}
.menu-list form.lang .long{display:inline}
.menu-list form.lang .short{display:none}
.menu-list .phone-only{display:none}
/* The header's: the team's name on a wide screen, three bars on a phone. */
.menu.acct > summary{display:flex;align-items:center;gap:4px;min-height:40px;padding:8px 8px 8px 12px;border-radius:999px;
  color:var(--ink-2);font-weight:500}
.menu.acct > summary:hover,.menu.acct[open] > summary{color:var(--ink);background:var(--panel-2)}
.menu.acct .team-name{max-width:180px;overflow:hidden;text-overflow:ellipsis}
.menu.acct svg{width:18px;height:18px;flex:none}
.menu.acct .bars{display:none;width:22px;height:22px}
@media (max-width:640px){
  .menu.acct > summary{padding:8px}
  .menu.acct .team-name,.menu.acct .caret{display:none}
  .menu.acct .bars{display:block}
  .menu-list .phone-only{display:flex}
}
/* A place's: three dots, with the word beside them where there is room. */
.place-acts .menu > summary svg{width:18px;height:18px}
@media (max-width:480px){
  .place-acts .menu > summary{padding:8px 11px}
  .place-acts .menu > summary span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
}

/* ---------------------------------------------------------------- dialogs
   Opened as modals by static/js/ui.js. Without the script the link to one is a plain
   #target, and the :target rule below shows it over the page. On a phone a dialog
   is a sheet that comes up from the bottom edge. */
dialog.dlg{width:min(480px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:0;overflow:auto;
  border:1px solid var(--line);border-radius:18px;background:var(--panel);color:var(--ink);box-shadow:var(--shadow)}
dialog.dlg.wide{width:min(620px,calc(100vw - 24px))}
dialog.dlg::backdrop{background:rgba(10,18,22,.55)}
dialog.dlg:target:not([open]){display:block;position:fixed;inset:0;z-index:60;margin:auto;height:fit-content;
  box-shadow:0 0 0 100vmax rgba(10,18,22,.55),var(--shadow)}
.dlg-in{position:relative;padding:24px 26px 26px}
.dlg-in h2{font-size:23px;padding-right:44px}
.dlg-x{position:absolute;top:14px;right:14px;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;
  color:var(--ink-2)}
.dlg-x:hover{background:var(--panel-2);color:var(--ink)}
.dlg-x svg{width:20px;height:20px}
.dlg-lede{color:var(--ink-2);margin:10px 0 18px;max-width:52ch}
.dlg-acts{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin:22px 0 0}
.btn.danger.solid{background:var(--bad);border-color:var(--bad);color:var(--on-ink)}
.btn.danger.solid:hover{background:color-mix(in srgb,var(--bad) 86%,var(--ink));color:var(--on-ink)}
@media (max-width:640px){
  dialog.dlg,dialog.dlg.wide{width:100vw;max-width:100vw;margin:auto 0 0;border-radius:20px 20px 0 0;border-width:1px 0 0;
    max-height:calc(100dvh - 40px)}
  dialog.dlg:target:not([open]){inset:auto 0 0 0}
  .dlg-in{padding:22px 18px calc(22px + env(safe-area-inset-bottom))}
}
.settings{margin-top:16px}
.settings form{margin:0}
.settings .field{margin:0}
.settings .said{display:block;margin-top:10px;color:var(--ink-2);font-size:14px}
.settings .bad{display:block;margin-top:10px;color:var(--bad);font-size:14px}

/* ---------------------------------------------------------------- the share sheet */
.share-sheet .said{min-height:0;margin:6px 0 0;color:var(--ink-2);font-size:14.5px}
.share-sheet .said:empty{display:none}
.share-sheet .send{display:grid;grid-template-columns:148px minmax(0,1fr);gap:20px;align-items:center;margin:18px 0 6px}
.share-sheet .qr{background:#fff;border-radius:12px;padding:10px;line-height:0}
.share-sheet .qr svg{display:block;width:100%;height:auto}
.share-sheet .url{font:500 15px/1.4 var(--f-narrow);word-break:break-all;color:var(--ink)}
.share-sheet .ways{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}
.share-sheet .hint{margin:0}
.share-sheet .pics{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;margin:12px 0 0;font-size:14px;color:var(--ink-2)}
.share-sheet .nudge{margin:16px 0 0;background:var(--panel-2);border-radius:10px;padding:10px 14px;font-size:14px}
.share-sheet details.opts{margin-top:20px;border-top:1px solid var(--line-2);padding-top:14px}
.share-sheet details.opts > summary{cursor:pointer;font-weight:500;font-size:14.5px;color:var(--ink-2)}
.share-sheet details.opts > summary:hover{color:var(--ink)}
.share-sheet details.opts .hint{margin:14px 0 12px}
.share-sheet .embed-code textarea{min-height:0;font:12.5px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace;resize:none;margin-bottom:10px}
/* A shared view framed by another site (sharing/embed.html): the hero and one way out. */
body.embed{background:transparent}
body.embed main{max-width:none;padding:0}
body.embed .hero{margin:0}
body.embed .hero .caveat{display:none}
/* No live panorama comes here, so the box is only as tall as the still skyline. */
body.embed .hero-sky{height:clamp(96px,20vw,190px)}
body.embed .hero-still{height:100%}
body.embed .verdict{margin-top:18px}
body.embed dl.facts{margin-top:12px}
body.embed dl.facts > div{padding:8px 0 9px}
body.embed .embed-foot{display:flex;align-items:center;justify-content:space-between;gap:10px 16px;flex-wrap:wrap;margin:14px 0 0;
  font-size:13px;color:var(--ink-3)}
@media (max-width:480px){
  .share-sheet .send{grid-template-columns:1fr;justify-items:start}
  .share-sheet .qr{width:132px}
}
ul.links{list-style:none;margin:14px 0 0;padding:0;border-top:1px solid var(--line-2)}
ul.links li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 14px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line-2)}
ul.links .url{font-family:var(--f-narrow);font-size:14.5px;word-break:break-all}
ul.links .meta{grid-column:1;display:flex;gap:6px 14px;flex-wrap:wrap;font-size:13px;color:var(--ink-2)}
ul.links .meta .bad{color:var(--bad)}
ul.links .acts{grid-column:2;grid-row:1 / span 2;display:flex;gap:6px}
ul.links form{margin:0}
.badge{display:inline-flex;align-items:center;gap:5px;border-radius:999px;padding:1px 9px;font-size:12.5px;background:var(--panel-2);color:var(--ink-2)}
.quiet{color:var(--ink-3)}
form.make{display:flex;gap:12px;flex-wrap:wrap;align-items:flex-end}
form.make .field{margin:0;flex:1 1 170px}
form.make ul.errorlist{flex-basis:100%;margin:0}

/* ---------------------------------------------------------------- folds
   The write-up, the peak list, and the viewer's sources: closed until asked for. */
.folds{border-top:1px solid var(--line)}
details.fold{border-bottom:1px solid var(--line)}
details.fold > summary{display:flex;align-items:center;gap:12px;padding:18px 0;cursor:pointer;list-style:none}
details.fold > summary::-webkit-details-marker{display:none}
details.fold > summary::after{content:"";flex:none;width:10px;height:10px;margin:0 6px 4px auto;border:solid var(--ink-2);
  border-width:0 2px 2px 0;transform:rotate(45deg);transition:transform .15s}
details.fold[open] > summary::after{transform:rotate(-135deg);margin-bottom:-4px}
details.fold > summary h2{font-size:21px}
details.fold > summary:hover h2{color:var(--accent)}
details.fold .count{padding:1px 10px;border-radius:999px;background:var(--panel-2);font-size:13px;color:var(--ink-2);
  font-variant-numeric:tabular-nums}
details.fold > :not(summary){margin-bottom:22px}
details.fold ul.peaks-list{max-width:520px}
table{width:100%;border-collapse:collapse;font-size:14px}
.sheet-cols th,.sheet-cols td{text-align:left;padding:8px 8px 8px 0;border-bottom:1px solid var(--line);font-weight:400;vertical-align:top}
.sheet-cols thead th{color:var(--ink-2);font-size:12.5px}
.sheet-cols tbody th{font-weight:600}
.sheet-cols td:nth-child(2){white-space:nowrap}
.sheet-cols ul.peaks-list{margin:0}
.sheet-cols ul.peaks-list li{padding:8px 0;font-size:14px}
.sheet-foot{display:flex;justify-content:space-between;align-items:flex-end;gap:28px;margin-top:26px;padding-top:18px;border-top:1px solid var(--line)}
.sheet-foot p{margin:0;font-size:14px}
.sheet-foot .name{font-family:var(--f-serif);font-weight:600;font-size:19px}
.sheet-foot .small{font-size:11.5px;color:var(--ink-2);max-width:46ch;margin-top:12px}
.sheet-foot .scan{display:flex;align-items:center;gap:14px;flex:none}
.sheet-foot .code{width:1.15in;height:1.15in}
.sheet-foot .code svg{display:block;width:100%;height:100%}
.sheet-foot .scan span{font-size:11.5px;color:var(--ink-2);overflow-wrap:anywhere}
@media (max-width:640px){
  .sheet{padding:22px 18px}
  .sheet-head h1{font-size:28px;padding-right:0}
  .sheet-head .brand{position:static;margin-bottom:12px}
  .sheet-sky{height:120px}
  .sheet-cols{grid-template-columns:1fr;gap:20px}
  .sheet-foot{flex-direction:column;align-items:flex-start}
}
@page{size:auto;margin:.4in}
@media print{
  body.sheet-page{background:#fff;padding:0}
  .sheet-bar{display:none}
  .sheet{max-width:none;box-shadow:none;border-radius:0;padding:0}
}

/* ---------------------------------------------------------------- share links and settings */
.manage{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:24px;align-items:start}
@media (max-width:900px){ .manage{grid-template-columns:1fr} }
.manage .panel h2{font-size:21px}
.manage .panel > p{color:var(--ink-2);margin:6px 0 18px;font-size:14.5px}
ul.links{list-style:none;margin:0 0 18px;padding:0;border-top:1px solid var(--line-2)}
ul.links li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 14px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line-2)}
ul.links .url{font-family:var(--f-narrow);font-size:14.5px;word-break:break-all}
ul.links .meta{grid-column:1;display:flex;gap:6px 14px;flex-wrap:wrap;font-size:13px;color:var(--ink-2)}
ul.links .meta .bad{color:var(--bad)}
ul.links .acts{grid-column:2;grid-row:1 / span 2;display:flex;gap:6px}
ul.links form{margin:0}
.badge{display:inline-flex;align-items:center;gap:5px;border-radius:999px;padding:1px 9px;font-size:12.5px;background:var(--panel-2);color:var(--ink-2)}
.quiet{color:var(--ink-3)}
form.make{display:flex;gap:12px;flex-wrap:wrap;align-items:flex-end}
form.make .field{margin:0;flex:1 1 170px}
form.make ul.errorlist{flex-basis:100%;margin:0}
.settings form{margin:0}
.settings .rename{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap}
.settings .rename .field{flex:1 1 220px;margin:0}
.settings .said{color:var(--ink-2);font-size:14px;flex-basis:100%}
.settings .bad{color:var(--bad);font-size:14px;flex-basis:100%}
.settings .row{display:flex;gap:10px;flex-wrap:wrap;border-top:1px solid var(--line-2);padding-top:18px;margin-top:18px}
details.history{margin-top:18px;border-top:1px solid var(--line-2);padding-top:14px}
details.history summary{cursor:pointer;color:var(--ink-2);font-size:14px;font-weight:500}
details.history summary:hover{color:var(--ink)}
table{width:100%;border-collapse:collapse;font-size:13.5px;margin-top:10px}
th,td{text-align:left;padding:7px 8px;border-bottom:1px solid var(--line-2)}
th{font-weight:500;color:var(--ink-2)}
td.num,th.num{text-align:right;font-variant-numeric:tabular-nums}
@media (max-width:640px){ th.wide,td.wide{display:none} }

/* ---------------------------------------------------------------- sign in, and the small pages */
.auth-col{max-width:420px;margin:40px auto 0}
.auth-col h1{font-size:34px}
.auth-col .lede{color:var(--ink-2);margin:10px 0 26px;font-size:16px}
.auth-col .panel{padding:26px 26px 24px}
form.auth p,form.auth .field{margin:0 0 16px;display:flex;flex-direction:column;gap:6px}
form.auth label{font-size:14px;font-weight:500}
form.auth .help-text{margin:0;font-size:13px;color:var(--ink-2)}
form.auth .help-text ul{margin:4px 0 0;padding-left:18px}
form.auth input[type=checkbox]{width:auto;min-height:0}
form.auth .btn{width:100%;margin-top:4px}
.auth-col .after{margin-top:20px;font-size:14.5px;color:var(--ink-2);text-align:center}
.auth-col .after p+p{margin-top:6px}
/* allauth's own pages (password reset and the rest): the login page's column, on main. */
main.auth-page{max-width:468px;padding-top:40px}
main.auth-page h1{font-size:34px;margin-bottom:14px}
main.auth-page > p,main.auth-page form > p{color:var(--ink-2);margin:0 0 16px}
main.auth-page form.auth{background:var(--panel);border:1px solid var(--line-2);border-radius:16px;padding:24px 24px 20px;margin-top:8px}
form.auth.logout{display:flex;gap:10px;flex-wrap:wrap}
form.auth.logout .btn{width:auto;flex:1}
.small-page{max-width:520px;margin:64px auto 0;text-align:center}
.small-page .mark{display:inline-block;margin-bottom:22px}
.small-page h1{font-size:34px}
.small-page p{color:var(--ink-2);margin-top:12px;font-size:16px}
.small-page .panel{text-align:left;margin-top:26px}

@media (prefers-reduced-motion:reduce){ *{transition:none!important;animation:none!important} }
