/* Public site layer; colours, radii and type come from the lab tokens so it follows the theme toggle. */
.dl-btn { font: inherit; font-size: var(--t-small); font-weight: 600; color: var(--on-accent); background: var(--accent); border: 0; border-radius: var(--r-chip); padding: 4px var(--s5); cursor: pointer; }
.dl .opt.sel:focus-visible { outline-color: var(--on-accent); outline-offset: -4px; }
.dl-btn:focus-visible, .dl .opt:not(.sel):focus-visible, .dl .x:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.dl-scrim[hidden] { display: none; }
.dl-scrim { position: fixed; inset: 0; z-index: 10; display: grid; place-items: start center; padding-top: 14vh; background: color-mix(in srgb, var(--bg, #000) 45%, transparent); backdrop-filter: blur(6px); }
.dl { width: min(520px, calc(100vw - 32px)); background: var(--surface); color: var(--fg); border: var(--hair-w) solid var(--line); border-radius: var(--r-pill); box-shadow: 0 24px 70px rgba(0,0,0,.45); overflow: hidden; font-size: var(--t-body); }
.dl .head { display: flex; gap: var(--s6); align-items: center; padding: var(--s7); border-bottom: var(--hair-w) solid var(--line); }
.dl .head > div { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.dl .head b { font-size: var(--t-heading); }
.dl .head small { color: var(--fg-dim); line-height: 1.4; }
.dl .x { border: 0; background: none; color: var(--fg-dim); cursor: pointer; padding: var(--s2); border-radius: var(--r-chip); --icon: 16px; align-self: flex-start; }
.dl .opt { display: flex; align-items: center; gap: var(--s6); width: 100%; padding: var(--s5) var(--s7); color: var(--fg); background: none; border: 0; font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.dl .opt:hover { background: var(--sel); }
.dl .opt.sel { background: var(--accent); color: var(--on-accent); }
.dl .opt.sel .kbd { background: color-mix(in srgb, var(--on-accent) 18%, transparent); color: var(--on-accent); }
.dl .what { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.dl code { font-family: var(--font-mono); font-size: var(--t-small); opacity: .85; overflow-wrap: anywhere; }
.dl .note { font-size: var(--t-small); color: var(--fg-dim); }
.dl .sig { margin: 0; padding: var(--s5) var(--s7) var(--s6); border-top: var(--hair-w) solid var(--line); color: var(--fg-dim); font-size: var(--t-small); line-height: 1.5; }
.dl .sig a { color: var(--fg); }

.dl-solo { display: none; }
@media (max-width: 760px) {
  html, body { overflow: auto !important; }
  #app, #glow, .notifs, .dl-btn { display: none !important; }
  .dl-solo { display: grid; place-items: center; min-height: 100vh; padding: 16px; box-sizing: border-box; background: var(--bg, var(--surface)); }
  .dl.standalone { box-shadow: none; }
}
