/* Shared Mend header and footer. Scoped to .mend-head / .mend-foot.
   Approved tokens only: ink #172026, blue-gray #B3C6D1, orange #E59E4C, white.
   Your Space theme variables (--ui-*) are used when present so dark themes stay readable.
   Font: the approved "Mend Brand" file (Nunito Sans variable italic), so the chrome looks the
   same on pages that do not load mend-brand-unified.css. No new colours, fonts or assets. */
@font-face{font-family:"Mend Brand";src:url("/assets/fonts/NunitoSans-VariableItalic.ttf") format("truetype");font-style:italic;font-weight:200 1000;font-display:swap}

[data-mend-header],[data-mend-footer],[data-site-footer]{display:block}
.mend-head,.mend-foot{
 --mend-chrome-ink:var(--ui-text,#172026);
 --mend-chrome-bg:var(--ui-panel,#FFFFFF);
 --mend-chrome-line:var(--ui-line,color-mix(in srgb,#172026 25%,#FFFFFF));
 --mend-chrome-muted:var(--ui-muted,color-mix(in srgb,#172026 80%,#FFFFFF));
 display:block;position:static;width:100%;max-width:none;margin:0;box-sizing:border-box;
 background:var(--mend-chrome-bg);color:var(--mend-chrome-ink);text-align:left;
 font-family:"Mend Brand",sans-serif;font-style:italic;font-weight:600;font-synthesis:none;line-height:1.5;letter-spacing:normal
}
.mend-head *,.mend-foot *{box-sizing:border-box;font-family:"Mend Brand",sans-serif;font-style:italic;letter-spacing:normal}
.mend-head .mend-chrome-inner,.mend-foot .mend-chrome-inner{
 display:flex;flex-wrap:wrap;align-items:center;width:100%;max-width:1200px;margin:0 auto;padding:0 32px
}

/* Header */
.mend-head{border:0;border-bottom:1px solid var(--mend-chrome-line);padding:16px 0}
.mend-head .mend-chrome-inner{justify-content:space-between;gap:12px 24px;min-height:52px}
.mend-head .mend-head-logo{display:flex;align-items:center;gap:12px;margin:0;padding:0;color:inherit;text-decoration:none;font-size:20px;font-weight:700;line-height:1.3}
.mend-head .mend-head-logo img{display:block;width:42px;height:42px;min-width:42px;margin:0;object-fit:cover;border-radius:8px;box-shadow:none}
.mend-head .mend-head-logo span{display:inline;margin:0;color:inherit;font-size:20px;font-weight:700}
.mend-head .mend-head-nav{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:4px 24px;margin:0;padding:0;font-size:14px}
.mend-head .mend-head-nav a{display:inline-flex;align-items:center;min-height:44px;margin:0;padding:0;color:inherit;text-decoration:none;font-weight:600}
.mend-head .mend-head-nav a:hover{text-decoration:underline;text-underline-offset:4px}
.mend-head .mend-head-logout{display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin:0;padding:8px 18px;border:1px solid var(--mend-chrome-line);border-radius:8px;background:transparent;color:inherit;font-size:14px;font-weight:600;cursor:pointer}
.mend-head .mend-head-logout:disabled{opacity:.6;cursor:default}
.mend-head .mend-head-status{flex-basis:100%;margin:0;font-size:14px}
.mend-head .mend-head-status:empty{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* Footer */
.mend-foot{border:0;border-top:1px solid var(--mend-chrome-line);padding:25px 0 32px;font-size:13px}
.mend-foot .mend-chrome-inner{gap:12px 22px}
.mend-foot .mend-foot-brand{margin:0 auto 0 0;font-size:13px;font-weight:700;color:inherit}
.mend-foot .mend-foot-nav{display:flex;flex-wrap:wrap;align-items:center;gap:8px 22px;margin:0;padding:0}
.mend-foot .mend-foot-nav a{display:inline-flex;align-items:center;gap:9px;min-height:44px;margin:0;padding:0;color:inherit;font-size:13px;font-weight:600;text-decoration:underline;text-underline-offset:4px}
.mend-foot .mend-foot-yt{position:relative;display:inline-block;width:25px;height:17px;flex:0 0 auto;margin:0;border-radius:5px;background:#ff3b30}
.mend-foot .mend-foot-yt::after{content:"";position:absolute;left:10px;top:5px;border-left:7px solid #fff;border-block:4px solid transparent}
.mend-foot .mend-foot-legal{display:block;flex-basis:100%;margin:0;color:var(--mend-chrome-muted);font-size:12px;font-weight:600;line-height:1.6}

/* Screen-reader-only text */
.mend-head .mend-sr,.mend-foot .mend-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}

:is(.mend-head,.mend-foot) a:focus-visible,.mend-head button:focus-visible{outline:3px solid currentColor;outline-offset:3px}

@media(max-width:760px){
 .mend-head .mend-chrome-inner,.mend-foot .mend-chrome-inner{padding:0 16px}
 .mend-head{padding:12px 0}
 .mend-head .mend-head-nav{justify-content:flex-start;gap:0 16px;font-size:13px;width:100%}
 .mend-head .mend-head-nav a{min-height:44px}
 .mend-head .mend-head-logout{font-size:13px;padding:6px 14px;min-height:44px}
 .mend-foot{padding:22px 0 28px}
 .mend-foot .mend-foot-brand{flex-basis:100%}
 .mend-foot .mend-foot-nav{gap:4px 18px}
}

/* Pages with the fixed Mend tools side nav (session/practice, session/resources/*): keep the
   header and footer clear of it on wide screens (the side nav becomes static below 981 px). */
@media(min-width:981px){body:has(.session-side-nav) :is(.mend-head,.mend-foot){padding-left:300px}}

/* Reddit mark next to "Reddit community": CSS-drawn, third-party brand colour (lock exception,
   approved by Noel 28 Oct, like the YouTube red above). Colour lives only in this file. */
.mend-foot .mend-foot-reddit{position:relative;display:inline-block;width:18px;height:18px;flex:0 0 auto;margin:0;border-radius:50%;background:#FF4500}
.mend-foot .mend-foot-reddit::after{content:"";position:absolute;left:4px;top:6px;width:10px;height:7px;border-radius:50%;background:#fff}

/* Mend tools side nav (practice, resources): the label sat against the removed in-page logo. */
@media(min-width:981px){.session-side-nav .session-side-nav-label{margin:4px 0 14px}}

/* Footer links stay on one line at full screen. Pages with the fixed side nav have less room and keep wrapping. */
@media(min-width:1180px){
 body:not(:has(.session-side-nav)) .mend-foot .mend-foot-nav{flex-wrap:nowrap;gap:8px 18px;white-space:nowrap}
}
