:root{
  --site-chrome-font:"Helvetica Neue",Helvetica,Arial,system-ui,sans-serif;
  --site-chrome-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;
  --site-pad:clamp(20px,3.6vw,64px);
}
.secondary-page .shell{
  width:min(calc(100% - var(--site-pad)*2),1680px);
  margin-inline:auto;
}
.secondary-page main,
.secondary-page footer{
  width:min(100%,1240px);
  margin-inline:auto;
}
.nav,.topbar{
  min-height:82px;
  display:grid;
  grid-template-columns:1fr auto auto;
  gap:34px;
  align-items:center;
  border-bottom:1px solid var(--line);
  position:relative;
  font-family:var(--site-chrome-font);
}
.nav:after,.topbar:after{
  content:attr(data-context);
  position:absolute;
  left:0;
  bottom:-5px;
  padding:0 8px;
  background:var(--bg);
  color:var(--signal);
  font:800 11px/1.2 var(--site-chrome-mono);
  letter-spacing:.11em;
  text-transform:uppercase;
}
.nav .brand,.topbar .brand{
  font-family:var(--site-chrome-font);
  font-weight:900;
  font-size:17px;
  line-height:1.2;
  letter-spacing:.02em;
  text-decoration:none;
}
.nav .links,.topbar nav{
  display:flex;
  gap:26px;
  align-items:center;
  flex-wrap:nowrap;
}
.nav .links a,.topbar nav a{
  position:relative;
  color:#526a79;
  font:700 13px/1.2 var(--site-chrome-mono);
  text-transform:uppercase;
  letter-spacing:.08em;
  text-decoration:none;
  white-space:nowrap;
}
.nav .links a:before,.topbar nav a:before{
  content:"";
  position:absolute;
  left:-13px;
  top:50%;
  width:5px;
  height:5px;
  border:1px solid var(--signal);
  border-radius:50%;
  transform:translateY(-50%);
}
.nav .links a:hover,.topbar nav a:hover{color:var(--ink)}
.nav .links a:focus-visible,.topbar nav a:focus-visible{
  outline:3px solid var(--pulse);
  outline-offset:5px;
}
.theme-preview{
  display:grid;
  place-items:center;
  width:26px;
  height:26px;
  margin-left:2px;
  color:#526a79;
  flex:0 0 auto;
}
.theme-preview-glyph{
  display:block;
  width:22px;
  height:22px;
  background:currentColor;
  mask:url("/assets/theme-auto.svg") center/contain no-repeat;
  -webkit-mask:url("/assets/theme-auto.svg") center/contain no-repeat;
}
.status,.chrome-status{
  color:var(--muted);
  font:700 13px/1.2 var(--site-chrome-mono);
  white-space:nowrap;
}
.status b,.chrome-status b{color:var(--pulse)}
@media(max-width:980px){
  .nav,.topbar{grid-template-columns:1fr auto}
  .status,.chrome-status{display:none}
}
@media(max-width:720px){
  .secondary-page .shell{width:min(100% - 28px,1680px)}
  .nav,.topbar{min-height:64px;gap:18px}
  .nav .links,.topbar nav{gap:0}
  .nav .links a,.topbar nav a{display:none}
  .theme-preview{width:24px;height:24px;margin-left:0}
  .theme-preview-glyph{width:20px;height:20px}
}


/* Stable shared chrome across Profile / Notes / Knowledge / Work. */
@media (min-width:981px){
  .nav,.topbar{
    grid-template-columns:minmax(220px,1fr) minmax(500px,560px) minmax(190px,220px);
  }
  .nav .links,.topbar nav{
    width:100%;
    justify-content:flex-end;
  }
  .status,.chrome-status{
    min-width:190px;
    text-align:right;
  }
}
.nav .brand,.topbar .brand{
  font-family:var(--site-chrome-font);
  font-size:17px;
  line-height:1.2;
  font-weight:900;
  letter-spacing:.02em;
}
.nav .links a,.topbar nav a,
.status,.chrome-status{
  font-family:var(--site-chrome-mono);
  font-size:13px;
  line-height:1.2;
}
