/* tennisdatabaseapi.com: the top bar and the logo lockup (11 November, the grass top bar, approved preview). Loaded after
   site.css; everything here is scoped to .hd and the hd- names, so the rest of the site is unchanged. */
.hd{--hd-ink:#0F3B2E;--hd-lime:#E7F06A;--hd-green:#2C9A5F;--hd-soft:#ECF6EF;--hd-bd:#E2E9E5;--hd-mu:#5C6B64;
  position:sticky;top:0;z-index:50;background:#fff;border-bottom:1px solid var(--hd-bd);overflow:visible}
.hd-mesh{position:absolute;inset:0;overflow:hidden;pointer-events:none}
.hd-mesh:before{content:"";position:absolute;inset:-40% -10%;background:radial-gradient(40% 70% at 82% 10%,#B7E4C7 0%,transparent 60%),radial-gradient(35% 70% at 60% -10%,#E7F06A 0%,transparent 60%),radial-gradient(30% 60% at 100% 60%,#CDEFD9 0%,transparent 60%);opacity:.55;animation:hd-drift 16s ease-in-out infinite alternate}
@keyframes hd-drift{to{transform:translateX(-5%) translateY(3%) scale(1.06)}}
@media (prefers-reduced-motion:reduce){.hd-mesh:before{animation:none}}
.hd .hd-in{position:relative;height:74px;display:flex;align-items:center;gap:26px}

/* the lockup: the ball and the two-tone name */
.hd-lock{display:inline-flex;align-items:center;gap:10px;color:#0F3B2E;white-space:nowrap;flex:none;text-decoration:none}
.hd-lock:hover{text-decoration:none}
.hd-ball{width:32px;height:32px;flex:none;transition:transform .5s cubic-bezier(.3,1.6,.5,1)}
.hd-lock:hover .hd-ball{transform:rotate(-24deg)}
.hd-wm{display:inline-flex;align-items:center}
.hd-t{font:600 19px/1 Inter,system-ui,sans-serif;letter-spacing:-.03em;color:#0F3B2E}
.hd-gt{background:linear-gradient(100deg,#8DB83A 0%,#2C9A5F 100%);-webkit-background-clip:text;background-clip:text;color:transparent}
.hd-api{display:inline-flex;align-items:center;font:400 10.5px/1 'JetBrains Mono',ui-monospace,monospace;letter-spacing:.06em;color:#2C9A5F;border:1px solid currentColor;border-radius:5px;padding:3px 5px 2px;margin-left:6px}

/* the menu */
.hd-menu{display:flex;gap:2px}
.hd-it{position:relative}
.hd-it>a{display:flex;align-items:center;gap:6px;height:38px;padding:0 13px;border-radius:999px;color:var(--hd-ink);font-size:14.5px;white-space:nowrap;text-decoration:none;transition:background .15s}
.hd-it>a:hover{text-decoration:none}
.hd-cv{width:9px;height:9px;stroke:currentColor;fill:none;stroke-width:1.7;opacity:.55;transition:transform .2s}
.hd-it:hover>a,.hd-it.open>a{background:rgba(255,255,255,.8)}
.hd-it:hover .hd-cv,.hd-it.open .hd-cv{transform:rotate(180deg)}
.hd-it>a.on{background:rgba(255,255,255,.88);box-shadow:inset 0 0 0 1px var(--hd-bd)}
.hd-acts{margin-left:auto;display:flex;gap:6px;align-items:center}
.hd-si,.hd-go{display:inline-flex;align-items:center;justify-content:center;gap:7px;height:38px;border-radius:999px;font-size:14px;white-space:nowrap;text-decoration:none}
.hd-si:hover,.hd-go:hover{text-decoration:none}
.hd-si{min-width:104px;color:var(--hd-ink);background:rgba(255,255,255,.6)}
.hd-si:hover{background:rgba(255,255,255,.95)}
.hd-go{min-width:156px;color:#fff;background:var(--hd-ink);transition:background .15s}
.hd-go:hover{background:#155240;color:#fff}
.hd-ar{width:10px;height:10px;stroke:currentColor;fill:none;stroke-width:1.8;transition:transform .15s}
.hd-go:hover .hd-ar,.hd-more:hover .hd-ar{transform:translateX(2px)}

/* the panels */
.hd-panel{position:absolute;top:calc(100% + 12px);left:-8px;transform:translateY(-6px);opacity:0;visibility:hidden;transition:opacity .18s,transform .18s,visibility .18s;background:#fff;border:1px solid var(--hd-bd);border-radius:14px;box-shadow:0 24px 60px rgba(15,59,46,.16),0 4px 12px rgba(15,59,46,.06);display:grid;overflow:hidden;z-index:60}
.hd-panel:before{content:"";position:absolute;inset:-14px 0 auto 0;height:14px}
.hd-it:hover .hd-panel,.hd-it.open .hd-panel{opacity:1;visibility:visible;transform:none}
.hd-p-data{width:760px;grid-template-columns:1fr 270px}
.hd-p-dev{width:580px;grid-template-columns:1fr 1fr}
.hd-pcol{padding:16px}
.hd-panel h3,.hd-drawer h3{font-size:11.5px;font-weight:500;letter-spacing:.07em;text-transform:uppercase;color:var(--hd-mu);margin:2px 8px 8px}
.hd-pgrid{display:grid;grid-template-columns:1fr 1fr;gap:2px}
.hd-pl{display:flex;gap:11px;padding:10px;border-radius:10px;align-items:flex-start;text-decoration:none;transition:background .12s}
.hd-pl:hover{background:var(--hd-soft);text-decoration:none}
.hd-pi{width:34px;height:34px;flex:none;border-radius:9px;background:var(--hd-soft);color:var(--hd-green);display:flex;align-items:center;justify-content:center;transition:background .12s,color .12s}
.hd-pl:hover .hd-pi{background:var(--hd-ink);color:var(--hd-lime)}
.hd-pi svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.hd-pt{display:flex;flex-direction:column;line-height:1.35}
.hd-pt span{color:var(--hd-ink)}
.hd-pt small{color:var(--hd-mu);font-size:12.5px}
.hd-pside{background:linear-gradient(180deg,#F3F9F5,#EAF5EE);border-left:1px solid var(--hd-bd);padding:18px;display:flex;flex-direction:column;gap:12px}
.hd-k{font-size:11.5px;letter-spacing:.07em;text-transform:uppercase;color:var(--hd-mu)}
.hd-live{display:flex;flex-direction:column;gap:8px}
.hd-lm{display:block;background:#fff;border:1px solid var(--hd-bd);border-radius:10px;padding:9px 11px;font-size:12.5px;text-decoration:none;color:var(--hd-ink)}
.hd-lm:hover{border-color:#C9DCD0;text-decoration:none}
.hd-r{display:flex;justify-content:space-between;gap:8px}
.hd-r span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hd-s{font-family:'JetBrains Mono',ui-monospace,monospace;font-size:12px;white-space:nowrap}
.hd-e{color:var(--hd-mu);font-size:11.5px;display:flex;align-items:center;gap:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hd-e i{width:6px;height:6px;flex:none;border-radius:50%;background:#2FB36B}
.hd-more{margin-top:auto;color:var(--hd-green);font-size:13px;display:inline-flex;align-items:center;gap:6px;text-decoration:none}
.hd-code{background:var(--hd-ink);color:#DDEBE3;border-radius:10px;padding:12px;font:400 12px/1.6 'JetBrains Mono',ui-monospace,monospace;white-space:pre;overflow:hidden}
.hd-code b{font-weight:400;color:var(--hd-lime)}

/* the phone menu: site.js opens .drawer as before */
.hd .burger{border-radius:999px;background:rgba(255,255,255,.7)}
.hd-drawer{position:relative;background:#fff;border-top:1px solid var(--hd-bd);padding:12px 16px 16px}
.hd-chips{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.hd-chips a{display:flex;align-items:center;gap:9px;height:44px;padding:0 10px;border:1px solid var(--hd-bd);border-radius:10px;color:var(--hd-ink);text-decoration:none}
.hd-chips .hd-pi{width:26px;height:26px;border-radius:7px}
.hd-chips .hd-pi svg{width:14px;height:14px}
.hd-dlinks a{display:flex;align-items:center;height:44px;padding:0 6px;color:var(--hd-ink);border-bottom:1px solid var(--hd-bd);text-decoration:none}
.hd-dlinks a:last-child{border-bottom:0}
.hd-two{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}
.hd-two .hd-si,.hd-two .hd-go{min-width:0;width:100%}
.hd-two .hd-si{border:1px solid var(--hd-bd)}

/* the footer's lockup */
.hd-foot{margin-bottom:4px}

@media (max-width:1100px){.hd-acts .hd-si{display:none}.hd-p-data{width:680px;grid-template-columns:1fr 240px}}
@media (max-width:980px){.hd-menu,.hd-acts{display:none}.hd .burger{margin-left:auto}.hd .hd-in{height:62px;gap:10px}.hd-ball{width:28px;height:28px}.hd-t{font-size:17px}}
@media (min-width:981px){.hd-drawer{display:none!important}}
