/* The account control, last on the right of every header (owner 2026-11-26, UI review section 1): "Sign in" signed out,
   "Me" signed in with a small menu (Account, Playlists, Sign out). One look on www (site_base.html), the Reader
   (lex/base.html) and the Guides (actsite/base.html), so its rules live here, loaded by all three. A <details>: the menu
   opens without script; static/frontend/me.js (www, Reader) and static/actsite/account.js (Guides) close it on a click
   elsewhere or Escape. Sizes in px: the three surfaces have different root sizes. a.as-account is the Guides' "Sign in". */
.eu-me { position: relative; flex: none; font: 600 14px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a.eu-signin, a.as-account, .eu-me > summary { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 5px 14px;
  box-sizing: border-box; border: 1px solid; border-radius: 999px; background: #fff; white-space: nowrap; cursor: pointer;
  font: 600 14px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a.eu-signin, a.eu-signin:visited, a.as-account, a.as-account:visited { color: #2A4FD0; border-color: #2A4FD0; text-decoration: none; }
a.eu-signin:hover, a.eu-signin:focus-visible, a.as-account:hover, a.as-account:focus-visible { color: #1B2540; background: #EEF1FC; border-color: #1B2540; text-decoration: none; }
.eu-me > summary { list-style: none; color: #1B2540; border-color: #d0d5dd; }
.eu-me > summary::-webkit-details-marker { display: none; }
.eu-me > summary::after { content: ""; width: 6px; height: 6px; margin: -3px 0 0 1px; border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.eu-me > summary:hover, .eu-me[open] > summary { background: #EEF1FC; border-color: #2A4FD0; }
.eu-me > summary:focus-visible, a.eu-signin:focus-visible { outline: 2px solid #2A4FD0; outline-offset: 2px; }
.eu-me-menu { box-sizing: border-box; position: absolute; right: 0; top: calc(100% + 6px); z-index: 1060; min-width: 176px; margin: 0; padding: 6px 0;
  list-style: none; background: #fff; border: 1px solid #E3E6EE; border-radius: 10px; box-shadow: 0 8px 24px rgba(16, 24, 40, .12);
  font-weight: 500; text-align: left; }
.eu-me-menu li { margin: 0; padding: 0; }
.eu-me-menu a { display: block; padding: 9px 16px; font-size: 14px; line-height: 1.4; color: #1B2540; text-decoration: none; white-space: nowrap; }
.eu-me-menu a:hover, .eu-me-menu a:focus-visible { background: #EEF1FC; color: #1B2540; text-decoration: none; }
.eu-me-menu .eu-me-sep { border-top: 1px solid #E3E6EE; margin-top: 5px; padding-top: 5px; }
/* the person icon: only on a Guide's phone header (below) */
.eu-me-icon { display: none; flex: none; width: 18px; height: 18px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='10' cy='6.5' r='3.5'/%3E%3Cpath d='M3.5 17.5c.8-3.4 3.4-5.2 6.5-5.2s5.7 1.8 6.5 5.2'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='10' cy='6.5' r='3.5'/%3E%3Cpath d='M3.5 17.5c.8-3.4 3.4-5.2 6.5-5.2s5.7 1.8 6.5 5.2'/%3E%3C/svg%3E") center / contain no-repeat; }
/* phones: a smaller pill, the act's or the Guide's name beside it needs the room */
@media (max-width: 480px) { a.eu-signin, a.as-account, .eu-me > summary { min-height: 32px; padding: 4px 10px; gap: 5px; } }
/* a Guide on a phone (owner 2026-11-26): "Sign in" and "Me" as a round person icon, the word kept for screen readers
   (and in the title), so that the Guide's name beside the label chip stays readable; the menu is unchanged */
@media (max-width: 480px) {
  .as-account-slot a.as-account, .as-account-slot .eu-me > summary { width: 34px; height: 34px; min-height: 34px; padding: 0;
    justify-content: center; border-radius: 50%; }
  .as-account-slot .eu-me > summary::after { display: none; }
  .as-account-slot .eu-me-icon { display: block; }
  .as-account-slot .eu-me-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; }
}
@media print { .eu-me, a.eu-signin, a.as-account { display: none !important; } }
