/* An event on hover (golf-peek.js): fixed beside its line, over the page; a golfer's card
   (golf-players.css, .gpk) opens over it. */

.gek {
  position: fixed;
  z-index: 59;
  top: 0;
  left: 0;
  width: 390px;
  max-width: calc(100vw - 16px);
  padding: 11px 14px 12px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
  text-align: left;
  white-space: normal;
  cursor: pointer;
}
.gek[hidden] { display: none; }
.gek a { color: inherit; text-decoration: none; }
.gek a:hover { text-decoration: underline; text-underline-offset: 2px; }

.gek-name { display: flex; align-items: baseline; gap: 8px; margin: 0; font: 600 20px/1.15 var(--display); letter-spacing: .01em; }
.gek-name .gf-major { flex: none; margin: 0; }
.gek-meta { margin: 2px 0 0; color: var(--muted); font-size: 12.5px; }
.gek-meta span { white-space: nowrap; }
.gek-meta span + span::before { content: "·"; margin: 0 6px; color: var(--faint); }
.gek-body { margin-top: 9px; }

/* The top five: names give way, numbers never (as wide as their widest) */
.gek-t { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.gek-t th, .gek-t td { padding: 3px 4px; text-align: left; white-space: nowrap; vertical-align: baseline; }
.gek-t th:first-child, .gek-t td:first-child { padding-left: 0; }
.gek-t th:last-child, .gek-t td:last-child { padding-right: 0; }
.gek-t thead th { padding-top: 0; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.gek-t tbody tr { border-top: 1px solid var(--line); }
.gek-t tr.is-first td { font-weight: 700; }
.gek-pos { width: 1px; padding-right: 8px !important; color: var(--muted); font-weight: 600; }
.gek-pl { width: 100%; max-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.gek-n { width: 1px; text-align: right !important; }
.gek-par { font-weight: 700; }
.gek-k { width: 1px; padding-right: 10px !important; color: var(--muted); font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.gek-cup td { font-size: 15px; }

.gek-state { margin: 0; font: 600 15px/1.2 var(--display); letter-spacing: .05em; text-transform: uppercase; }
.gek-note { margin: 6px 0 0; color: var(--muted); font-size: 12.5px; }
.gek-foot { margin: 8px 0 0; }
.gek-foot .gek-k { margin-right: 8px; }

/* The event's line whose card is up */
.gf-cal tr.gek-on td { background: var(--surface-2); }
