/* The site header and footer on the guided tasks (src/lib/site-chrome-html.ts
   draws them). A copy of the look of AppHeader and SiteFooter, which use
   Tailwind; these pages do not load it. Keep the two in step: same height,
   same 1120px rail for the contents, same gutters (16px, 28px from 640px),
   same colours. The colours are the guided pages' own variables, which have
   the same values as globals.css. */

/* The page grows to fill the screen, so the footer sits at the bottom. */
body.site-chrome{display:flex;flex-direction:column}
body.site-chrome>#app{flex:1 0 auto;width:100%}

/* The bar runs edge to edge (the guided body has 16px side padding); its
   contents sit on the 1120px rail, as in the React header. */
.site-header,.site-footer{margin-inline:-16px;background:var(--card);font-size:16px;line-height:1.5}
.site-header{border-bottom:1px solid var(--border)}
/* The QA site only (ENV_BANNER in src/lib/site-chrome.ts) */
.site-env{direction:ltr;margin-inline:-16px;padding:4px 16px;background:#fcd34d;color:#000;font-size:12px;font-weight:600;text-align:center}
.site-footer{border-top:1px solid var(--border);color:var(--muted)}
.site-bar{width:100%;max-width:1120px;margin-inline:auto;padding:12px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.site-footer .site-bar{flex-wrap:wrap;column-gap:24px;row-gap:4px}

.site-brand{display:flex;align-items:center;gap:8px;white-space:nowrap;font-weight:600;color:var(--brand-deep);text-decoration:none}
.site-brand:hover{color:var(--brand-deep)}
.site-wordmark{display:inline-block;direction:ltr;font-size:20px;font-weight:800;letter-spacing:-.025em;color:var(--brand-deep);white-space:nowrap}
.site-wordmark-sm{font-size:18px}
.site-wordmark-last{position:relative;display:inline-block}
.site-wordmark-last i{position:absolute;border-radius:50%;background:var(--brand)}
.site-wordmark-last i:first-child{width:.25em;height:.25em;right:-.3em;top:.05em}
.site-wordmark-last i:last-child{width:.175em;height:.175em;right:-.55em;top:-.2em}
.site-right{display:flex;align-items:center;gap:12px}
.site-contact{display:inline-flex;align-items:center;white-space:nowrap;font-weight:600;color:var(--brand);text-decoration:none}
.site-contact:hover{color:var(--brand-deep)}
.site-contact span{display:none}
.site-langwrap{position:relative}
.site-lang{display:inline-flex;align-items:center;gap:4px;min-height:44px;white-space:nowrap;font:inherit;font-weight:600;color:var(--brand);background:none;border:0;padding:0;cursor:pointer}
.site-lang:hover{color:var(--brand-deep)}
.site-langmenu{position:absolute;inset-inline-end:0;margin-top:8px;width:160px;border:1px solid var(--border);border-radius:12px;background:var(--card);box-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);padding:8px;z-index:50}
.site-langmenu[hidden]{display:none}
.site-langmenu a{display:flex;align-items:center;justify-content:space-between;gap:8px;border-radius:8px;padding:6px 8px;color:var(--ink);font-weight:500;text-decoration:none}
.site-langmenu a:hover{background:rgba(164,6,188,.05)}
.site-langmenu svg{color:var(--brand)}
/* On a phone the header keeps only the account; the language menu and
   "Contact us" are in the footer instead (Ifat, 16 Nov 2026). */
.site-header .site-langwrap,.site-header .site-contact{display:none}
.site-langfoot .site-langmenu{inset-inline-end:auto;inset-inline-start:0;bottom:100%;margin:0 0 8px}
.site-footer nav .site-langfoot .site-langmenu a{min-height:0;display:flex;font-weight:500;color:var(--ink)}

/* The offer of the Hebrew version (LanguageSuggest.tsx's twin) */
.site-suggest{margin-inline:-16px}
.site-suggest[hidden]{display:none}
.site-suggest-box{position:relative;max-width:1120px;margin:12px auto;width:calc(100% - 32px);box-sizing:border-box;border-radius:12px;background:rgba(164,6,188,.1);color:var(--brand-deep);padding-block:8px;padding-inline:16px 48px;font-size:16px;line-height:1.5}
.site-suggest-box p{margin:0;padding-top:4px;font-weight:500}
.site-suggest-box a{display:inline-flex;align-items:center;min-height:44px;font-weight:600;color:var(--brand);text-decoration:underline;text-underline-offset:4px}
.site-suggest-box button{position:absolute;top:4px;inset-inline-end:4px;width:44px;height:44px;display:flex;align-items:center;justify-content:center;border:0;border-radius:8px;background:none;color:var(--brand-deep);cursor:pointer}
.site-suggest-box button:hover{background:rgba(164,6,188,.1)}

.site-signup{border-radius:8px;background:var(--brand);color:#fff;font-weight:600;padding:8px 16px;white-space:nowrap;text-decoration:none}
.site-signup:hover{background:var(--brand-deep);color:#fff}

.site-account{position:relative}
.site-avatar{width:32px;height:32px;border-radius:999px;border:0;background:var(--brand);color:#fff;font-weight:600;font-size:16px;display:flex;align-items:center;justify-content:center;cursor:pointer}
.site-avatar:hover{background:var(--brand-deep)}
.site-menu{position:absolute;right:0;margin-top:8px;width:224px;border:1px solid var(--border);border-radius:12px;background:var(--card);box-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);padding:8px;z-index:50}
.site-menu[hidden]{display:none}
.site-email{color:var(--muted);padding:6px 8px;border-bottom:1px solid var(--border);margin:0 0 4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.site-signout{width:100%;text-align:left;background:none;border:0;border-radius:8px;color:var(--brand);font-weight:500;font-size:16px;padding:6px 8px;cursor:pointer}
.site-signout:hover{background:rgba(164,6,188,.05)}
.site-error{color:#b91c1c;padding:6px 8px;margin:0}

.site-footer nav{display:flex;flex-wrap:wrap;column-gap:24px}
.site-footer nav a{font-weight:600;color:var(--brand);text-decoration:none;min-height:44px;display:inline-flex;align-items:center}
.site-footer nav a:hover{color:var(--brand-deep)}

/* A phone has no room for the words beside the logo and Sign up, so it shows
   an envelope with the same label for screen readers (as AppHeader does). */
@media (min-width:640px){
  .site-bar{padding-inline:28px}
  .site-right{gap:24px}
  .site-contact svg{display:none}
  .site-contact span{display:inline}
  .site-header .site-langwrap{display:block}
  .site-header .site-contact{display:inline-flex}
  .site-langfoot,.site-footer nav .site-footcontact{display:none}
  .site-suggest{display:none !important}
}

/* The track's note just above the footer (TrackNote on the React pages). */
.site-note{margin-inline:-16px;background:var(--tint);color:var(--brand-deep);font-size:16px;line-height:1.5}
.site-note p{width:100%;max-width:1120px;margin:0 auto;padding:8px 16px}
@media (min-width:640px){.site-note p{padding-inline:28px}}

/* The thinking flask (MRT-200): the same drawing and motion as
   src/components/ThinkingFlask.tsx and .thinking-flask in globals.css; the
   markup to copy is in docs/DESIGN_SYSTEM.md -> Motion. Change them together. */
.thinking-flask circle{animation:thinking-bubble 1.8s ease-in infinite backwards}
.thinking-flask circle:nth-of-type(2){animation-delay:.6s}
.thinking-flask circle:nth-of-type(3){animation-delay:1.2s}
@keyframes thinking-bubble{0%{transform:translateY(0);opacity:0}15%{opacity:1}100%{transform:translateY(-14px);opacity:0}}
@media (prefers-reduced-motion:reduce){.thinking-flask circle{animation:none;opacity:1}}
