/* xtarwall.com: the "page as Markdown" bar at the top of every page (tools/md-export.mjs). Self-contained (lx-), quiet:
   small text links, no fill, one hairline under it on pages where the menu has its own row. Inherits the page's font. */
.lx{
  --lx-text:rgba(244,237,226,.64);--lx-strong:#f4ede2;--lx-line:rgba(244,237,226,.11);--lx-line2:rgba(244,237,226,.2);
  --lx-panel:#0b0f1d;--lx-focus:#a9b8ff;--lx-ok:#8fd6b4;
  position:relative;z-index:6;font-size:13px;line-height:1;color:var(--lx-text);-webkit-font-smoothing:antialiased;
}
.lx *,.lx *::before,.lx *::after{box-sizing:border-box}
.lx-flow{border-bottom:1px solid var(--lx-line)}
/* pages whose menu floats over the first screen: the bar sits just under the menu, over the scene, and takes no room */
.lx-over{position:absolute;top:64px;left:0;right:0}
.lx-in{display:flex;flex-wrap:wrap;align-items:center;gap:2px 6px;max-width:1512px;margin:0 auto;padding:5px 12px;min-height:40px}
/* same breakpoint, height and side padding as the menu (nav.css), so the bar starts under the logo */
@media (min-width:1100px){.lx-over{top:72px}.lx-in{padding:5px 24px}}
.lx-b{
  display:inline-flex;align-items:center;gap:7px;min-height:30px;padding:0 8px;margin:0;border:0;border-radius:8px;background:none;
  font:inherit;font-weight:450;letter-spacing:0;color:inherit;text-decoration:none;white-space:nowrap;cursor:pointer;
  list-style:none;-webkit-tap-highlight-color:transparent;transition:color .15s ease,background-color .15s ease;
}
.lx-b::-webkit-details-marker{display:none}
.lx-b:hover,.lx-ai[open]>.lx-b{color:var(--lx-strong);background:rgba(244,237,226,.07)}
.lx :focus-visible{outline:2px solid var(--lx-focus);outline-offset:1px;border-radius:8px}
.lx-i{width:14px;height:14px;flex:none;fill:none;stroke:currentColor;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round}
.lx-caret{width:10px;height:10px;flex:none;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s ease}
.lx-ai[open] .lx-caret{transform:rotate(180deg)}

/* copy states: the label swaps to "Copied" for two seconds */
.lx-i-ok,.lx-done{display:none}
.lx-b[data-state="done"]{color:var(--lx-ok)}
.lx-b[data-state="done"] .lx-i:not(.lx-i-ok),.lx-b[data-state="done"] .lx-t{display:none}
.lx-b[data-state="done"] .lx-i-ok,.lx-b[data-state="done"] .lx-done{display:inline-block}
.lx-live{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.lx-ta{position:fixed;top:0;left:-9999px;opacity:0}

/* Ask AI menu */
.lx-ai{position:relative}
.lx-menu{
  position:absolute;top:calc(100% + 6px);left:0;z-index:7;min-width:168px;margin:0;padding:6px;list-style:none;
  background:var(--lx-panel);border:1px solid var(--lx-line2);border-radius:12px;box-shadow:0 18px 44px rgba(0,0,0,.5);
}
.lx-menu a{display:block;padding:10px 12px;border-radius:8px;color:var(--lx-strong);text-decoration:none;font-size:14px;line-height:1.2}
.lx-menu a:hover{background:rgba(244,237,226,.08)}

@media (max-width:640px){
  .lx{font-size:12.5px}
  .lx-in{padding:4px 13px;gap:0 2px;min-height:38px}
  .lx-over{top:60px}
  .lx-over .lx-in{padding-top:0;padding-bottom:0;min-height:32px}
  .lx-b{padding:0 7px;gap:0}
  .lx-b .lx-i,.lx-x{display:none}
  .lx-b[data-state="done"] .lx-i-ok{display:none}
  .lx-ai .lx-caret{margin-left:5px}
  .lx-menu{left:auto;right:0}
}
@media (prefers-reduced-motion:reduce){.lx-b,.lx-caret{transition:none}}
@media print{.lx{display:none}}
