/* The frame of every public page outside the application (home, documentation, the pages to come):
   a fixed head, a fixed foot and a main area that scrolls by itself. One width for all of them, so
   that the logo, the navigation and the foot stay where they are when a person moves between pages.
   Loaded after /auth/tokens.css; every value is a token. docs/DESIGN.md section 6. */
*{box-sizing:border-box}
html,body{height:100%}
body.site-shell{margin:0;height:100vh;height:100dvh;display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden;background:var(--bg);color:var(--text);font:var(--fs-xl)/1.6 var(--font-ui)}
[hidden]{display:none!important}

/* the width: the whole page on a phone and a tablet, two thirds of it on a desktop */
.site-col{width:100%;margin:0 auto;padding-inline:20px}
@media (min-width:1100px){.site-col{width:clamp(960px,66%,1480px)}}

.site-top{border-bottom:1px solid var(--border);background:var(--bg2)}
.site-bar{padding-block:12px;display:flex;align-items:center;gap:8px 20px;flex-wrap:wrap}
.site-brand{font-weight:700;font-size:var(--fs-2xl);letter-spacing:.2px;display:flex;align-items:center;gap:8px;color:var(--text);text-decoration:none}
.site-brand .folio{color:var(--accent)}
.logo-mark{width:30px;height:30px;flex-shrink:0}
.logo-mark .t{stroke:var(--accent)}.logo-mark .l{stroke:var(--text)}.logo-mark .r{stroke:var(--logo-r)}
.site-nav{display:flex;flex-wrap:wrap;gap:6px;flex:1}
.site-nav a{padding:6px 12px;border-radius:var(--radius-md);color:var(--text-dim);text-decoration:none;font-size:var(--fs-lg)}
.site-nav a[aria-current=page]{color:var(--text);background:var(--accent-muted)}
@media (max-width:560px){.site-nav{order:3;flex:1 0 100%}}
.site-lang{padding:4px 10px}

.site-main{min-height:0;overflow:auto;scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){.site-main{scroll-behavior:auto}}

.site-foot{border-top:1px solid var(--border);background:var(--bg2);font-size:var(--fs-md);color:var(--text-dim)}
.site-foot-bar{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding-block:4px}
.site-foot-bar>:first-child{justify-self:start}
.site-foot-bar>:last-child{justify-self:end}
.site-foot a{display:inline-flex;align-items:center;min-height:var(--hit-min);color:var(--text-dim)}
.site-version{font-family:var(--font-mono);font-size:var(--fs-sm);color:var(--text-dim)}
@media (max-width:560px){.site-foot-bar{grid-template-columns:1fr;justify-items:center;gap:0}.site-foot-bar>:first-child,.site-foot-bar>:last-child{justify-self:center}}

/* the button that takes a long page back to its top */
.site-totop{position:fixed;right:20px;bottom:64px;z-index:var(--z-local-menu);width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;padding:0;border:1px solid var(--border);border-radius:var(--radius-pill);background:var(--bg2);color:var(--accent);cursor:pointer;box-shadow:var(--shadow-menu);transition:border-color var(--trans),color var(--trans)}
.site-totop:hover,.site-totop:focus-visible{border-color:var(--accent)}
.site-totop svg{width:18px;height:18px}

/* the language switch: the flag of the language that is on and its name */
.site-lang{display:inline-flex;align-items:center;gap:6px;min-height:var(--hit-min)}

/* the button of the person and its menu (the items are the parts .mfui-menu and .mfui-menu-item) */
.site-user{background:none;border:0;cursor:pointer;color:var(--accent);padding:4px 6px;border-radius:var(--radius-sm);display:flex;align-items:center;flex-shrink:0;transition:background var(--trans)}
.site-user:hover,.site-user:focus-visible{background:var(--bg3)}
.site-user-ico{width:18px;height:18px}
.site-user-b{display:none}
.site-user:hover .site-user-a{display:none}
.site-user:hover .site-user-b{display:inline-block}
.site-menu{position:fixed;z-index:var(--z-menu);min-width:230px;max-width:calc(100vw - 16px)}
a.site-menu-item{text-decoration:none}
.site-menu-item{display:flex;align-items:center;gap:8px}
.site-ico{display:inline-flex;width:14px;justify-content:center;flex-shrink:0}
.site-ico svg{width:14px;height:14px;color:var(--accent-dim)}
.site-menu-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.site-menu-hr{height:1px;background:var(--border);margin:6px 2px}
.site-menu-row{display:flex;align-items:center;gap:8px;padding:8px 10px;font-size:var(--fs-sm);color:var(--text-dim)}
.site-menu-account{display:flex;flex-direction:column;gap:2px;padding:8px 10px;margin-bottom:4px;border-bottom:1px solid var(--border);min-width:0}
.site-menu-team{font-size:var(--fs-sm);font-weight:600;color:var(--accent);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.site-menu-who{font-size:var(--fs-xs);color:var(--text-dim);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
