/* The Signal: shared top bar and path. Added to every page. It only replaces the Back / Next / Home buttons; page content and design are untouched. */
.sg-shell,.sg-crumbrow,.sg-mega,.sg-sheet{font-family:Figtree,system-ui,sans-serif;color:#201B14;-webkit-font-smoothing:antialiased}
.sg-shell{background:#FAF7F1;border-bottom:1px solid #E4DAC6;position:relative;z-index:300}
.sg-in{max-width:1200px;margin:0 auto;padding:0 20px}
.sg-top{display:flex;align-items:center;gap:18px;height:62px}
.sg-wm{font:400 26px 'DM Serif Display',Georgia,serif;letter-spacing:-.02em;color:#201B14;text-decoration:none;white-space:nowrap}
.sg-wm em{font-style:italic;font-weight:600;color:#201B14}
.sg-tabs{display:none;margin-left:auto;gap:2px;align-items:center}
@media(min-width:1000px){.sg-tabs{display:flex}}
.sg-tab{font:600 14px Figtree,system-ui,sans-serif;padding:8px 13px;border-radius:999px;color:#70675A;text-decoration:none;border:0;background:transparent;cursor:pointer;display:inline-flex;gap:6px;align-items:center;white-space:nowrap}
.sg-tab:hover{background:#F1ECE2;color:#201B14}
.sg-tab .n{font:600 10.5px 'IBM Plex Mono',ui-monospace,monospace;color:#201B14}
.sg-tab i{font-style:normal;font-size:10px;opacity:.7}
.sg-tab.on{background:#201B14;color:#FAF7F1}
.sg-menub{margin-left:auto;width:40px;height:40px;border-radius:50%;border:1px solid #E4DAC6;background:#fff;cursor:pointer;font-size:18px;color:#201B14}
@media(min-width:1000px){.sg-menub{display:none}}
/* path */
.sg-crumbrow{background:#FAF7F1;border-bottom:1px solid #E4DAC6;position:relative;z-index:290}
.sg-crumbrow .sg-in{display:flex;align-items:center;gap:12px;min-height:46px}
.sg-bc{flex:1;min-width:0;display:flex;align-items:center;gap:8px;overflow-x:auto;white-space:nowrap;scrollbar-width:none;font-size:13.5px;color:#70675A}
.sg-bc::-webkit-scrollbar{display:none}
.sg-bc a,.sg-bc button{color:#70675A;text-decoration:none;background:none;border:0;padding:0;font:inherit;cursor:pointer}
.sg-bc a:hover,.sg-bc button:hover{color:#201B14;text-decoration:underline;text-underline-offset:3px}
.sg-bc .sep{opacity:.5}
.sg-bc .cur{color:#201B14;font-weight:600}
.sg-shareslot{flex:0 0 auto;display:flex;align-items:center}
/* Learning Space menu: five columns, one click to any page */
.sg-mega{display:none;position:absolute;z-index:400;background:#fff;border:1px solid #E4DAC6;border-radius:16px;box-shadow:0 26px 54px -22px rgba(20,24,15,.35);padding:18px 20px 16px;width:min(1020px,calc(100vw - 24px))}
.sg-mega.open{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px 22px}
.sg-col h4{margin:0 0 8px;font:600 11px 'IBM Plex Mono',ui-monospace,monospace;letter-spacing:.14em;text-transform:uppercase}
.sg-col h4 a{color:#70675A;text-decoration:none}.sg-col h4 a:hover{text-decoration:underline}
.sg-col a.it{display:block;padding:7px 8px;margin:0 -8px;border-radius:8px;color:#201B14;text-decoration:none;font-size:14.5px;font-weight:500;line-height:1.3}
.sg-col a.it:hover{background:#F1ECE2;color:#201B14}
.sg-col a.all{color:#70675A;font-size:13px}
/* phone menu */
.sg-sheet{display:none;background:#FAF7F1;border-bottom:1px solid #E4DAC6;padding:6px 20px 16px;max-height:80vh;overflow:auto}
.sg-sheet.open{display:block}
@media(min-width:1000px){.sg-sheet{display:none!important}}
.sg-sheet a{display:block;padding:11px 2px;text-decoration:none;color:#201B14;font-weight:600;border-bottom:1px solid #E4DAC6}
.sg-sheet h4{margin:14px 0 2px;font:600 11px 'IBM Plex Mono',ui-monospace,monospace;letter-spacing:.14em;text-transform:uppercase;color:#70675A}
.sg-sheet .sub a{font-weight:500;color:#70675A;padding:8px 2px 8px 14px;border:0}
/* the buttons this replaces */
.navcard,a.navcard{display:none!important}
.sg-gone{display:none!important}
/* dark */
html[data-theme="dark"] .sg-shell,html[data-theme="dark"] .sg-crumbrow,html[data-theme="dark"] .sg-sheet{background:#15170F;border-color:#33362A;color:#ECEDE4}
html[data-theme="dark"] .sg-wm{color:#ECEDE4}
html[data-theme="dark"] .sg-tab{color:#9AA08D}html[data-theme="dark"] .sg-tab:hover{background:#24271C;color:#ECEDE4}
html[data-theme="dark"] .sg-tab.on{background:#ECEDE4;color:#15170F}
html[data-theme="dark"] .sg-bc,html[data-theme="dark"] .sg-bc a,html[data-theme="dark"] .sg-bc button{color:#9AA08D}html[data-theme="dark"] .sg-bc .cur{color:#ECEDE4}
html[data-theme="dark"] .sg-mega{background:#1D1F16;border-color:#33362A}
html[data-theme="dark"] .sg-col a.it{color:#ECEDE4}html[data-theme="dark"] .sg-col a.it:hover{background:#24271C;color:#6FBE94}
html[data-theme="dark"] .sg-menub{background:#1D1F16;border-color:#33362A;color:#ECEDE4}
html[data-theme="dark"] .sg-sheet a{color:#ECEDE4;border-color:#33362A}
/* Phones: the Learning Space menu shows only the five sections, one per line, easy to tap. Each opens its page with everything in it. */
@media (max-width:760px){
  .sg-mega.open{display:block;left:12px!important;width:calc(100vw - 24px)!important;padding:6px 0;max-height:72vh;overflow:auto}
  .sg-mega .sg-col{border-bottom:1px solid #E4DAC6}
  .sg-mega .sg-col:last-child{border-bottom:0}
  .sg-mega .sg-col h4{margin:0;font:600 17px Figtree,system-ui,sans-serif;letter-spacing:0;text-transform:none}
  .sg-mega .sg-col h4 a{display:flex;justify-content:space-between;align-items:center;padding:15px 18px;color:#201B14}
  .sg-mega .sg-col h4 a::after{content:"›";font-size:20px;color:#70675A}
  .sg-mega .sg-col a.it{display:none}
}
html[data-theme="dark"] .sg-mega .sg-col h4 a{color:#F1EBDD}
/* Always visible: the top bar and the path stay at the top while the page scrolls. */
.sg-shell{position:sticky!important;top:0;z-index:300}
.sg-crumbrow{position:sticky!important;top:var(--sg-shell-h,57px);z-index:290}
html[data-theme="dark"] .sg-shell,html[data-theme="dark"] .sg-crumbrow{background:#12100D}
/* Front page: the masthead stays at the top. Since the Nov 26, 2026 fixes
   it is ONE fixed row with the same geometry as the inner pages' top bar
   (.sg-top): wordmark, tabs, theme button, menu button. Nothing about it
   changes while scrolling (the old slim switching is removed), and the
   share / updated row (.sg-statusrow) is ordinary page content below the
   header that scrolls away. */
.masthead{position:sticky;top:0;z-index:280;background:var(--bg,#FAF7F1)}
.front-masthead{height:62px;padding-top:0;padding-bottom:0;padding-left:20px;padding-right:20px;flex-wrap:nowrap;gap:18px;align-items:center}
.front-masthead .tabs-bar{margin-left:auto}
.front-masthead .sg-themeb{flex:0 0 auto}
.front-masthead .sg-menub{margin-left:0;flex:0 0 auto}
.sg-statusrow{max-width:1200px;margin:0 auto;padding:8px 20px 0;justify-content:flex-end}
@media(max-width:999px){
  .front-masthead .tabs-bar{display:none}
  .front-masthead .sg-themeb{margin-left:auto}
}
/* At 360px the front wordmark (2rem under 780px, from style.css) makes the
   masthead row about 9px wider than the content box, so the theme button's
   auto margin collapses to 0 and the button sits 9px right of its place on
   inner pages. Trimming the wordmark at this width lets the row fit and
   the button right-anchor exactly as elsewhere; 390px and up are untouched. */
@media(max-width:380px){
  .front-masthead .brand-h{font-size:29px}
}
/* "by Luzovi" next to the wordmark */
.sg-by{font:500 12px Figtree,system-ui,sans-serif;letter-spacing:.04em;color:#70675A;margin-left:8px;white-space:nowrap;font-style:normal;vertical-align:middle}
.brand-h .sg-by{font-size:13px}
/* Footer: the luzovi.com address; the footer line takes the standard colour instead of gold */
.signal-footer{border-top-color:#E4DAC6!important}
.signal-footer .sf-luz{margin-top:10px}
.signal-footer .sf-luz a{color:inherit;font-weight:600;text-decoration:none;border-bottom:1px solid currentColor}
.signal-footer .sf-luz a:hover{color:#3F7D20}
/* Themes step 2 (preview): Rose completions, plus the footer line, which
   the !important base rule above otherwise keeps cream in every theme. */
html[data-tone="rose"] .sg-menub{background:#F9E7EC;border-color:#E2B9C5;color:#2A1A1F}
html[data-theme="dark"] .sg-by{color:#9D937F}
html[data-tone="rose"] .sg-by{color:#6F545E}
html[data-tone="rose"] .signal-footer{border-top-color:#E2B9C5!important}
html[data-theme="dark"] .signal-footer{border-top-color:#2C2720!important}
html[data-tone="rose"] .signal-footer .sf-luz a:hover{color:#2F6A18}
html[data-theme="dark"] .signal-footer .sf-luz a:hover{color:#8CC56A}
@media (max-width:760px){
  html[data-tone="rose"] .sg-mega .sg-col{border-bottom-color:#E2B9C5}
  html[data-theme="dark"] .sg-mega .sg-col{border-bottom-color:#2C2720}
  html[data-tone="rose"] .sg-mega .sg-col h4 a{color:#2A1A1F}
  html[data-tone="rose"] .sg-mega .sg-col h4 a::after{color:#6F545E}
}
