/* The ⋯ button and its menu (site/menu.js), on reading pages, Threads and any page that loads them. Built only from
   the tokens in theme.css, so day and night are the same CSS. The button is a finger's size to touch and quiet to the
   eye; the menu sits over the page beside it. */
.pa-dots { flex: none; display: inline-grid; place-items: center; width: var(--tap, 2.75rem); height: var(--tap, 2.75rem); padding: 0;
  color: var(--ink-2); background: none; border: 1px solid transparent; border-radius: 50%; cursor: pointer;
  transition: color var(--dur-1) var(--ease), background-color var(--dur-1) var(--ease); }
.pa-dots svg { width: 1.3rem; height: 1.3rem; fill: currentColor; }
.pa-dots:hover, .pa-dots[aria-expanded="true"] { color: var(--accent-ink); background: var(--accent-soft); }
.pa-dots:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pa-menu-host { -webkit-touch-callout: none; } /* a long press opens our menu, not the phone's own */

.pa-menu { position: fixed; z-index: 1000; min-width: 15rem; max-width: min(22rem, calc(100vw - 1rem)); max-height: calc(100vh - 1rem);
  overflow-y: auto; padding: .45rem; display: grid; gap: .1rem; color: var(--ink); background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line-2)); border-radius: var(--r-m); box-shadow: var(--shadow-lift); }
.pa-menu[hidden] { display: none; }
.pa-menu-head { margin: .25rem .6rem .45rem; font: 500 .9rem/1.45 var(--font-sans); color: var(--ink-2); }
.pa-menu-head.ask { font-weight: 400; }
.pa-menu-item { display: flex; align-items: center; gap: .65rem; width: 100%; min-height: var(--tap, 2.75rem); padding: 0 .7rem; text-align: left;
  font: 500 .95rem/1.3 var(--font-sans); color: var(--ink); text-decoration: none; background: none; border: 0; border-radius: var(--r-s); cursor: pointer; }
.pa-menu-item:hover, .pa-menu-item:focus-visible { color: var(--accent-ink); background: var(--accent-soft); outline: none; }
.pa-menu-item:focus { outline: none; }
.pa-menu-item:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.pa-mi { flex: none; width: 1.2rem; text-align: center; font-family: var(--font-sans); color: var(--ink-3); }
:lang(pa) .pa-menu-head, :lang(pa) .pa-menu-item { font-family: var(--font-gurmukhi-sans); font-size: 1.06rem; line-height: 1.5; }
@media (prefers-reduced-motion: no-preference) {
  .pa-menu { animation: pa-menu-in var(--dur-1) var(--ease); }
}
@keyframes pa-menu-in { from { opacity: 0; translate: 0 -3px; } }
