/* The alerts page: a night map with a lit circle, and a form beside it. */

.alerts { position: relative; height: 100vh; height: 100svh; min-height: 640px; }
.alerts-map { position: absolute; inset: 0; background: var(--night); }
.panel {
  position: absolute; inset: 0 auto 0 0; z-index: 2; width: min(500px, 100%); overflow-y: auto;
  padding: 96px var(--gutter) 48px;
  background: linear-gradient(90deg, rgba(5, 7, 12, 0.97) 0, rgba(5, 7, 12, 0.94) 82%, rgba(5, 7, 12, 0.6) 100%);
  border-right: 1px solid var(--rule);
}
.panel h1 { font-size: clamp(32px, 3.4vw, 46px); }
.panel .dek { font-size: 15.5px; margin-top: 14px; }
.panel h2 { margin: 34px 0 12px; font: 600 13px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--paper-2); }
.step { margin-top: 30px; }
.step[hidden] { display: none; }
.dateline a { pointer-events: auto; text-decoration: none; }

.field { display: block; position: relative; margin: 0 0 20px; }
.field > span { display: block; margin-bottom: 6px; font: 500 11.5px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.field input:not([type='range']) {
  width: 100%; padding: 9px 0 10px; border: 0; border-bottom: 1px solid var(--rule-strong); border-radius: 0;
  background: transparent; color: var(--paper); font: 400 17px/1.3 var(--sans); outline: none;
}
.field input:not([type='range']):focus { border-bottom-color: var(--lights); }
.field input::placeholder { color: var(--faint); }
.field output { color: var(--paper); font-weight: 600; letter-spacing: 0; text-transform: none; font-size: 13px; margin-left: 4px; }

/* the radius slider: a thin rule and a lit knob */
.range input { width: 100%; margin: 8px 0 0; appearance: none; -webkit-appearance: none; background: transparent; height: 22px; }
.range input::-webkit-slider-runnable-track { height: 1px; background: var(--rule-strong); }
.range input::-moz-range-track { height: 1px; background: var(--rule-strong); }
.range input::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -7.5px; border-radius: 50%; background: var(--lights); box-shadow: 0 0 12px rgba(243, 194, 107, 0.6); border: 0; }
.range input::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--lights); border: 0; box-shadow: 0 0 12px rgba(243, 194, 107, 0.6); }
.range input:focus-visible { outline: 1px solid var(--lights); outline-offset: 4px; }

.check { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--paper-2); cursor: pointer; }
.check input { accent-color: var(--lights); width: 16px; height: 16px; }

.now { margin: 22px 0 0; padding: 14px 0 0; border-top: 1px solid var(--rule); color: var(--paper-2); font-size: 14.5px; }
.now b { color: var(--paper); }
.cover { margin: 8px 0 0; color: var(--faint); font-size: 13px; }
.cover:empty { display: none; }
.cover.none, .cover.partial { color: var(--dim); }

.suggest {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 5; list-style: none; margin: 4px 0 0; padding: 4px 0;
  background: var(--night-2); border: 1px solid var(--rule-strong); border-radius: 3px; box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
}
.suggest li { padding: 9px 14px; cursor: pointer; font-size: 15px; }
.suggest li span { color: var(--faint); font-size: 12px; margin-left: 6px; }
.suggest li[aria-selected='true'], .suggest li:hover { background: rgba(239, 232, 219, 0.07); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 11px 18px; border: 1px solid var(--paper); border-radius: 3px; cursor: pointer; text-decoration: none;
  background: var(--paper); color: var(--night); font: 600 14.5px/1.2 var(--sans);
}
.btn:hover { background: #fff; }
.btn.ghost { background: transparent; color: var(--paper); border-color: var(--rule-strong); }
.btn.ghost:hover { border-color: var(--paper-2); }
.btn:focus-visible, .link:focus-visible { outline: 1px solid var(--lights); outline-offset: 3px; }
.btn[hidden], .link[hidden], .google[hidden] { display: none; }
.google { width: 100%; background: #fff; border-color: #fff; color: #1f1f1f; }
.google svg { width: 18px; height: 18px; }
.or { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--faint); font-size: 12.5px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--rule); }
.or[hidden] { display: none; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.link { background: none; border: 0; padding: 0; color: var(--paper-2); font: inherit; text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 3px; cursor: pointer; }
.link:hover { color: var(--paper); }
.error { min-height: 1.2em; margin: 4px 0 12px; color: #ff8a6f; font-size: 13.5px; }
.error:empty { min-height: 0; margin: 0; }
.fine { margin: 16px 0 0; color: var(--faint); font-size: 12.5px; line-height: 1.55; }
.who { margin-top: 34px; padding-top: 16px; border-top: 1px solid var(--rule); }
.who b { color: var(--paper-2); font-weight: 500; }

.watches { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-strong); }
.watches li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.watches .none { color: var(--faint); font-size: 14px; }
.watch-go { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.watch-go b { font-weight: 600; font-size: 16px; }
.watch-go span { color: var(--faint); font-size: 13px; margin-left: 6px; }
.watch-go:hover b { text-decoration: underline; text-decoration-color: var(--lights); text-underline-offset: 4px; }
.push-state { color: var(--paper-2); font-size: 14.5px; margin: 0 0 12px; }

@media (max-width: 860px) {
  /* The panel's parts and the map become one column: intro, place, map, then sign-in. */
  .alerts { height: auto; min-height: 0; display: flex; flex-direction: column; padding-top: 84px; }
  .panel { display: contents; }
  .panel > * { padding-left: var(--gutter); padding-right: var(--gutter); }
  .panel h1 { order: 1; }
  .panel .dek { order: 2; }
  #step-place { order: 3; }
  .alerts-map { position: relative; inset: auto; height: 52svh; order: 4; margin-top: 18px; }
  #step-auth, #step-account { order: 5; padding-bottom: 40px; }
  .masthead { background: #05070c; border-bottom: 1px solid var(--rule); padding-bottom: 12px; }
}
