/*
 * Shared brand styling. The colors themselves belong to each meeting (Meeting
 * color fields, set from that year's artwork style guide) and are written into
 * every page as --brand-* variables by templates/fss/brand_head.html. See
 * schedule/branding.py for how readable shades are derived.
 *
 * Typefaces in the style guides are licensed display faces for artwork; the
 * app uses Arial.
 */
:root {
  --brand-font: Arial, Helvetica, sans-serif;
  /* Echoes the logo's stripes under the header. */
  --brand-stripe: linear-gradient(to right, var(--brand-primary) 0 40%, var(--brand-accent) 40% 100%);
}

/* Account menu in the header: the person's picture (or initials), opening to Profile, Change Password, Sign Out. */
.account-menu { position: relative; font-family: var(--brand-font); font-size: 14px; letter-spacing: normal; text-transform: none; }
.account-menu summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; color: #fff; padding: 2px 4px; border-radius: 20px; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.account-menu .avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.75); flex: none; }
.account-menu .initials { display: inline-flex; align-items: center; justify-content: center; background: var(--brand-primary); color: #fff; font-weight: bold; font-size: 13px; }
.account-menu .caret { font-size: 11px; opacity: .8; }
.account-menu .account-items { position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; min-width: 220px; background: #fff; color: #1f2329;
  border: 1px solid #d5d9e0; border-radius: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.18); padding: 6px 0; display: flex; flex-direction: column; }
.account-menu .account-who { display: flex; flex-direction: column; gap: 2px; padding: 8px 14px 10px; border-bottom: 1px solid #e5e8ec; margin-bottom: 4px; }
.account-menu .account-who span { color: #5b616b; font-size: 12px; }
.account-menu .account-who .view-only { color: var(--brand-accent-strong, #a3262a); font-weight: bold; }
.account-menu .account-items a, .account-menu .account-items button { display: block; width: 100%; text-align: left; padding: 8px 14px; color: #1f2329;
  text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; }
.account-menu .account-items a:hover, .account-menu .account-items button:hover,
.account-menu .account-items a:focus-visible, .account-menu .account-items button:focus-visible { background: #eef1f5; outline: none; }
.account-menu .account-items form { margin: 0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .account-menu .account-items { background: #1d2026; color: #eceef2; border-color: #3a3f48; }
  :root:not([data-theme="light"]) .account-menu .account-items a, :root:not([data-theme="light"]) .account-menu .account-items button { color: #eceef2; }
  :root:not([data-theme="light"]) .account-menu .account-items a:hover, :root:not([data-theme="light"]) .account-menu .account-items button:hover { background: #2a2e36; }
  :root:not([data-theme="light"]) .account-menu .account-who { border-color: #3a3f48; } :root:not([data-theme="light"]) .account-menu .account-who span { color: #a9afba; } }
:root[data-theme="dark"] .account-menu .account-items { background: #1d2026; color: #eceef2; border-color: #3a3f48; }
:root[data-theme="dark"] .account-menu .account-items a, :root[data-theme="dark"] .account-menu .account-items button { color: #eceef2; }
:root[data-theme="dark"] .account-menu .account-items a:hover, :root[data-theme="dark"] .account-menu .account-items button:hover { background: #2a2e36; }
:root[data-theme="dark"] .account-menu .account-who { border-color: #3a3f48; }
:root[data-theme="dark"] .account-menu .account-who span { color: #a9afba; }
@media (max-width: 640px) { .account-menu .account-name { display: none; } }
