/* THE ACCOUNT CORNER'S WORDS (A2, 2026-11; owner F3 1a + 1c, 2026-11-13): a visitor's and a guest's
   "Sign in" and "Sign up free", top right on every page of the learner shell that has no header of its
   own (templates/partials/window_menu.html, linked from there). Two plain words in the kit's `.qa`
   grammar — Baloo 2 700 17px, 44px tall: "Sign in" quiet (muted ink, the underline drawn in from the
   left on hover), "Sign up free" in ink with the blue underline of a chosen word. No box, no fill, no
   shadow, no pill (the owner: the white pill "is not in harmony with the rest of the page"). Neither a
   visitor nor a guest has a feather pill or a made-for-you strand (templates/a2/chrome.html), so the
   words take the pill's seat.

   The corner (nav.af-wm-corner, alyfa.css) sits OUTSIDE every .a2 root, so nothing here reads a kit
   token: the values are the kit's, written out. Scoped by `.a2-acct-w` / `.a2-acct`, and specific
   enough (a.a2-acct inside .af-wm-corner) to win over the old pill's .af-wm-merow / .af-wm-signin
   rules, which stay in alyfa.css as hooks only. Flat: no nesting (tests/test_stylesheets_are_flat.py). */

/* The words sit at the TOP RIGHT, the pill's seat. The corner row is space-between and the brand tile, its other
   child, steps aside (display:none) where the home button is drawn, so the lone words would fall to the left under
   the home button (owner F6 P33: "all carmmed into a corner together"): flex-end holds them right at every width. */
.af-wm-corner:has(.a2-acct-w){justify-content:flex-end}
.af-wm-corner .a2-acct-w{display:inline-flex;align-items:center;gap:10px;margin:0 2px 0 0}
.af-wm-corner a.a2-acct{display:inline-flex;align-items:center;height:44px;min-height:0;margin:0;padding:0 8px;border:0;border-radius:10px;box-shadow:none;font:700 17px/1 "Baloo 2",system-ui,sans-serif;letter-spacing:normal;color:#5B6172;text-decoration:none;white-space:nowrap;background:linear-gradient(currentColor,currentColor) 8px calc(100% - 9px)/0 2px no-repeat transparent;transition:background-size .25s,color .2s;-webkit-font-smoothing:antialiased}
.af-wm-corner a.a2-acct:hover{color:#15171E;border:0;background-color:transparent;background-size:calc(100% - 16px) 2px}
.af-wm-corner a.a2-acct:focus-visible{outline:2px solid #1C39BB;outline-offset:2px;color:#15171E}
/* "Sign up free": the chosen word's look, in ink over a blue line. */
.af-wm-corner a.a2-acct-up,.af-wm-corner a.a2-acct-up:hover{color:#15171E;background-image:linear-gradient(#1C39BB,#1C39BB);background-size:calc(100% - 16px) 2px}
.af-wm-corner a.a2-acct-up:hover{background-image:linear-gradient(#142A8C,#142A8C)}

/* A page with its own header (a lesson, courses/lesson_detail.html's .ls-tb) keeps its top band to
   itself: the level pill and the language words stand alone there, and a guest meets sign-up at the
   lesson's end and on the road. (The sittings, the tale reader and the first-run pages draw no corner.) */
body:has(.ls-tb) .af-wm-corner .a2-acct-w{display:none}

/* The guest's road (/try/road/, templates/dashboard/road.html): the khān dots end 32px before the guest's
   two words as they end before a learner's pill: the bar's right room is the corner's measured reach
   (static/css/a2/chrome.css, ".hk > .hk-bar"; F5 P24), so the fixed 96px this file added is gone. */

/* A phone, or a short window: the chrome's compact sizes (a2.css, chrome.css) — the seat is 20px
   from the edge, which is the corner's own edge. The two words keep their 44px targets and come
   a little closer together. */
@media (max-width:699px),(orientation:portrait) and (max-width:1199px),(max-height:620px){
  .af-wm-corner .a2-acct-w{gap:2px;margin-right:-6px}
}
@media (prefers-reduced-motion:reduce){
  .af-wm-corner a.a2-acct{transition:none}
}
