.masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 10px;
}
.masthead .eyebrow, .masthead h1 { grid-column: 1; }
.masthead p { grid-column: 1 / -1; }
#aboutButton {
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid #bc8870;
  border-radius: 8px;
  background: #511b29;
  color: #fff4dc;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
#aboutDialog, #tipPreviewDialog, #tipPublicDialog {
  width: 25rem;
  max-width: calc(100% - 32px);
  max-height: calc(100% - 32px);
  margin: auto;
  padding: 24px;
  overflow: auto;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
#aboutDialog::backdrop, #tipPreviewDialog::backdrop, #tipPublicDialog::backdrop { background: rgba(42, 28, 31, .55); }
#aboutDialog h2, #tipPreviewDialog h2, #tipPublicDialog h2 { margin: 0; font: 700 22px/1.3 'Libre Baskerville', Georgia, serif; color: var(--navy); }
#aboutDialog p, #tipPreviewDialog p, #tipPublicDialog p { margin: 14px 0; font-size: 15px; line-height: 1.5; }
.about-notice { padding-top: 14px; border-top: 1px solid var(--line); }
#privacyDisclosure { margin-top: 14px; border-top: 1px solid var(--line); }
#privacyDisclosure summary { min-height: 44px; line-height: 44px; color: var(--navy); font-weight: 700; cursor: pointer; }
#aboutDialog #privacyDisclosure h2 { font-size: 17px; }
.guide-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #692636;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.tip-face {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 3px 5px;
  border: 1px solid #bf883f;
  border-radius: 6px;
  background: #ffdd9d;
}
.tip-first-line { display: flex; align-items: center; }
.tip-first-line svg { width: 13px; height: 13px; margin-right: 3px; }
.tip-second-line { font-size: 11.5px; font-weight: 600; }
.guide-tip:hover .tip-face, .guide-tip:active .tip-face { background: #ffcc79; }
.guide-tip:focus-visible { outline: none; }
.guide-tip:focus-visible .tip-face { outline: 3px solid var(--navy); outline-offset: 2px; }
.map-tip-corner { position: absolute; top: 15px; left: 15px; z-index: 650; }
.map-tip-corner .tip-face { box-shadow: 0 2px 6px rgba(68,26,35,.13); }
body.map-expanded .map-tip-corner { z-index: 2600; }
/* Leave the second row clear of the tip and an open place's crosshair. */
.map-tip-corner ~ .map-actions { left: 72px; }
.map-tip-corner ~ .map-actions .action-row { min-height: 44px; align-items: flex-start; }
.map-tip-corner ~ .detail.open ~ .recenter-location { top: 65px; left: 15px; }
@media (max-width: 800px) {
  /* Both controls fit even at the divider's 100px minimum map height. */
  .map-tip-corner { top: 4px; left: 10px; }
  .map-tip-corner ~ .detail.open ~ .recenter-location { top: 52px; left: 10px; }
}
.filter-sheet-header .guide-tip { margin-left: auto; }
.about-actions { display: flex; align-items: center; gap: 8px; margin-top: 18px; }
.about-actions #aboutClose { margin: 0 0 0 auto; }
#aboutClose, #tipPreviewClose, #tipPublicClose {
  display: block;
  margin: 18px 0 0 auto;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  color: var(--paper);
  background: var(--navy);
  cursor: pointer;
}
