/* Styles for the locate plugin. Prefix every selector with .p-locate */
.p-locate { border-bottom: 1px solid var(--rule); padding: 7px 0; font-size: 14.5px; line-height: 1.4; }
.p-locate [hidden] { display: none !important; }
.p-locate-bar { min-height: 36px; display: flex; align-items: center; }

/* Idle, with a seat remembered */
.p-locate-mine { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 2px 8px; }
.p-locate-mine b { font-weight: 800; font-variation-settings: "wdth" 84; }
.p-locate-mine a { font-weight: 700; }
.p-locate-odds { display: inline-flex; align-items: center; gap: 6px; font: 400 13px/1.3 var(--mono); color: var(--ink-2); }
.p-locate-odds .sw { transform: none; }
.p-locate-dim { font: 400 13px/1.3 var(--mono); color: var(--ink-2); }

/* The search */
.p-locate-find { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; width: 100%; }
.p-locate-find label { font-weight: 800; font-variation-settings: "wdth" 84; white-space: nowrap; }
.p-locate-combo { position: relative; flex: 0 1 250px; min-width: 150px; }
.p-locate-combo input {
  width: 100%; font: 400 16px/1.2 var(--display); padding: 6px 10px; border: 2px solid var(--ink); border-radius: 2px;
  background: var(--paper); color: var(--ink);
}
.p-locate-combo input::placeholder { color: var(--ink-3); }
.p-locate-pop {
  position: absolute; z-index: 8; left: 0; top: calc(100% + 4px); width: max(100%, 290px); max-width: calc(100vw - 40px);
  background: var(--paper); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
}
.p-locate-pop ul { list-style: none; margin: 0; padding: 0; max-height: 330px; overflow-y: auto; }
.p-locate-pop li { display: flex; align-items: baseline; gap: 10px; padding: 8px 10px; cursor: pointer; border-top: 1px solid var(--rule); }
.p-locate-pop li:first-child { border-top: 0; }
.p-locate-pop li b { font-weight: 700; }
.p-locate-pop li span { margin-left: auto; font: 400 12.5px/1.3 var(--mono); color: var(--ink-2); white-space: nowrap; }
.p-locate-pop li:hover { background: var(--wash); }
.p-locate-pop li[aria-selected="true"] { background: var(--mark); box-shadow: inset 4px 0 0 var(--ink); }
.p-locate-pop li[aria-selected="true"] span { color: var(--ink); }
.p-locate-hint { margin: 0; padding: 9px 10px; font-size: 14px; color: var(--ink-2); }

.p-locate-geo, .p-locate-keep {
  font: 500 14px/1 var(--display); padding: 9px 12px; border: 2px solid var(--ink); border-radius: 2px;
  background: var(--paper); color: var(--ink); cursor: pointer; white-space: nowrap;
}
.p-locate-geo:hover { background: var(--wash); }
.p-locate-keep { font-weight: 700; background: var(--mark); box-shadow: 3px 3px 0 var(--ink); }
.p-locate-keep:hover { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--ink); }
.p-locate-keep:active { transform: translate(3px, 3px); box-shadow: none; }
.p-locate-priv { font: 400 12.5px/1.3 var(--mono); color: var(--ink-2); }
.p-locate-extra { margin-left: auto; display: inline-flex; gap: 14px; }
.p-locate-extra:empty { display: none; }
.p-locate-link {
  font: 400 13px/1.3 var(--mono); color: var(--ink); background: none; border: 0; padding: 6px 0; cursor: pointer;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.p-locate-link:hover { background: var(--mark); }

/* Messages and the answer */
.p-locate-note { margin: 6px 0 2px; font-size: 14px; max-width: 46em; padding: 8px 12px; background: var(--wash); }
.p-locate-note.busy { color: var(--ink-2); }
.p-locate-out { border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); padding: 14px 16px 12px; margin: 8px 4px 10px 0; max-width: 760px; }
.p-locate-ans + .p-locate-ans { border-top: 1px solid var(--rule); margin-top: 12px; padding-top: 12px; }
.p-locate-ans h3 { font-size: 15px; margin: 0 0 2px; }
.p-locate-say { margin: 0 0 8px; font-size: 17px; line-height: 1.35; max-width: 38em; }
/* Focus is moved here so a screen reader reads the answer; it is not a control, so it gets no ring. */
.p-locate-say:focus, .p-locate-say:focus-visible { outline: none; }
.p-locate-say b { font-weight: 800; }
.p-locate-seats { list-style: none; margin: 0 0 8px; padding: 0; }
.p-locate-seats li { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; padding: 8px 0; border-top: 1px solid var(--rule); }
.p-locate-seat { font-weight: 800; font-size: 19px; font-variation-settings: "wdth" 80; }
.p-locate-seats .p-locate-keep { margin-left: auto; }
.p-locate-check { margin: 0; font-size: 14.5px; }
.p-locate-acts { display: flex; align-items: center; gap: 16px; margin-top: 10px; }
.p-locate-acts .p-locate-link { margin-left: auto; }
.p-locate-fine { margin: 6px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--ink-2); max-width: 56em; }
.p-locate-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 640px) {
  .p-locate-combo { flex: 1 1 150px; }
  /* The list is wider than the box beside its label: hang it from the right edge so it cannot push the page sideways. */
  .p-locate-pop { left: auto; right: 0; }
  .p-locate-priv { flex: 1 1 120px; }
  .p-locate-seats .p-locate-keep { margin-left: 0; }
  .p-locate-out { margin-right: 4px; padding: 12px; }
}
.p-locate-paren { white-space: nowrap; }
