/* /v22/shared/header-auth.css — the signed-in header (additive, loaded LAST, after system.css and hd-top.css).
   Signed-out markup and every existing rule stay untouched: nothing here matches until the swapped markup (.hd-acct, .start-in) is rendered.
   Geist only, no gold, flat ink, no gradients/glow. Motion: opacity (and the shared press transform) only, 120-320ms, var(--v-ease).
   Hover only on (hover:hover) and (pointer:fine). Press = existing v20 recipe (icon .92 / button .97). Reduced motion = the global 200ms fades. */

/* 1 · account mark: initials in a hairline ink circle. 44px hit area, 32px circle */
.nav a.hd-acct,.nl.hd-acct{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;min-height:44px;padding:0;margin:0 0 0 2px;color:var(--fg);border-radius:50%;opacity:1;transition:transform var(--v-d2) var(--v-ease)}
.hd-av{position:relative;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;font-size:12.5px;line-height:1;font-weight:560;letter-spacing:.02em;text-transform:uppercase;opacity:.78;transition:opacity var(--v-d2) var(--v-ease)}
.hd-av::before,.hd-av::after{content:"";position:absolute;inset:0;border-radius:50%;pointer-events:none}
.hd-av::before{border:1px solid currentColor;opacity:.34;transition:opacity var(--v-d2) var(--v-ease)}   /* hairline ring */
.hd-av::after{background:currentColor;opacity:0;transition:opacity var(--v-d2) var(--v-ease)}             /* flat ink wash, 0 -> 5% */
.hd-av svg{width:17px;height:17px;display:block;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}  /* no-initials fallback */
.hd-acct[data-plan=pro] .hd-av::before{border-width:1.5px;opacity:.9}                                          /* Pro: the ring firms up. No badge, no colour */

/* home / find / begin: the transparent hero header keeps the avatar at full strength and ignores the old .nl dim */
.hd-bar .nl.hd-acct,html.hd-solid .hd-bar .nl.hd-acct{opacity:1}
.hd-bar .hd-av{opacity:1}
.hd-bar .hd-av::before{opacity:.55}   /* over the painting the ring needs a little more */

/* 2 · states */
@media (hover:hover) and (pointer:fine){
  .hd-acct:hover .hd-av{opacity:1}
  .hd-acct:hover .hd-av::before{opacity:.6}
  .hd-bar .nl.hd-acct:hover .hd-av::before{opacity:.9}
  .hd-acct[data-plan=pro]:hover .hd-av::before{opacity:1}
  .hd-acct:hover .hd-av::after{opacity:.05}
  .hd-bar .nl.hd-acct:hover{opacity:1}
}
.nav a.hd-acct:focus-visible,.nl.hd-acct:focus-visible{outline:none!important}
.hd-acct:focus-visible .hd-av{opacity:1;outline:2px solid currentColor;outline-offset:2px}
.hd-acct:focus-visible .hd-av::after{opacity:.05}
/* press: v20.js already tags a <=56px control with .v-press[data-vp=i] (scale .92) on pointerdown; this only forces the same look for the .is-press hook */
.hd-acct.is-press .hd-av::after{opacity:.05}

/* the shared focus rule paints the ring in currentColor, which is the button's own text colour (paper on ink): invisible. Signed-in buttons get an ink ring (found on the signed-out Start free too; see README) */
.nav a.solid:not(.hide-s):focus-visible{outline-color:var(--fg)!important}

/* 3 · hero call to action (home + find): the email field is replaced by one flat ink button */
.d-copy .start.start-in{display:flex;width:auto;max-width:none;border:0;border-radius:0;background:none;-webkit-backdrop-filter:none;backdrop-filter:none;overflow:visible}
.start-in .go{display:inline-flex;align-items:center;justify-content:center;min-width:176px;height:54px;padding:0 26px;border-radius:var(--r-ctl,12px);text-align:center}
@media (max-width:760px){.start-in{width:100%}.start-in .go{width:100%}}
.start-in .go:focus-visible{outline:2px solid var(--fg)!important;outline-offset:3px}
