/* CM-LOOK-16 (ruled 2026-12-02): Certifiable Media keeps its
   own header icon sizes. The kit's signed-in disc is 26px by
   its --ms-avatar-size property (app-kit v1.12.0); this site's
   disc is the 44px face it has carried since issue #252, so
   the property is set to 44px here and the disc follows it. */
:root {
  --ms-avatar-size: 44px;
}

/* The header account control's styles. Since issue #262 the
   control itself is app-kit's: ui-local's account control
   (structure only, painted into #signin-box by
   assets/js/cm-account.js) with the person's MemberSpark
   initials, drawn by ui-memberspark, in its mark slot. The
   kit's own rules (the menu's hidden state, focus ring,
   reduced motion and the initials font) stand in
   assets/app-kit/app-kit-ui.css; this file dresses the kit's
   markup in the site's look. Signed out, the control is a
   "Sign in" pill at the header's 44px touch height: one
   click goes straight onto the sign-in road (app-kit #98's
   no-extra-click rule). Signed in, the person's initials
   disc is the 44px button's whole face and opens the
   account menu. */

/* The two controls stand in the header's tab row (issue
   #249): the account control and the theme toggle stand
   after the page tabs, the account first and the toggle
   after it, in the flow at every width. The pair keeps one
   small wrapper, .nav-controls, so a wrapping tab row moves
   the pair to the next line together. */
.nav-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.account {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* Signed out: the kit's sign-in link, as a pill wearing the
   theme toggle's face (issue #251) so the pair reads as one
   set of buttons. */
.account [data-ak-account-signin]:not(.ms-account) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

html[data-mode="dark"] .account [data-ak-account-signin]:not(.ms-account) {
  border-color: rgba(255, 255, 255, 0.12);
}

.account [data-ak-account] {
  position: relative;
  display: inline-flex;
}

/* Signed in: the initials disc is the button's face at the
   full 44px (issue #252) — no border and no ground of its
   own, so no circle stands around the person's disc. */
.account [data-ak-account-button] {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0;
  border: 0 solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}

.account [data-ak-mark] {
  display: block;
  width: 44px;
  height: 44px;
}

/* The disc itself follows the one property (CM-LOOK-16
   above): 44px here, the button's whole face (issue #252). */
.account [data-ak-mark] svg {
  display: block;
  width: var(--ms-avatar-size, 44px);
  height: var(--ms-avatar-size, 44px);
}

/* The account menu's panel, rows and colours are app-kit's own (v1.6.1,
   app-kit #163; issue #293): nothing here styles them. */

/* The hidden attribute loses to the display rules above
   unless a rule says so: a hidden box stays hidden. */
.account[hidden] {
  display: none;
}

/* The one Sign out, at the foot of the account page (issue
   #271): a plain button after the orders, never in the header. */
[data-ms-sign-out] {
  margin: 2rem 0 1rem;
}

[data-ms-sign-out] button {
  min-height: 44px;
  padding: 0 1.25rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}

